-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme-demo.html
More file actions
170 lines (156 loc) · 6.45 KB
/
theme-demo.html
File metadata and controls
170 lines (156 loc) · 6.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Theme Demo - Ecaterina Moraru</title>
<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;800&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Theme CSS files -->
<link type="text/css" rel="stylesheet" title="Theme: Dark" href="dist/css/themes/dark/style.min.css" id="dark-theme">
<link type="text/css" rel="stylesheet" title="Theme: Light" href="dist/css/themes/light/style.min.css" id="light-theme" disabled>
<style>
.theme-switcher {
position: fixed;
top: 20px;
right: 20px;
z-index: 1001;
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: 12px;
padding: 12px;
display: flex;
gap: 8px;
box-shadow: var(--shadow-lg);
}
.theme-btn {
padding: 8px 16px;
border-radius: 8px;
border: 1px solid var(--border-primary);
background: transparent;
color: var(--text-secondary);
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
}
.theme-btn.active {
background: var(--accent-primary);
color: white;
border-color: var(--accent-primary);
}
.theme-btn:hover:not(.active) {
background: var(--bg-secondary);
color: var(--text-primary);
}
</style>
</head>
<body>
<!-- Theme Switcher -->
<div class="theme-switcher">
<button class="theme-btn active" onclick="switchTheme('dark')">🌙 Dark</button>
<button class="theme-btn" onclick="switchTheme('light')">☀️ Light</button>
</div>
<!-- Header -->
<header class="header">
<nav class="nav">
<div class="nav-left">
<a href="index.html" class="logo">
<div class="logo-icon">
<img src="dist/img/logo.png" alt="Logo" class="logo-image">
</div>
</a>
<ul class="nav-links">
<li><a href="about.html">About</a></li>
<li><a href="index.html#work">Work</a></li>
<li><a href="index.html#talks">Talks</a></li>
<li><a href="dist/EcaterinaMoraruCV.pdf" target="_blank" rel="noopener">CV</a></li>
</ul>
</div>
<div class="nav-right">
<div class="social-nav">
<!-- Social links will be populated by JavaScript -->
</div>
</div>
</nav>
</header>
<!-- Hero Section -->
<section class="hero">
<div class="container">
<div class="hero-content">
<h1 class="hero-title">Theme Demo</h1>
<p class="hero-subtitle">Switch between dark and light themes to see the difference</p>
<div class="hero-actions">
<a href="index.html" class="btn primary">View Portfolio</a>
<a href="about.html" class="btn secondary">About Me</a>
</div>
</div>
</div>
</section>
<!-- Demo Content -->
<section class="work">
<div class="container">
<h2 class="section-title">Theme Comparison</h2>
<div class="work-grid">
<div class="card">
<div class="card-content">
<h3>Dark Theme</h3>
<p>Perfect for low-light environments and modern aesthetics. Features deep backgrounds with high contrast text.</p>
<div class="card-tags">
<span class="tag">Modern</span>
<span class="tag">High Contrast</span>
</div>
</div>
</div>
<div class="card">
<div class="card-content">
<h3>Light Theme</h3>
<p>Clean and professional look with excellent readability. Ideal for daytime use and traditional preferences.</p>
<div class="card-tags">
<span class="tag">Clean</span>
<span class="tag">Professional</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer" id="contact">
<div class="footer-row">
<div class="footer-info footer-links">
<p>© 2025 Ecaterina Moraru </p>
<span class="footer-separator">•</span>
<a href="mailto:contact@risherry.ro" class="footer-link">contact@risherry.ro</a>
<span class="footer-separator">•</span>
<a href="dist/EcaterinaMoraruCV.pdf" target="_blank" class="footer-link">Download CV</a>
</div>
<div class="footer-links">
<!-- Social links will be populated by JavaScript -->
</div>
</div>
</footer>
<script src="dist/js/app.js"></script>
<script>
function switchTheme(theme) {
const darkTheme = document.getElementById('dark-theme');
const lightTheme = document.getElementById('light-theme');
const darkBtn = document.querySelector('.theme-btn:first-child');
const lightBtn = document.querySelector('.theme-btn:last-child');
if (theme === 'dark') {
darkTheme.disabled = false;
lightTheme.disabled = true;
darkBtn.classList.add('active');
lightBtn.classList.remove('active');
} else {
darkTheme.disabled = true;
lightTheme.disabled = false;
darkBtn.classList.remove('active');
lightBtn.classList.add('active');
}
}
</script>
</body>
</html>