Modern redesign: dark mode, rounded cards, gradient accents
This commit is contained in:
parent
043f06a2c9
commit
6993073454
4 changed files with 195 additions and 80 deletions
|
|
@ -1 +1 @@
|
|||
Clean up unused Vite template files
|
||||
Fix Tailwind v4 import syntax
|
||||
232
index.html
232
index.html
|
|
@ -1,95 +1,177 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="en" class="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>TillTheEnd - Delivering results, not promises</title>
|
||||
<meta name="description" content="IT consulting and freelancing services">
|
||||
<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;500;600;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body class="bg-white">
|
||||
<div id="app">
|
||||
<!-- Header -->
|
||||
<header class="container mx-auto py-6 flex justify-between items-center">
|
||||
<div class="text-2xl font-bold">TillTheEnd</div>
|
||||
<nav class="space-x-6">
|
||||
<a href="#services" class="text-gray-600 hover:text-orange-500">Services</a>
|
||||
<a href="#about" class="text-gray-600 hover:text-orange-500">About</a>
|
||||
<a href="#contact" class="text-gray-600 hover:text-orange-500">Contact</a>
|
||||
</nav>
|
||||
</header>
|
||||
<body class="bg-white dark:bg-gray-950 text-gray-900 dark:text-gray-100 transition-colors duration-300">
|
||||
<!-- Background gradient -->
|
||||
<div class="fixed inset-0 -z-10 bg-gradient-to-br from-orange-50 via-white to-purple-50 dark:from-gray-950 dark:via-gray-900 dark:to-gray-950"></div>
|
||||
|
||||
<!-- Header -->
|
||||
<header class="container mx-auto px-6 py-6 flex justify-between items-center">
|
||||
<div class="text-2xl font-bold bg-gradient-to-r from-orange-500 to-purple-500 bg-clip-text text-transparent">
|
||||
TillTheEnd
|
||||
</div>
|
||||
<nav class="flex items-center gap-4">
|
||||
<a href="#services" class="px-4 py-2 rounded-full text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-all">Services</a>
|
||||
<a href="#about" class="px-4 py-2 rounded-full text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-all">About</a>
|
||||
<a href="#contact" class="px-4 py-2 rounded-full text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-all">Contact</a>
|
||||
<button id="theme-toggle" class="p-2 rounded-full bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors" aria-label="Toggle dark mode">
|
||||
<svg class="w-5 h-5 hidden dark:block" fill="currentColor" viewBox="0 0 20 20">
|
||||
<path d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z" fill-rule="evenodd" clip-rule="evenodd"></path>
|
||||
</svg>
|
||||
<svg class="w-5 h-5 block dark:hidden" fill="currentColor" viewBox="0 0 20 20">
|
||||
<path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- Hero Section -->
|
||||
<section class="container mx-auto py-20 text-center">
|
||||
<h1 class="text-5xl font-bold mb-4">TillTheEnd</h1>
|
||||
<p class="text-2xl text-gray-600 mb-8">Delivering results, not promises.</p>
|
||||
<div class="flex justify-center space-x-4 mb-8">
|
||||
<a href="#contact" class="bg-orange-500 text-white px-6 py-3 rounded hover:bg-orange-600">Contact</a>
|
||||
<a href="https://github.com/iRave" class="border border-gray-300 px-6 py-3 rounded hover:bg-gray-100">GitHub</a>
|
||||
</div>
|
||||
<p class="text-gray-500">Software Development • Infrastructure • Consulting</p>
|
||||
</section>
|
||||
<!-- Hero Section -->
|
||||
<section class="container mx-auto px-6 py-20 md:py-32 text-center">
|
||||
<div class="inline-flex items-center gap-2 px-4 py-2 rounded-full bg-orange-100 dark:bg-orange-500/10 text-orange-600 dark:text-orange-400 text-sm font-medium mb-8">
|
||||
<span class="w-2 h-2 rounded-full bg-orange-500 animate-pulse"></span>
|
||||
Available for new projects
|
||||
</div>
|
||||
<h1 class="text-5xl md:text-7xl font-bold mb-6 bg-gradient-to-r from-gray-900 via-gray-800 to-gray-900 dark:from-white dark:via-gray-200 dark:to-white bg-clip-text text-transparent">
|
||||
TillTheEnd
|
||||
</h1>
|
||||
<p class="text-2xl md:text-3xl text-gray-600 dark:text-gray-400 mb-10 max-w-2xl mx-auto">
|
||||
Delivering results, not promises.
|
||||
</p>
|
||||
<div class="flex flex-col sm:flex-row justify-center gap-4 mb-12">
|
||||
<a href="#contact" class="inline-flex items-center justify-center gap-2 px-8 py-4 rounded-2xl bg-gradient-to-r from-orange-500 to-orange-600 text-white font-semibold hover:from-orange-600 hover:to-orange-700 transition-all shadow-lg shadow-orange-500/25 hover:shadow-xl hover:shadow-orange-500/30 hover:-translate-y-0.5">
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
|
||||
</svg>
|
||||
Get in Touch
|
||||
</a>
|
||||
<a href="https://github.com/iRave" target="_blank" class="inline-flex items-center justify-center gap-2 px-8 py-4 rounded-2xl bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white font-semibold hover:bg-gray-200 dark:hover:bg-gray-700 transition-all border border-gray-200 dark:border-gray-700 hover:-translate-y-0.5">
|
||||
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"></path>
|
||||
</svg>
|
||||
GitHub
|
||||
</a>
|
||||
</div>
|
||||
<div class="flex flex-wrap justify-center gap-6 text-gray-500 dark:text-gray-500 text-sm">
|
||||
<span class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4 text-orange-500" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>
|
||||
Software Development
|
||||
</span>
|
||||
<span class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4 text-purple-500" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>
|
||||
Infrastructure
|
||||
</span>
|
||||
<span class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4 text-orange-500" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>
|
||||
Consulting
|
||||
</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Services Section -->
|
||||
<section id="services" class="container mx-auto py-20">
|
||||
<h2 class="text-3xl font-bold text-center mb-12">Services</h2>
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
||||
<div class="text-center p-6">
|
||||
<div class="text-4xl mb-4">💻</div>
|
||||
<h3 class="text-xl font-bold mb-2">Software Development</h3>
|
||||
<p class="text-gray-600">Custom solutions tailored to your needs</p>
|
||||
</div>
|
||||
<div class="text-center p-6">
|
||||
<div class="text-4xl mb-4">⚙️</div>
|
||||
<h3 class="text-xl font-bold mb-2">Infrastructure</h3>
|
||||
<p class="text-gray-600">Reliable systems architecture</p>
|
||||
</div>
|
||||
<div class="text-center p-6">
|
||||
<div class="text-4xl mb-4">💬</div>
|
||||
<h3 class="text-xl font-bold mb-2">Consulting</h3>
|
||||
<p class="text-gray-600">Expert guidance from concept to completion</p>
|
||||
<!-- Services Section -->
|
||||
<section id="services" class="container mx-auto px-6 py-20">
|
||||
<h2 class="text-3xl md:text-4xl font-bold text-center mb-16">Services</h2>
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto">
|
||||
<div class="group p-8 rounded-3xl bg-white/50 dark:bg-gray-900/50 border border-gray-200 dark:border-gray-800 hover:border-orange-200 dark:hover:border-orange-500/30 hover:shadow-xl hover:shadow-orange-500/5 transition-all">
|
||||
<div class="w-14 h-14 rounded-2xl bg-gradient-to-br from-orange-500 to-orange-600 flex items-center justify-center text-2xl mb-6 group-hover:scale-110 transition-transform shadow-lg shadow-orange-500/25">
|
||||
💻
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">Software Development</h3>
|
||||
<p class="text-gray-600 dark:text-gray-400">Custom solutions tailored to your needs. From web apps to backend systems.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- About Section -->
|
||||
<section id="about" class="container mx-auto py-20 bg-gray-50 rounded-lg">
|
||||
<h2 class="text-3xl font-bold text-center mb-8">About</h2>
|
||||
<div class="text-center max-w-2xl mx-auto">
|
||||
<p class="text-gray-600">
|
||||
TillTheEnd is an IT consulting and freelancing service focused on delivering
|
||||
exceptional results for clients. With expertise in software development,
|
||||
infrastructure, and strategic consulting, we help businesses achieve their
|
||||
technology goals.
|
||||
</p>
|
||||
<div class="group p-8 rounded-3xl bg-white/50 dark:bg-gray-900/50 border border-gray-200 dark:border-gray-800 hover:border-purple-200 dark:hover:border-purple-500/30 hover:shadow-xl hover:shadow-purple-500/5 transition-all">
|
||||
<div class="w-14 h-14 rounded-2xl bg-gradient-to-br from-purple-500 to-purple-600 flex items-center justify-center text-2xl mb-6 group-hover:scale-110 transition-transform shadow-lg shadow-purple-500/25">
|
||||
⚙️
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">Infrastructure</h3>
|
||||
<p class="text-gray-600 dark:text-gray-400">Reliable systems architecture. Cloud, containers, and automation.</p>
|
||||
</div>
|
||||
</section>
|
||||
<div class="group p-8 rounded-3xl bg-white/50 dark:bg-gray-900/50 border border-gray-200 dark:border-gray-800 hover:border-orange-200 dark:hover:border-orange-500/30 hover:shadow-xl hover:shadow-orange-500/5 transition-all">
|
||||
<div class="w-14 h-14 rounded-2xl bg-gradient-to-br from-orange-500 to-purple-600 flex items-center justify-center text-2xl mb-6 group-hover:scale-110 transition-transform shadow-lg shadow-purple-500/25">
|
||||
💬
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">Consulting</h3>
|
||||
<p class="text-gray-600 dark:text-gray-400">Expert guidance from concept to completion. Technical strategy and mentorship.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Contact Section -->
|
||||
<section id="contact" class="container mx-auto py-20">
|
||||
<h2 class="text-3xl font-bold text-center mb-12">Contact</h2>
|
||||
<div class="max-w-2xl mx-auto">
|
||||
<div class="space-y-4">
|
||||
<div class="flex items-center">
|
||||
<span class="font-semibold w-24">Email:</span>
|
||||
<a href="mailto:contact@tilltheend.de" class="text-orange-500 hover:underline">contact@tilltheend.de</a>
|
||||
<!-- About Section -->
|
||||
<section id="about" class="container mx-auto px-6 py-20">
|
||||
<div class="max-w-3xl mx-auto p-8 md:p-12 rounded-3xl bg-gradient-to-br from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800 border border-gray-200 dark:border-gray-700">
|
||||
<h2 class="text-3xl md:text-4xl font-bold text-center mb-8">About</h2>
|
||||
<p class="text-gray-600 dark:text-gray-400 text-lg leading-relaxed text-center">
|
||||
TillTheEnd is an IT consulting and freelancing service focused on delivering
|
||||
exceptional results for clients. With expertise in software development,
|
||||
infrastructure, and strategic consulting, we help businesses achieve their
|
||||
technology goals.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Contact Section -->
|
||||
<section id="contact" class="container mx-auto px-6 py-20">
|
||||
<h2 class="text-3xl md:text-4xl font-bold text-center mb-16">Get in Touch</h2>
|
||||
<div class="max-w-2xl mx-auto">
|
||||
<div class="grid gap-4">
|
||||
<a href="mailto:contact@tilltheend.de" class="flex items-center gap-4 p-6 rounded-2xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 hover:border-orange-300 dark:hover:border-orange-500/50 hover:shadow-lg transition-all group">
|
||||
<div class="w-12 h-12 rounded-xl bg-orange-100 dark:bg-orange-500/20 flex items-center justify-center text-orange-600 dark:text-orange-400 group-hover:scale-110 transition-transform">
|
||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<span class="font-semibold w-24">GitHub:</span>
|
||||
<a href="https://github.com/iRave" class="text-purple-500 hover:underline" target="_blank">github.com/iRave</a>
|
||||
<div class="flex-1">
|
||||
<div class="text-sm text-gray-500 dark:text-gray-500">Email</div>
|
||||
<div class="font-semibold text-gray-900 dark:text-white">contact@tilltheend.de</div>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<span class="font-semibold w-24">LinkedIn:</span>
|
||||
<a href="https://de.linkedin.com/in/tilltheend" class="text-purple-500 hover:underline" target="_blank">de.linkedin.com/in/tilltheend</a>
|
||||
<svg class="w-5 h-5 text-gray-400 group-hover:text-orange-500 group-hover:translate-x-1 transition-all" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="https://github.com/iRave" target="_blank" class="flex items-center gap-4 p-6 rounded-2xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-600 hover:shadow-lg transition-all group">
|
||||
<div class="w-12 h-12 rounded-xl bg-gray-100 dark:bg-gray-800 flex items-center justify-center text-gray-700 dark:text-gray-300 group-hover:scale-110 transition-transform">
|
||||
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<div class="text-sm text-gray-500 dark:text-gray-500">GitHub</div>
|
||||
<div class="font-semibold text-gray-900 dark:text-white">github.com/iRave</div>
|
||||
</div>
|
||||
<svg class="w-5 h-5 text-gray-400 group-hover:text-gray-600 dark:group-hover:text-gray-300 group-hover:translate-x-1 transition-all" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
||||
</svg>
|
||||
</a>
|
||||
<a href="https://de.linkedin.com/in/tilltheend" target="_blank" class="flex items-center gap-4 p-6 rounded-2xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 hover:border-purple-300 dark:hover:border-purple-500/50 hover:shadow-lg transition-all group">
|
||||
<div class="w-12 h-12 rounded-xl bg-purple-100 dark:bg-purple-500/20 flex items-center justify-center text-purple-600 dark:text-purple-400 group-hover:scale-110 transition-transform">
|
||||
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<div class="text-sm text-gray-500 dark:text-gray-500">LinkedIn</div>
|
||||
<div class="font-semibold text-gray-900 dark:text-white">de.linkedin.com/in/tilltheend</div>
|
||||
</div>
|
||||
<svg class="w-5 h-5 text-gray-400 group-hover:text-purple-500 group-hover:translate-x-1 transition-all" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="container mx-auto px-6 py-10 mt-10 border-t border-gray-200 dark:border-gray-800 text-center text-gray-500 dark:text-gray-500">
|
||||
<p>© 2026 TillTheEnd. All rights reserved.</p>
|
||||
</footer>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="container mx-auto py-10 border-t mt-10 text-center text-gray-500">
|
||||
<p>© 2026 TillTheEnd. All rights reserved.</p>
|
||||
</footer>
|
||||
</div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
12
src/main.css
12
src/main.css
|
|
@ -1,7 +1,10 @@
|
|||
@import "tailwindcss";
|
||||
|
||||
@theme {
|
||||
--font-family-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
}
|
||||
|
||||
:root {
|
||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
background-color: #fafafa;
|
||||
color: #111;
|
||||
}
|
||||
|
|
@ -14,5 +17,10 @@ body {
|
|||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
padding: 0 1.5rem;
|
||||
}
|
||||
|
||||
/* Smooth scrolling */
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
29
src/main.js
29
src/main.js
|
|
@ -1,4 +1,29 @@
|
|||
import './main.css'
|
||||
|
||||
// TillTheEnd website initialization
|
||||
console.log('TillTheEnd website loaded')
|
||||
// Dark mode toggle
|
||||
const themeToggle = document.getElementById('theme-toggle')
|
||||
const html = document.documentElement
|
||||
|
||||
// Check for saved theme or system preference
|
||||
const savedTheme = localStorage.getItem('theme')
|
||||
if (savedTheme) {
|
||||
html.classList.toggle('dark', savedTheme === 'dark')
|
||||
} else {
|
||||
html.classList.toggle('dark', window.matchMedia('(prefers-color-scheme: dark)').matches)
|
||||
}
|
||||
|
||||
themeToggle.addEventListener('click', () => {
|
||||
const isDark = html.classList.toggle('dark')
|
||||
localStorage.setItem('theme', isDark ? 'dark' : 'light')
|
||||
})
|
||||
|
||||
// Smooth scroll for anchor links
|
||||
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' })
|
||||
}
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Reference in a new issue