Convert menu/referinte.html to professional theme

- Replace Bootstrap with Tailwind CSS and professional theme
- Add professional hero section with improved typography
- Convert testimonials to professional card layout with icons
- Organize client portfolio by industry categories
- Add professional navigation and footer matching index.html
- Implement dark/light theme toggle functionality
- Use Lucide icons for enhanced visual appeal

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-08-14 16:57:51 +03:00
parent 24502baf8b
commit 67822a7bd6

View File

@@ -6,177 +6,304 @@
<title>Referinte Clienti - Romfast</title> <title>Referinte Clienti - Romfast</title>
<meta name="description" content="Portofoliul de clienti Romfast. Companii din diverse domenii de activitate, precum constructii, comert, service auto, transporturi si productie, folosesc cu succes sistemul ERP ROA."> <meta name="description" content="Portofoliul de clienti Romfast. Companii din diverse domenii de activitate, precum constructii, comert, service auto, transporturi si productie, folosesc cu succes sistemul ERP ROA.">
<meta name="keywords" content="referinte clienti, portofoliu clienti, clienti erp, clienti roa, uzina termoelectrica midia, conpress group, abc val, argenta, cnas"> <meta name="keywords" content="referinte clienti, portofoliu clienti, clienti erp, clienti roa, uzina termoelectrica midia, conpress group, abc val, argenta, cnas">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Flowbite -->
<script src="https://cdn.jsdelivr.net/npm/flowbite@2.0.0/dist/flowbite.min.js"></script>
<!-- Lucide Icons -->
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
<!-- Google Fonts --> <!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@300;400;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<!-- Custom CSS --> <!-- Professional Theme CSS -->
<link href="../new-style.css" rel="stylesheet"> <link href="../professional-theme.css" rel="stylesheet">
</head> </head>
<body> <body class="min-h-screen">
<div class="page-wrapper">
<!-- Navigation & Branding Header --> <!-- Soft Professional Blue Header -->
<header class="shadow-sm"> <header class="professional-navbar sticky top-0 z-50">
<nav class="navbar navbar-expand-lg navbar-dark py-3"> <nav class="container mx-auto px-4 py-4">
<div class="container"> <div class="flex items-center justify-between">
<!-- Branding Section --> <!-- Logo Section -->
<a class="navbar-brand d-flex flex-column align-items-start" href="../index.html"> <div class="flex items-center space-x-3">
<img src="../images/romfast_logo.png" alt="Romfast Logo" style="height: 70px; margin-bottom: 5px;"> <img src="../images/romfast_logo.png" alt="Romfast Logo" class="romfast-logo">
<div> <div class="hidden md:block">
<div class="slogan fs-6 text-white" style="font-family: 'Open Sans', sans-serif; font-style: italic;">Aduce informația în mâinile tale</div> <p class="text-white text-sm italic font-light">Aduce informația în mâinile tale</p>
</div> </div>
</a> </div>
<!-- Toggler --> <!-- Centered Navigation -->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNav" aria-controls="mainNav" aria-expanded="false" aria-label="Toggle navigation"> <div class="hidden lg:flex items-center space-x-8">
<span class="navbar-toggler-icon"></span> <a href="../index.html" class="text-white hover:text-blue-200 transition-colors nav-link">Prima pagina</a>
</button> <a href="desprenoi.html" class="text-white hover:text-blue-200 transition-colors nav-link">Despre noi</a>
<a href="../roa/aplicatii-erp.html" class="text-white hover:text-blue-200 transition-colors nav-link">ROA</a>
<!-- Links --> <div class="relative group">
<div class="collapse navbar-collapse" id="mainNav"> <button class="text-white hover:text-blue-200 transition-colors flex items-center space-x-1 nav-link">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0"> <span>Servicii</span>
<li class="nav-item"><a class="nav-link" href="../index.html">Prima pagina</a></li> <i data-lucide="chevron-down" class="w-4 h-4"></i>
<li class="nav-item"><a class="nav-link" href="desprenoi.html">Despre noi</a></li> </button>
<li class="nav-item"><a class="nav-link" href="../roa/aplicatii-erp.html">ROA</a></li> <div class="absolute top-full left-0 mt-2 w-48 bg-white rounded-lg shadow-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300">
<li class="nav-item dropdown"> <a href="analiza.html" class="block px-4 py-3 text-gray-700 hover:bg-blue-50 hover:text-blue-800 rounded-t-lg">Analiza</a>
<a class="nav-link dropdown-toggle" href="#" id="serviciiDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> <a href="implementare.html" class="block px-4 py-3 text-gray-700 hover:bg-blue-50 hover:text-blue-800">Implementare</a>
Servicii <a href="roa-suport-tehnic.html" class="block px-4 py-3 text-gray-700 hover:bg-blue-50 hover:text-blue-800">Suport tehnic ROA</a>
</a> <a href="alteservicii.html" class="block px-4 py-3 text-gray-700 hover:bg-blue-50 hover:text-blue-800 rounded-b-lg">Alte servicii</a>
<ul class="dropdown-menu" aria-labelledby="serviciiDropdown"> </div>
<li><a class="dropdown-item" href="analiza.html">Analiza</a></li> </div>
<li><a class="dropdown-item" href="implementare.html">Implementare</a></li> <a href="referinte.html" class="text-blue-200 hover:text-blue-100 transition-colors nav-link font-medium">Referinte</a>
<li><a class="dropdown-item" href="roa-suport-tehnic.html">Suport tehnic ROA</a></li> <a href="angajari.html" class="text-white hover:text-blue-200 transition-colors nav-link">Angajari</a>
<li><a class="dropdown-item" href="alteservicii.html">Alte servicii</a></li> <a href="contact.html" class="text-white hover:text-blue-200 transition-colors nav-link">Contact</a>
</ul> </div>
</li>
<li class="nav-item"><a class="nav-link active" href="referinte.html">Referinte</a></li> <!-- Theme Toggle & Mobile Menu -->
<li class="nav-item"><a class="nav-link" href="angajari.html">Angajari</a></li> <div class="flex items-center space-x-4">
<li class="nav-item"><a class="nav-link" href="contact.html">Contact</a></li> <button id="theme-toggle" class="text-white p-2 rounded-lg hover:bg-white hover:bg-opacity-20 transition-all duration-300">
<li class="nav-item dropdown"> <i data-lucide="sun" class="w-5 h-5"></i>
<button class="btn btn-outline-light dropdown-toggle ms-2" type="button" id="themeDropdown" data-bs-toggle="dropdown" aria-expanded="false"> </button>
Theme <button class="lg:hidden text-white p-2">
</button> <i data-lucide="menu" class="w-6 h-6"></i>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="themeDropdown"> </button>
<li><a class="dropdown-item" href="#" data-theme="light">Light Mode</a></li>
<li><a class="dropdown-item" href="#" data-theme="dark">Dark Mode</a></li>
<li><a class="dropdown-item" href="#" data-theme="system">System Mode</a></li>
</ul>
</li>
</ul>
</div> </div>
</div> </div>
</nav> </nav>
</header> </header>
<!-- Main Content --> <!-- Main Content Container -->
<main class="container my-5"> <main class="container mx-auto px-4 py-8 max-w-7xl">
<h1 class="mb-4">Referinte</h1>
<div class="row"> <!-- Professional Header Section -->
<div class="col-md-6 mb-4"> <section class="professional-hero text-center mb-12">
<div class="card h-100"> <div class="max-w-4xl mx-auto relative z-10">
<div class="card-body"> <h1 class="text-4xl md:text-5xl font-bold mb-6 professional-text-primary">
<h5 class="card-title">UZINA TERMOELECTRICA MIDIA SA</h5> Referinte Clienti
<blockquote class="blockquote mb-0"> </h1>
<p>"Sistemul ROA Romfast Applications indeplineste toate necesitatile companiei noastre in domeniile securitatii si integritatii datelor, ergonomiei in operare si ariei de acoperire a activitatii pe care o desfasuram. Romfast este un furnizor eficient de suport tehnic si solutii informatice noi."</p> <p class="text-xl professional-text-secondary mb-8 leading-relaxed">
<footer class="blockquote-footer">Dl. Turgay Chemal, <cite title="Source Title">Director Economic</cite></footer> Portofoliul nostru de clienti cuprinde companii din diverse domenii de activitate care folosesc cu succes sistemul ERP ROA.
</blockquote> </p>
</div>
</section>
<!-- Client Testimonials Section -->
<section class="mb-16">
<h2 class="text-3xl font-bold text-center mb-12 professional-text-primary">Testimoniale</h2>
<div class="grid md:grid-cols-2 gap-8">
<!-- UZINA TERMOELECTRICA MIDIA SA Testimonial -->
<div class="professional-card p-8">
<div class="flex items-center justify-center mb-6">
<div class="professional-icon-wrapper">
<i data-lucide="zap" class="w-10 h-10 text-white"></i>
</div>
</div>
<h3 class="text-xl font-semibold mb-6 professional-text-primary text-center">UZINA TERMOELECTRICA MIDIA SA</h3>
<blockquote class="text-center">
<p class="professional-text-secondary mb-6 leading-relaxed italic">"Sistemul ROA Romfast Applications indeplineste toate necesitatile companiei noastre in domeniile securitatii si integritatii datelor, ergonomiei in operare si ariei de acoperire a activitatii pe care o desfasuram. Romfast este un furnizor eficient de suport tehnic si solutii informatice noi."</p>
<footer class="professional-text-primary font-semibold">
Dl. Turgay Chemal<br>
<cite class="text-sm professional-text-secondary font-normal">Director Economic</cite>
</footer>
</blockquote>
</div>
<!-- CONPRESS GROUP Testimonial -->
<div class="professional-card p-8">
<div class="flex items-center justify-center mb-6">
<div class="professional-icon-wrapper">
<i data-lucide="building-2" class="w-10 h-10 text-white"></i>
</div>
</div>
<h3 class="text-xl font-semibold mb-6 professional-text-primary text-center">CONPRESS GROUP</h3>
<blockquote class="text-center">
<p class="professional-text-secondary mb-6 leading-relaxed italic">"Lucram cu Romfast de 4 ani, timp in care compania noastra si-a continuat dezvoltarea. Avem siguranta ca echipa Romfast ne va furniza solutii informatice complete si performante care sa sustina ritmul de dezvoltare pe care ni l-am propus si in continuare."</p>
<footer class="professional-text-primary font-semibold">
Dna. Liliana Voicu<br>
<cite class="text-sm professional-text-secondary font-normal">Director Economic</cite>
</footer>
</blockquote>
</div>
</div>
</section>
<!-- Client Portfolio Section -->
<section class="professional-support mb-16">
<h2 class="text-3xl font-bold text-center mb-8 professional-text-primary">Portofoliu Clienti</h2>
<p class="text-center professional-text-secondary mb-12 text-lg">
Printre beneficiarii sistemelor create de echipa <strong>Romfast</strong> se numara:
</p>
<!-- Client Grid -->
<div class="grid gap-4">
<!-- Construction Companies -->
<div class="professional-card p-6">
<h3 class="text-lg font-semibold mb-4 professional-text-primary flex items-center">
<i data-lucide="hard-hat" class="w-5 h-5 mr-3" style="color: #5288c4;"></i>
Constructii
</h3>
<div class="grid md:grid-cols-2 gap-4">
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">ABC VAL Constanta</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">ARGENTA Constanta</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">EXPROCONTI S.A. Constanta</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">STEELBUILDING Constanta</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">RENAV INVEST Constanta</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
</div>
</div>
<!-- Service Auto Companies -->
<div class="professional-card p-6">
<h3 class="text-lg font-semibold mb-4 professional-text-primary flex items-center">
<i data-lucide="wrench" class="w-5 h-5 mr-3" style="color: #5288c4;"></i>
Service Auto
</h3>
<div class="grid md:grid-cols-2 gap-4">
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">ARROW Constanta</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">AUTO HAUS TUDOR Constanta</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">AUTOMOTIVE SERVICE Constanta</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
</div>
</div>
<!-- Other Industries -->
<div class="professional-card p-6">
<h3 class="text-lg font-semibold mb-4 professional-text-primary flex items-center">
<i data-lucide="briefcase" class="w-5 h-5 mr-3" style="color: #5288c4;"></i>
Diverse Industrii
</h3>
<div class="grid md:grid-cols-2 gap-4">
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">CONPRESS GROUP - Comert</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">CANALELE NAVIGABILE S.A.</span>
<span class="px-3 py-1 bg-gray-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">DIRECTIA DE PAZA CT</span>
<span class="px-3 py-1 bg-gray-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">EUROPEAN METAL SERVICES</span>
<span class="px-3 py-1 bg-gray-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">HANUL PIRATILOR - HORECA</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">METAV S.A. Bucuresti</span>
<span class="px-3 py-1 bg-gray-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">POLICLINICA IOWEMED</span>
<span class="px-3 py-1 bg-gray-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">JORDAN TV CABLE - Iordania</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA, JCS</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">TELEGRAF ADVERTISING</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
<span class="professional-text-secondary">UZINA TERMOELECTRICA MIDIA</span>
<span class="px-3 py-1 bg-blue-500 text-white text-sm rounded-full">ROA</span>
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-6 mb-4"> </section>
<div class="card h-100">
<div class="card-body">
<h5 class="card-title">CONPRESS GROUP</h5>
<blockquote class="blockquote mb-0">
<p>"Lucram cu Romfast de 4 ani, timp in care compania noastra si-a continuat dezvoltarea. Avem siguranta ca echipa Romfast ne va furniza solutii informatice complete si performante care sa sustina ritmul de dezvoltare pe care ni l-am propus si in continuare."</p>
<footer class="blockquote-footer">Dna. Liliana Voicu, <cite title="Source Title">Director Economic</cite></footer>
</blockquote>
</div>
</div>
</div>
</div>
<hr class="my-5">
<h2 class="mb-4">Portofoliu Clienti</h2>
<p>Printre beneficiarii sistemelor create de echipa <strong>Romfast</strong> se numara:</p>
<ul class="list-group">
<li class="list-group-item d-flex justify-content-between align-items-center">ABC VAL Constanta - Constructii <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">ARGENTA Constanta - Constructii <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">EXPROCONTI S.A. Constanta - Constructii <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">(METACOM) STEELBUILDING Constanta - Constructii <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">RENAV INVEST Constanta - Constructii <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">CONPRESS GROUP Constanta, Bucuresti - Comert <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">ARROW - Constanta - Service auto <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">AUTO HAUS TUDOR - Constanta - Service auto <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">AUTOMOTIVE SERVICE - Constanta - Service auto <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">C.N. ADMINISTRATIA CANALELOR NAVIGABILE S.A. Constanta - Transporturi <span class="badge bg-secondary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">DIRECTIA DE PAZA A JUDETULUI CONSTANTA - Paza obiective <span class="badge bg-secondary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">EUROPEAN METAL SERVICES Constanta - Activitati anexe transporturi <span class="badge bg-secondary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">HANUL PIRATILOR Constanta - Camping, restaurant, bar <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">INTREPRINDEREA METALURGICA PENTRU AERONAUTICA METAV S.A. Bucuresti - Produse metalice <span class="badge bg-secondary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">POLICLINICA IOWEMED Constanta - Asistenta medicala <span class="badge bg-secondary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">JORDAN TV CABLE AND INTERNET SERVICES Amman, Iordania - TV si Internet <span class="badge bg-primary rounded-pill">ROA, JCS</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">TELEGRAF ADVERTISING Constanta - Editare ziare <span class="badge bg-primary rounded-pill">ROA</span></li>
<li class="list-group-item d-flex justify-content-between align-items-center">UZINA TERMOELECTRICA MIDIA S.A. Constanta - Productie, distributie energie <span class="badge bg-primary rounded-pill">ROA</span></li>
</ul>
</main> </main>
<!-- Footer --> <!-- Professional Footer -->
<footer class="bg-dark text-white text-center py-4 mt-5"> <footer class="bg-gradient-to-r from-slate-900 via-gray-800 to-slate-900 text-white py-12" style="border-radius: 1rem 1rem 0 0;">
<div class="container"> <div class="container mx-auto px-4 text-center">
<p>Copyright &copy; 2025 Romfast SRL. Toate drepturile rezervate.</p> <div class="mb-6">
<p><a href="../politica-confidentialitate.html" class="text-white">Politica de confidentialitate</a></p> <img src="../images/romfast_logo.png" alt="Romfast Logo" class="h-12 mx-auto mb-4">
<p class="text-gray-400 italic">Aduce informația în mâinile tale</p>
</div>
<div class="border-t border-gray-700 pt-6" style="border-radius: 0.5rem;">
<p class="text-sm text-gray-400 mb-2">
Copyright &copy; 2025 Romfast SRL. Toate drepturile rezervate.
</p>
<a href="../politica-confidentialitate.html" class="text-blue-400 hover:text-blue-300 transition-colors text-sm">
Politica de confidentialitate
</a>
</div>
</div> </div>
</footer> </footer>
<!-- Bootstrap JS --> <!-- Professional Theme JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script> <script>
function applyTheme(theme) { // Theme Toggle Functionality
document.addEventListener('DOMContentLoaded', function() {
const themeToggle = document.getElementById('theme-toggle');
const body = document.body; const body = document.body;
const themeDropdownButton = document.getElementById('themeDropdown'); const icon = themeToggle.querySelector('i');
body.classList.remove('dark-mode'); // Always remove first // Check for saved theme preference or default to 'light'
const currentTheme = localStorage.getItem('theme') || 'light';
if (theme === 'dark') {
if (currentTheme === 'dark') {
body.classList.add('dark-mode'); body.classList.add('dark-mode');
} else if (theme === 'system') { icon.setAttribute('data-lucide', 'moon');
if (window.matchMedia('(prefers-color-scheme: dark)').matches) { } else {
body.classList.add('dark-mode'); body.classList.remove('dark-mode');
} icon.setAttribute('data-lucide', 'sun');
} }
themeDropdownButton.textContent = theme.charAt(0).toUpperCase() + theme.slice(1) + ' Mode';
localStorage.setItem('themePreference', theme); // Initialize Lucide icons
} if (typeof lucide !== 'undefined') {
lucide.createIcons();
document.querySelectorAll('.dropdown-item[data-theme]').forEach(item => { }
item.addEventListener('click', function(event) {
event.preventDefault(); themeToggle.addEventListener('click', function() {
const theme = this.getAttribute('data-theme'); if (body.classList.contains('dark-mode')) {
applyTheme(theme); body.classList.remove('dark-mode');
icon.setAttribute('data-lucide', 'sun');
localStorage.setItem('theme', 'light');
} else {
body.classList.add('dark-mode');
icon.setAttribute('data-lucide', 'moon');
localStorage.setItem('theme', 'dark');
}
// Re-initialize Lucide icons after change
if (typeof lucide !== 'undefined') {
lucide.createIcons();
}
}); });
}); });
// Initial theme application based on saved preference or system preference // Initialize Lucide Icons
const savedTheme = localStorage.getItem('themePreference'); document.addEventListener('DOMContentLoaded', function() {
if (savedTheme) { if (typeof lucide !== 'undefined') {
applyTheme(savedTheme); lucide.createIcons();
} else {
// Default to system mode if no preference is saved
applyTheme('system');
}
// Listen for system theme changes if currently in system mode
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', e => {
if (localStorage.getItem('themePreference') === 'system') {
applyTheme('system');
} }
}); });
</script> </script>
</div>
</body> </body>
</html> </html>