github pages

This commit is contained in:
Abdenasser 2024-10-30 22:00:31 +01:00
parent 54dec5c259
commit 4ee2fe03bf
3 changed files with 495 additions and 84 deletions

View File

@ -4,69 +4,202 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NeoHtop - Modern System Monitor</title>
<title>NeoHtop - Modern System Monitor for macOS</title>
<meta name="description"
content="A beautiful, efficient system monitor built with Rust and Svelte. Monitor processes, CPU, and memory usage in real-time with a modern interface.">
<meta name="keywords"
content="system monitor, task manager, macos, process monitor, cpu usage, memory usage, rust, svelte">
<meta name="author" content="Your Name">
<meta property="og:type" content="website">
<meta property="og:url" content="https://yourusername.github.io/neohtop/">
<meta property="og:title" content="NeoHtop - Modern System Monitor">
<meta property="og:description"
content="A beautiful, efficient system monitor built with Rust and Svelte. Monitor processes, CPU, and memory usage in real-time.">
<meta property="og:image" content="https://github.com/Abdenasser/neohtop/raw/main/app-icon.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@yourusername">
<meta name="twitter:title" content="NeoHtop - Modern System Monitor">
<meta name="twitter:description" content="A beautiful, efficient system monitor built with Rust and Svelte.">
<meta name="twitter:image" content="https://github.com/Abdenasser/neohtop/raw/main/app-icon.png">
<link rel="icon" type="image/png" href="favicon.png">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="styles.css">
<link rel="preload" href="https://github.com/Abdenasser/neohtop/raw/main/app-icon.png" as="image">
<link rel="preload" href="https://github.com/Abdenasser/neohtop/raw/main/screenshot.jpg" as="image">
</head>
<body>
<header>
<nav>
<a href="#home">Home</a>
<a href="#features">Features</a>
<a href="#download">Download</a>
<a href="#install">Install</a>
<a href="#changelog">Changelog</a>
<button id="themeToggle" class="theme-toggle" aria-label="Toggle theme">
<span class="theme-icon">🌙</span>
</button>
</nav>
</header>
<main>
<div class="hero">
<img src="../app-icon.png" alt="NeoHtop Logo" class="logo">
<section id="home" class="hero">
<img src="https://github.com/Abdenasser/neohtop/raw/main/app-icon.png" alt="NeoHtop Logo" class="logo">
<h1>NeoHtop</h1>
<p class="tagline">A modern, cross-platform system monitor</p>
</div>
<div class="screenshot">
<img src="../screenshot.jpg" alt="NeoHtop Screenshot" class="screenshot-img">
</div>
<div class="downloads">
<h2>Download for macOS</h2>
<div class="download-options">
<a href="https://github.com/yourusername/neohtop/releases/latest/download/NeoHtop-universal.dmg"
class="download-button">
<span class="icon">⬇️</span>
Universal (Intel + Apple Silicon)
</a>
<a href="https://github.com/yourusername/neohtop/releases/latest/download/NeoHtop-intel.dmg"
class="download-button">
<span class="icon">⬇️</span>
Intel Mac
</a>
<a href="https://github.com/yourusername/neohtop/releases/latest/download/NeoHtop-silicon.dmg"
class="download-button">
<span class="icon">⬇️</span>
Apple Silicon
</a>
<div class="badges">
<span class="badge">Rust</span>
<span class="badge">Tauri</span>
<span class="badge">Svelte</span>
</div>
<p class="version">Latest version: v0.1.0</p>
</div>
</section>
<div class="features">
<section class="screenshot">
<img src="https://github.com/Abdenasser/neohtop/raw/main/screenshot.jpg" alt="NeoHtop Screenshot"
class="screenshot-img">
</section>
<section id="features" class="features">
<h2>Features</h2>
<div class="feature-grid">
<div class="feature">
<span class="emoji">🚀</span>
<h3>Real-time Monitoring</h3>
<p>Track system processes in real-time</p>
<p>Track system processes in real-time with minimal resource usage</p>
</div>
<div class="feature">
<span class="emoji">🎨</span>
<h3>Modern UI</h3>
<p>Beautiful interface with dark/light themes</p>
<p>Beautiful interface with automatic dark/light theme detection</p>
</div>
<div class="feature">
<span class="emoji">🔍</span>
<h3>Smart Search</h3>
<p>Quick process search and filtering</p>
<p>Quick process search with advanced filtering options</p>
</div>
<div class="feature">
<span class="emoji">📌</span>
<h3>Process Pinning</h3>
<p>Keep important processes in view</p>
<p>Keep important processes in view for easy monitoring</p>
</div>
<div class="feature">
<span class="emoji">⚡️</span>
<h3>Resource Efficient</h3>
<p>Built with Rust for optimal performance and low memory usage</p>
</div>
<div class="feature">
<span class="emoji">🛠</span>
<h3>Process Management</h3>
<p>View and manage processes with detailed information</p>
</div>
</div>
</div>
</section>
<section id="download" class="downloads">
<h2>Download for macOS</h2>
<div class="system-requirements">
<h3>System Requirements</h3>
<ul>
<li>macOS 10.15 or later</li>
<li>4GB RAM minimum</li>
<li>100MB free disk space</li>
</ul>
</div>
<div class="download-options">
<a href="https://github.com/yourusername/neohtop/releases/latest/download/NeoHtop-universal.dmg"
class="download-button">
<span class="icon">⬇️</span>
Universal (Intel + Apple Silicon)
<span class="size">15.2 MB</span>
</a>
<a href="https://github.com/yourusername/neohtop/releases/latest/download/NeoHtop-intel.dmg"
class="download-button">
<span class="icon">⬇️</span>
Intel Mac
<span class="size">14.8 MB</span>
</a>
<a href="https://github.com/yourusername/neohtop/releases/latest/download/NeoHtop-silicon.dmg"
class="download-button">
<span class="icon">⬇️</span>
Apple Silicon
<span class="size">14.6 MB</span>
</a>
</div>
<p class="version">Latest version: v0.1.0 (Released March 14, 2024)</p>
</section>
<section id="install" class="install">
<h2>Installation Guide</h2>
<div class="install-steps">
<div class="step">
<span class="step-number">1</span>
<h3>Download</h3>
<p>Choose and download the appropriate version for your Mac</p>
</div>
<div class="step">
<span class="step-number">2</span>
<h3>Open DMG</h3>
<p>Double-click the downloaded .dmg file</p>
</div>
<div class="step">
<span class="step-number">3</span>
<h3>Install</h3>
<p>Drag NeoHtop to your Applications folder</p>
</div>
<div class="step">
<span class="step-number">4</span>
<h3>First Launch</h3>
<p>Right-click and choose Open to bypass Gatekeeper</p>
</div>
</div>
</section>
<section id="faq" class="faq">
<h2>Frequently Asked Questions</h2>
<div class="faq-list">
<div class="faq-item">
<div class="faq-question">
How does NeoHtop compare to Activity Monitor?
<span class="arrow"></span>
</div>
<div class="faq-answer">
NeoHtop offers a modern interface with additional features like process pinning, smart search, and themes
while maintaining high performance through its Rust backend.
</div>
</div>
<div class="faq-item">
<div class="faq-question">
Is NeoHtop resource intensive?
<span class="arrow"></span>
</div>
<div class="faq-answer">
No, NeoHtop is built with Rust and optimized for minimal resource usage, typically using less than 1% CPU
and minimal memory.
</div>
</div>
</div>
</section>
<section id="shortcuts" class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<div class="shortcut-grid">
<div class="shortcut">
<span>Search Processes</span>
<span class="key">⌘ F</span>
</div>
<div class="shortcut">
<span>Refresh</span>
<span class="key">⌘ R</span>
</div>
<div class="shortcut">
<span>Kill Process</span>
<span class="key">⌘ K</span>
</div>
</div>
</section>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script src="main.js"></script>
<footer>
<p>

96
docs/main.js Normal file
View File

@ -0,0 +1,96 @@
// Theme Management
const themeToggle = document.getElementById('themeToggle');
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)');
function setTheme(isDark) {
document.documentElement.setAttribute('data-theme', isDark ? 'dark' : 'light');
themeToggle.querySelector('.theme-icon').textContent = isDark ? '☀️' : '🌙';
localStorage.setItem('theme', isDark ? 'dark' : 'light');
}
// Initialize theme
const savedTheme = localStorage.getItem('theme');
if (savedTheme) {
setTheme(savedTheme === 'dark');
} else {
setTheme(prefersDark.matches);
}
// Theme toggle button
themeToggle.addEventListener('click', () => {
const isDark = document.documentElement.getAttribute('data-theme') === 'dark';
setTheme(!isDark);
});
// System theme changes
prefersDark.addEventListener('change', (e) => {
if (!localStorage.getItem('theme')) {
setTheme(e.matches);
}
});
// FAQ Accordion
document.querySelectorAll('.faq-question').forEach(question => {
question.addEventListener('click', () => {
const item = question.parentElement;
const isActive = item.classList.contains('active');
// Close all FAQ items
document.querySelectorAll('.faq-item').forEach(item => {
item.classList.remove('active');
const answer = item.querySelector('.faq-answer');
answer.style.maxHeight = null;
});
// Open clicked item if it wasn't active
if (!isActive) {
item.classList.add('active');
const answer = item.querySelector('.faq-answer');
answer.style.maxHeight = answer.scrollHeight + 'px';
}
});
});
// Download tracking
document.querySelectorAll('.download-button').forEach(button => {
button.addEventListener('click', (e) => {
const version = button.getAttribute('data-version');
const type = button.getAttribute('data-type');
// Google Analytics event
gtag('event', 'download', {
'event_category': 'App',
'event_label': type,
'value': version
});
});
});
// Smooth scroll for navigation
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// Intersection Observer for animations
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}, {
threshold: 0.1
});
document.querySelectorAll('.feature, .step, .download-button').forEach(el => {
observer.observe(el);
});

View File

