228 lines
7.0 KiB
HTML
228 lines
7.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Fedora Post-Install Script</title>
|
|
<style>
|
|
:root {
|
|
--bg-color: #121212;
|
|
--card-bg: #1e1e1e;
|
|
--text-color: #e0e0e0;
|
|
--accent-color: #007bff;
|
|
--accent-hover: #0056b3;
|
|
--success-color: #28a745;
|
|
--code-bg: #2d2d2d;
|
|
--code-text: #a5d6ff;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.container {
|
|
background-color: var(--card-bg);
|
|
padding: 3rem;
|
|
border-radius: 16px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
|
text-align: center;
|
|
max-width: 700px;
|
|
width: 100%;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.container:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
h1 {
|
|
color: #ffffff;
|
|
margin-bottom: 1rem;
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.5px;
|
|
background: linear-gradient(45deg, #007bff, #00d4ff);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
p {
|
|
line-height: 1.6;
|
|
margin-bottom: 2.5rem;
|
|
color: #b0b0b0;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.command-box {
|
|
background-color: var(--code-bg);
|
|
padding: 1.2rem;
|
|
border-radius: 8px;
|
|
border: 1px solid #3d3d3d;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 2rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
code {
|
|
font-family: "Fira Code", monospace;
|
|
color: var(--code-text);
|
|
word-break: break-all;
|
|
text-align: left;
|
|
margin-right: 1rem;
|
|
font-size: 0.95rem;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.copy-btn {
|
|
background-color: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.6rem 1.2rem;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.copy-btn:hover {
|
|
background-color: var(--accent-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
|
|
}
|
|
|
|
.copy-btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.features {
|
|
text-align: left;
|
|
margin-top: 2.5rem;
|
|
font-size: 1rem;
|
|
color: #ccc;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.feature-item {
|
|
display: flex;
|
|
align-items: center;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
padding: 0.8rem;
|
|
border-radius: 8px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.feature-item:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.feature-icon {
|
|
color: var(--success-color);
|
|
margin-right: 0.8rem;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.container {
|
|
padding: 1.5rem;
|
|
}
|
|
h1 {
|
|
font-size: 2rem;
|
|
}
|
|
.command-box {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 1rem;
|
|
}
|
|
.copy-btn {
|
|
width: 100%;
|
|
}
|
|
code {
|
|
margin-right: 0;
|
|
text-align: center;
|
|
}
|
|
}
|
|
</style>
|
|
<!-- Preload fonts for better performance -->
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Fira+Code&display=swap" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Fedora Post-Install Script</h1>
|
|
<p>
|
|
Supercharge your Fedora workstation in minutes. Optimize performance, install essential apps, and configure a powerful development environment with a single command.
|
|
</p>
|
|
|
|
<div class="command-box">
|
|
<code id="install-cmd">bash <(curl -fsSL https://gitea.schantli.ca/jschantli/Fedora-PIS/raw/branch/main/postinstall.sh)</code>
|
|
<button class="copy-btn" onclick="copyCommand()">Copy Command</button>
|
|
</div>
|
|
|
|
<div class="features">
|
|
<div class="feature-item">
|
|
<span class="feature-icon">⚡</span>
|
|
<span>Optimized DNF Config</span>
|
|
</div>
|
|
<div class="feature-item">
|
|
<span class="feature-icon">📦</span>
|
|
<span>Essential Flatpaks</span>
|
|
</div>
|
|
<div class="feature-item">
|
|
<span class="feature-icon">🚀</span>
|
|
<span>CachyOS Kernel</span>
|
|
</div>
|
|
<div class="feature-item">
|
|
<span class="feature-icon">🐚</span>
|
|
<span>Starship + MyBash</span>
|
|
</div>
|
|
<div class="feature-item">
|
|
<span class="feature-icon">🧩</span>
|
|
<span>GNOME Extensions</span>
|
|
</div>
|
|
<div class="feature-item">
|
|
<span class="feature-icon">🛠️</span>
|
|
<span>Dev Tools (Git, FZF)</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function copyCommand() {
|
|
const commandText = document.getElementById('install-cmd').innerText;
|
|
const btn = document.querySelector('.copy-btn');
|
|
|
|
navigator.clipboard.writeText(commandText).then(() => {
|
|
const originalText = btn.innerText;
|
|
const originalBg = btn.style.backgroundColor;
|
|
|
|
btn.innerText = 'Copied!';
|
|
btn.style.backgroundColor = 'var(--success-color)';
|
|
|
|
setTimeout(() => {
|
|
btn.innerText = originalText;
|
|
btn.style.backgroundColor = ''; // Reset to CSS default
|
|
}, 2000);
|
|
}).catch(err => {
|
|
console.error('Failed to copy: ', err);
|
|
alert('Failed to copy command. Please select and copy manually.');
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |