This repository was archived by the owner on Mar 10, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·379 lines (347 loc) · 18.6 KB
/
index.html
File metadata and controls
executable file
·379 lines (347 loc) · 18.6 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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<link href="styles.css" rel="stylesheet">
<title>My Homepage</title>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<a class="navbar-brand" href="#home">My Portfolio</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="#home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#projects">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contact">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<header id="home" class="hero-section text-center py-5">
<div class="container">
<img src="https://via.placeholder.com/150" alt="Profile Picture" class="profile-img mb-3">
<h1 id="welcome-message" class="display-4 mb-3">Welcome to My Homepage!</h1>
<p class="lead">Computer Science Student & Aspiring Developer</p>
<button class="btn btn-custom btn-lg" onclick="showGreeting()">Learn More About Me</button>
</div>
</header>
<!-- About Section -->
<section id="about" class="py-5">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="card custom-card mb-4">
<div class="card-body">
<h2>About Me</h2>
<p>
Hello! I'm a passionate computer science student currently taking Harvard's CS50
course.
I love creating websites, solving complex problems, and learning new technologies.
</p>
<p>
My journey in programming started with curiosity and has evolved into a genuine
passion
for building useful applications and contributing to the tech community.
</p>
<h3>My Skills</h3>
<div class="skills-section">
<div class="skill-item mb-3">
<label>HTML/CSS</label>
<div class="progress">
<div class="progress-bar skill-bar" data-skill="85" style="width: 0%">85%
</div>
</div>
</div>
<div class="skill-item mb-3">
<label>JavaScript</label>
<div class="progress">
<div class="progress-bar skill-bar bg-warning" data-skill="70"
style="width: 0%">70%</div>
</div>
</div>
<div class="skill-item mb-3">
<label>Python</label>
<div class="progress">
<div class="progress-bar skill-bar bg-success" data-skill="75"
style="width: 0%">75%</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<aside class="card custom-card mb-4">
<div class="card-body">
<h3>Quick Facts</h3>
<ul class="list-group list-group-flush">
<li class="list-group-item">🎓 CS50 Student</li>
<li class="list-group-item">💻 Web Developer</li>
<li class="list-group-item">🐍 Python Enthusiast</li>
<li class="list-group-item">🎮 Gamer</li>
<li class="list-group-item">📚 Lifelong Learner</li>
</ul>
</div>
</aside>
<aside class="card custom-card">
<div class="card-body">
<h3>Quote of the Day</h3>
<blockquote class="blockquote">
<p id="daily-quote">"Code is like humor. When you have to explain it, it's bad."</p>
<footer class="blockquote-footer">Cory House</footer>
</blockquote>
<button class="btn btn-outline-primary btn-sm" onclick="changeQuote()">New
Quote</button>
</div>
</aside>
</div>
</div>
</div>
</section>
<!-- Projects Section -->
<section id="projects" class="py-5 bg-light">
<div class="container">
<h2 class="text-center mb-5">My Projects</h2>
<div class="row">
<div class="col-md-6 col-lg-4 mb-4">
<div class="card custom-card h-100">
<img src="https://via.placeholder.com/400x200/667eea/ffffff?text=Homepage"
class="card-img-top" alt="Homepage Project">
<div class="card-body">
<h5 class="card-title">Personal Homepage</h5>
<p class="card-text">A responsive personal website built with HTML, CSS, JavaScript, and
Bootstrap.</p>
<div class="mb-2">
<span class="badge bg-primary">HTML</span>
<span class="badge bg-info">CSS</span>
<span class="badge bg-warning">JavaScript</span>
</div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4 mb-4">
<div class="card custom-card h-100">
<img src="https://via.placeholder.com/400x200/764ba2/ffffff?text=Calculator"
class="card-img-top" alt="Calculator Project">
<div class="card-body">
<h5 class="card-title">Python Calculator</h5>
<p class="card-text">A scientific calculator built in Python with advanced mathematical
functions.</p>
<div class="mb-2">
<span class="badge bg-success">Python</span>
<span class="badge bg-secondary">Math</span>
</div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4 mb-4">
<div class="card custom-card h-100">
<img src="https://via.placeholder.com/400x200/f093fb/ffffff?text=Todo+App"
class="card-img-top" alt="Todo App">
<div class="card-body">
<h5 class="card-title">Todo List App</h5>
<p class="card-text">Interactive todo list with local storage and drag-and-drop
functionality.</p>
<div class="mb-2">
<span class="badge bg-warning">JavaScript</span>
<span class="badge bg-danger">LocalStorage</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="py-5">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="card custom-card">
<div class="card-body">
<h2>Get In Touch</h2>
<form id="contact-form" onsubmit="handleMessage(event)">
<div class="row">
<div class="col-md-6 mb-3">
<label for="name" class="form-label">Your Name</label>
<input type="text" class="form-control" id="name" required>
</div>
<div class="col-md-6 mb-3">
<label for="email" class="form-label">Email Address</label>
<input type="email" class="form-control" id="email" required>
</div>
</div>
<div class="mb-3">
<label for="subject" class="form-label">Subject</label>
<select class="form-select" id="subject" required>
<option value="">Choose a subject...</option>
<option value="collaboration">Collaboration</option>
<option value="job">Job Opportunity</option>
<option value="project">Project Inquiry</option>
<option value="other">Other</option>
</select>
</div>
<div class="mb-3">
<label for="message" class="form-label">Message</label>
<textarea class="form-control" id="message" rows="4" required></textarea>
</div>
<button type="submit" class="btn btn-custom">Send Message</button>
</form>
<div id="message-display" class="mt-3"></div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card custom-card">
<div class="card-body">
<h3>Contact Info</h3>
<div class="contact-info">
<p><strong>📧 Email:</strong><br>daniel.pintovale@heig-vd.ch</p>
<p><strong>💼 LinkedIn:</strong><br>linkedin.com/in/danielvale050403/</p>
<p><strong>💻 GitHub:</strong><br>github.com/d-vale</p>
</div>
<h4 class="mt-4">Let's Connect!</h4>
<p>I'm always interested in new opportunities and collaborations.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-dark text-white text-center py-3">
<div class="container">
<p>© 2025 My Portfolio. Built with HTML, CSS, JavaScript, and Bootstrap.</p>
<small>CS50 Problem Set 8</small>
</div>
</footer>
<!-- Custom JavaScript -->
<script>
// Array of programming quotes
const quotes = [
"Code is like humor. When you have to explain it, it's bad. - Cory House",
"Simplicity is the ultimate sophistication. - Leonardo da Vinci",
"The best code is no code at all. - Jeff Atwood",
"Everyone should learn to code because it teaches you how to think. - Steve Jobs",
"Programs must be written for people to read. - Harold Abelson"
];
// Show greeting alert
function showGreeting() {
const userName = prompt("What's your name?");
if (userName) {
alert(`Hello ${userName}! Welcome to my homepage. Feel free to explore!`);
document.getElementById('welcome-message').textContent = `Welcome ${userName}!`;
}
}
// Change quote function
function changeQuote() {
const quoteElement = document.getElementById('daily-quote');
const randomQuote = quotes[Math.floor(Math.random() * quotes.length)];
const [quote, author] = randomQuote.split(' - ');
// Add fade effect
quoteElement.style.opacity = '0';
setTimeout(() => {
quoteElement.textContent = quote;
quoteElement.style.opacity = '1';
}, 300);
}
// Handle message submission
function handleMessage(event) {
event.preventDefault();
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
const subject = document.getElementById('subject').value;
const message = document.getElementById('message').value;
// Create message display
const messageDisplay = document.getElementById('message-display');
const messageHtml = `
<div class="alert alert-success mt-3">
<strong>Message received from ${name}!</strong><br>
<em>"${message}"</em><br>
<small class="text-muted">Sent on ${new Date().toLocaleString()}</small>
</div>
`;
messageDisplay.innerHTML = messageHtml;
// Reset form
document.getElementById('contact-form').reset();
// Show confirmation
alert(`Thank you ${name}! Your message about "${subject}" has been received.`);
}
// Animate skill bars
function animateSkills() {
const skillBars = document.querySelectorAll('.skill-bar');
skillBars.forEach((bar, index) => {
setTimeout(() => {
const skillLevel = bar.getAttribute('data-skill');
bar.style.width = skillLevel + '%';
}, index * 200);
});
}
// Smooth scrolling for navigation links
function setupSmoothScrolling() {
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'
});
}
});
});
}
// Initialize page
document.addEventListener('DOMContentLoaded', function() {
// Setup smooth scrolling
setupSmoothScrolling();
// Animate skills on load
setTimeout(animateSkills, 1000);
// Auto-change quote every 20 seconds
setInterval(changeQuote, 20000);
// Add keyboard shortcuts
document.addEventListener('keydown', function(event) {
// Press 'q' to change quote
if (event.key === 'q' || event.key === 'Q') {
changeQuote();
}
// Press 'h' to go to home
if (event.key === 'h' || event.key === 'H') {
document.getElementById('home').scrollIntoView({ behavior: 'smooth' });
}
});
});
// Add some visual feedback when buttons are clicked
document.querySelectorAll('.btn').forEach(button => {
button.addEventListener('click', function() {
this.style.transform = 'scale(0.95)';
setTimeout(() => {
this.style.transform = 'scale(1)';
}, 150);
});
});
</script>
</body>
</html>