@ -1,25 +1,30 @@
:root {
--primary: #2563eb;
--primary-light: #3b82f6;
--text: #1f2937;
--background: #ffffff;
--card: #f3f4f6;
--border: #e5e7eb;
--hover: #f9fafb;
--code-bg: #f1f5f9;
}
@media (prefers-color-scheme: dark) {
:root {
--primary: #3b82f6;
--text: #f3f4f6;
--background: #111827;
--card: #1f2937;
--border: #374151;
}
[data-theme="dark"] {
--primary: #3b82f6;
--primary-light: #60a5fa;
--text: #f3f4f6;
--background: #111827;
--card: #1f2937;
--border: #374151;
--hover: #1f2937;
--code-bg: #1e293b;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
}
body {
@ -27,14 +32,69 @@ body {
background: var(--background);
color: var(--text);
line-height: 1.6;
transition: background-color 0.3s, color 0.3s;
}
/* Header & Navigation */
header {
background: var(--card);
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border);
}
nav {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
nav a {
color: var(--text);
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 6px;
transition: background-color 0.2s;
}
nav a:hover {
background: var(--hover);
}
/* Theme Toggle */
.theme-toggle {
background: none;
border: none;
color: var(--text);
cursor: pointer;
padding: 0.5rem;
border-radius: 50%;
transition: background-color 0.2s;
}
.theme-toggle:hover {
background: var(--hover);
}
/* Main Content */
main {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
/* Sections */
section {
margin: 6rem 0;
scroll-margin-top: 5rem;
}
/* Hero Section */
.hero {
text-align: center;
padding: 4rem 0;
@ -44,35 +104,49 @@ main {
width: 120px;
height: 120px;
margin-bottom: 1rem;
transition: transform 0.3s;
}
h1 {
font-size: 3rem;
margin-bottom: 1rem;
.logo:hover {
transform: scale(1.05);
}
.tagline {
font-size: 1.5rem;
color: var(--text);
opacity: 0.8;
.badges {
display: flex;
gap: 0.5rem;
justify-content: center;
margin-top: 1rem;
}
.screenshot {
margin: 4rem 0;
text-align: center;
.badge {
background: var(--primary);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.875rem;
}
.screenshot-img {
max-width: 100%;
/* Features */
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.feature {
background: var(--card);
padding: 2rem;
border-radius: 12px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
transition: transform 0.2s;
border: 1px solid var(--border);
}
.downloads {
text-align: center;
margin: 4rem 0;
.feature:hover {
transform: translateY(-4px);
}
/* Download Section */
.download-options {
display: flex;
gap: 1rem;
@ -90,65 +164,150 @@ h1 {
display: flex;
align-items: center;
gap: 0.5rem;
transition: transform 0.2s;
transition: all 0.2s;
position: relative;
}
.download-button:hover {
background: var(--primary-light);
transform: translateY(-2px);
}
.version {
color: var(--text);
opacity: 0.6;
.size {
font-size: 0.875rem;
opacity: 0.8;
}
.features {
margin: 4rem 0;
}
.feature-grid {
/* Installation Steps */
.install-steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.feature {
.step {
background: var(--card);
padding: 2rem;
border-radius: 12px;
text-align: center;
position: relative;
border: 1px solid var(--border);
}
.emoji {
font-size: 2rem;
margin-bottom: 1rem;
.step-number {
position: absolute;
top: -1rem;
left: -1rem;
background: var(--primary);
color: white;
width: 2rem;
height: 2rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}
/* Keyboard Shortcuts */
.shortcuts {
background: var(--card);
border-radius: 12px;
padding: 2rem;
margin-top: 2rem;
border: 1px solid var(--border);
}
.shortcut-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
}
.shortcut {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem;
border-radius: 6px;
}
.shortcut:hover {
background: var(--hover);
}
.key {
background: var(--code-bg);
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-family: monospace;
font-size: 0.875rem;
}
/* FAQ Section */
.faq {
margin-top: 2rem;
}
.faq-item {
border-bottom: 1px solid var(--border);
padding: 1rem 0;
}
.faq-question {
font-weight: 600;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}
.faq-answer {
margin-top: 1rem;
display: none;
}
.faq-item.active .faq-answer {
display: block;
}
/* Footer */
footer {
text-align: center;
margin-top: 4rem;
padding-top: 2rem;
border-top: 1px solid var(--border);
margin-top: 6rem;
padding-top: 3rem;
}
.github-link {
color: var(--primary);
text-decoration: none;
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.github-link:hover {
text-decoration: underline;
.footer-section {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.copyright {
margin-top: 1rem;
.footer-section a {
color: var(--text);
opacity: 0.6;
text-decoration: none;
opacity: 0.8;
}
.footer-section a:hover {
opacity: 1;
}
/* Responsive Design */
@media (max-width: 768px) {
nav {
flex-wrap: wrap;
gap: 0.5rem;
}
.download-options {
flex-direction: column;
}
@ -156,4 +315,27 @@ footer {
.feature-grid {
grid-template-columns: 1fr;
}
.install-steps {
grid-template-columns: 1fr;
}
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.feature,
.step,
.download-button {
animation: fadeIn 0.5s ease-out;
}