-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
269 lines (256 loc) · 14.4 KB
/
index.html
File metadata and controls
269 lines (256 loc) · 14.4 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="./style.css">
<title>Leonardo da Vinci</title>
<!-- APPLY THEME IMMEDIATELY (prevents flash) -->
<script>
(function() {
try {
var saved = localStorage.getItem('theme');
var prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
var theme = saved ? saved : (prefersDark ? 'dark' : 'light');
// set on html so CSS [data-theme="dark"] rules apply immediately
document.documentElement.setAttribute('data-theme', theme);
} catch (e) {
// fail silently
}
})();
</script>
</head>
<body>
<!-- Page loader -->
<div class="loader" id="loader">
<div class="loader-content">
<div class="loader-text">Leonardo da Vinci</div>
</div>
</div>
<!-- Navigation -->
<nav class="nav" id="navbar">
<div class="nav-container">
<a href="#hero" class="logo">Leonardo da Vinci</a>
<!-- Desktop Navigation -->
<div class="nav-links">
<a href="#biography" class="nav-link">Biography</a>
<a href="#inventions" class="nav-link">Inventions</a>
<a href="#art" class="nav-link">Art</a>
<a href="#legacy" class="nav-link">Legacy</a>
<button class="settings-btn" id="settingsBtn">Settings</button>
</div>
<!-- Mobile Hamburger -->
<button class="hamburger" id="hamburger" aria-label="Toggle mobile menu">
<span></span>
<span></span>
<span></span>
</button>
</div>
</nav>
<!-- Mobile Menu -->
<div class="mobile-menu" id="mobileMenu">
<a href="#biography" class="nav-link">Biography</a>
<a href="#inventions" class="nav-link">Inventions</a>
<a href="#art" class="nav-link">Art</a>
<a href="#legacy" class="nav-link">Legacy</a>
<button class="mobile-settings-btn" id="mobileSettingsBtn">Settings</button>
</div>
<!-- Hero Section -->
<section id="hero" class="hero">
<div class="hero-content">
<h1 class="hero-title">Leonardo<br>da Vinci</h1>
<p class="hero-dates">1452 — 1519</p>
<p class="hero-desc">
Renaissance polymath who embodied the fusion of art, science, and innovation.
A visionary whose notebooks contained designs for flying machines, anatomical studies,
and masterpieces that continue to inspire humanity five centuries later.
</p>
</div>
<div class="hero-image-container">
<img src="./images/hero/leonardo_da_vinci.jpg"
alt="Leonardo da Vinci" class="hero-image active">
<img src="./images/hero/mona_lisa.jpg"
alt="Mona Lisa by Leonardo da Vinci" class="hero-image">
<img src="./images/hero/vitruvian_man.jpg"
alt="Vitruvian Man by Leonardo da Vinci" class="hero-image">
<img src="./images/hero/last_supper.jpg"
alt="The Last Supper by Leonardo da Vinci" class="hero-image">
<img src="./images/hero/lady_with_an_ermine.jpg"
alt="Lady with an Ermine by Leonardo da Vinci" class="hero-image">
</div>
</section>
<!-- Settings Modal -->
<div class="settings-modal" id="settingsModal" aria-hidden="true">
<div class="settings-content" role="dialog" aria-modal="true" aria-labelledby="settingsTitle">
<div class="settings-header">
<h3 id="settingsTitle" class="settings-title">Settings</h3>
<button class="close-btn" id="closeSettings" aria-label="Close settings">×</button>
</div>
<div class="setting-group">
<label class="setting-label">Theme</label>
<div class="theme-options" role="radiogroup" aria-label="Theme options">
<button class="theme-option" data-theme="light" role="radio" aria-checked="false">Light</button>
<button class="theme-option" data-theme="dark" role="radio" aria-checked="false">Dark</button>
</div>
</div>
<div class="setting-group">
<label class="setting-label">Language</label>
<div class="language-grid" role="list">
<button class="lang-option" data-lang="en" role="listitem">
<span class="lang-name">English</span>
<span class="lang-code">EN</span>
</button>
<button class="lang-option" data-lang="es" role="listitem">
<span class="lang-name">Español</span>
<span class="lang-code">ES</span>
</button>
<button class="lang-option" data-lang="fr" role="listitem">
<span class="lang-name">Français</span>
<span class="lang-code">FR</span>
</button>
<button class="lang-option" data-lang="de" role="listitem">
<span class="lang-name">Deutsch</span>
<span class="lang-code">DE</span>
</button>
</div>
</div>
</div>
</div>
<!-- Biography Section -->
<section id="biography" class="section">
<h2 class="section-title">Biography</h2>
<div class="timeline">
<div class="timeline-item">
<div class="year">1452</div>
<div class="timeline-content">
<h3>Birth in Vinci</h3>
<p>Born on April 15 in the hilltop town of Vinci, Republic of Florence. The illegitimate son of a successful notary and a local woman, marking the beginning of an extraordinary life.</p>
</div>
</div>
<div class="timeline-item">
<div class="year">1466</div>
<div class="timeline-content">
<h3>Apprenticeship Begins</h3>
<p>At age 14, became apprentice to the renowned artist Andrea del Verrocchio in Florence, learning painting, sculpture, metalwork, and mechanical arts in one of the city's most prestigious workshops.</p>
</div>
</div>
<div class="timeline-item">
<div class="year">1482</div>
<div class="timeline-content">
<h3>Milan Court</h3>
<p>Moved to Milan under the patronage of Ludovico Sforza, where he served as court artist, engineer, and inventor, creating military designs, architectural plans, and court entertainments.</p>
</div>
</div>
<div class="timeline-item">
<div class="year">1503</div>
<div class="timeline-content">
<h3>The Mona Lisa</h3>
<p>Began work on his most famous portrait, revolutionizing the art of painting with innovative techniques and psychological depth that continue to captivate viewers worldwide.</p>
</div>
</div>
<div class="timeline-item">
<div class="year">1519</div>
<div class="timeline-content">
<h3>Final Chapter</h3>
<p>Died on May 2 at Château du Clos Lucé in Amboise, France, under the patronage of King Francis I, leaving behind thousands of pages of notes and drawings that revealed his genius to the world.</p>
</div>
</div>
</div>
</section>
<!-- Inventions Section -->
<!-- Inventions Section -->
<section id="inventions" class="section">
<h2 class="section-title">Inventions</h2>
<div class="content-grid">
<div class="content-card" data-images='["air_screw_1.jpg","air_screw_2.jpg"]'>
<div class="card-preview"></div>
<h3 class="card-title">Aerial Screw</h3>
<p class="card-text">An early conceptual design for vertical flight, often considered a precursor to the modern helicopter.</p>
</div>
<div class="content-card" data-images='["amored_tank_1.JPG","amored_tank_2.jpg"]'>
<div class="card-preview"></div>
<h3 class="card-title">Armored Tank</h3>
<p class="card-text">A revolutionary armored vehicle design featuring 360-degree firing capabilities and protective plating.</p>
</div>
<div class="content-card" data-image="parachute_design">
<div class="card-preview"></div>
<h3 class="card-title">Parachute Design</h3>
<p class="card-text">A pyramidal design for a device that would allow a person to safely descend from great heights.</p>
</div>
<div class="content-card" data-image="robotic_knight">
<div class="card-preview"></div>
<h3 class="card-title">Robotic Knight</h3>
<p class="card-text">An early example of robotics and automation, designed to move and simulate a knight in armor.</p>
</div>
<div class="content-card" data-images='["hydraulic_systems_1.jpg","hydraulic_systems_2.png"]'>
<div class="card-preview"></div>
<h3 class="card-title">Hydraulic Systems</h3>
<p class="card-text">Advanced designs for water pumps, hydraulic jacks, and other fluid-powered machinery.</p>
</div>
<div class="content-card" data-images='["multi-level_bridge_1.jpg","multi-level_bridge_2.jpg"]'>
<div class="card-preview"></div>
<h3 class="card-title">Multi-Level Bridge</h3>
<p class="card-text">An innovative bridge design featuring multiple levels for different types of traffic and emergency escape routes.</p>
</div>
</div>
</section>
<!-- Art Section -->
<!-- Art Section -->
<section id="art" class="section">
<h2 class="section-title">Masterworks</h2>
<div class="content-grid">
<div class="content-card" data-image="mona_lisa">
<div class="card-preview"></div>
<h3 class="card-title">Mona Lisa</h3>
<p class="card-text">Perhaps the most famous painting in the world, known for the subject's enigmatic smile and Leonardo's innovative sfumato technique.</p>
</div>
<div class="content-card" data-image="last_supper">
<div class="card-preview"></div>
<h3 class="card-title">The Last Supper</h3>
<p class="card-text">A masterpiece of composition and perspective, depicting the dramatic moment when Jesus announces that one of his Apostles would betray him.</p>
</div>
<div class="content-card" data-image="vitruvian_man">
<div class="card-preview"></div>
<h3 class="card-title">Vitruvian Man</h3>
<p class="card-text">A study of the proportions of the human body, combining art and science in a way that epitomizes Renaissance humanism.</p>
</div>
<div class="content-card" data-image="lady_with_an_ermine">
<div class="card-preview"></div>
<h3 class="card-title">Lady with an Ermine</h3>
<p class="card-text">A portrait of Cecilia Gallerani, featuring masterful attention to detail and psychological insight that was revolutionary for its time.</p>
</div>
</div>
</section>
<!-- Legacy Section -->
<section id="legacy" class="section">
<h2 class="section-title">Legacy</h2>
<div class="content-grid">
<div class="content-card">
<h3 class="card-title">Scientific Method</h3>
<p class="card-text">
His approach of observation, hypothesis, and experimentation laid crucial groundwork for modern scientific methodology and empirical research practices.
</p>
</div>
<div class="content-card">
<h3 class="card-title">Interdisciplinary Innovation</h3>
<p class="card-text">
Demonstrated how art and science could complement each other, inspiring today's approach to creative problem-solving across multiple fields.
</p>
</div>
<div class="content-card">
<h3 class="card-title">Anatomical Revolution</h3>
<p class="card-text">
His detailed dissections and drawings advanced medical understanding, establishing artistic documentation as a tool for scientific discovery.
</p>
</div>
<div class="content-card">
<h3 class="card-title">Modern Inspiration</h3>
<p class="card-text">
Continues to inspire contemporary artists, engineers, and inventors worldwide, representing the ideal of lifelong learning and boundless curiosity.
</p>
</div>
</div>
</section>
<script src="./script.js"></script>
</body>
</html>