-
Notifications
You must be signed in to change notification settings - Fork 0
/
portfolio.html
380 lines (341 loc) · 11.4 KB
/
portfolio.html
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
380
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Portfolio</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: url('https://starwalk.space/gallery/images/what-is-space/1920x1080.jpg') no-repeat center center fixed;
background-size: cover;
color: white;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
}
.portfolio-content {
max-width: 800px;
text-align: center;
margin-bottom: 20px;
}
.profile-photo {
width: 300px;
height: 300px;
border-radius: 50%;
object-fit: cover;
border: 3px solid white;
margin-bottom: 10px;
}
h1, h2 {
color: #fff;
}
.section {
width: 100%;
max-width: 800px;
background: rgba(0, 0, 0, 0.8);
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
margin-top: 20px;
display: none; /* Initially hidden */
}
.section h2 {
text-align: center;
margin-bottom: 10px;
}
.button {
background-color: #007bff;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
transition: background-color 0.3s ease;
margin: 10px 5px;
}
.button:hover {
background-color: #0056b3;
}
.viewer-info {
margin-top: 20px;
padding: 15px;
background: rgba(0, 123, 255, 0.9);
border-radius: 8px;
text-align: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.feedback-section {
width: 100%;
max-width: 800px;
background: rgba(0, 0, 0, 0.8);
padding: 20px;
border-radius: 8px;
margin-top: 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
color: white;
}
.feedback-form input, .feedback-form textarea {
width: calc(100% - 20px);
padding: 10px;
margin: 10px 0;
border: none;
border-radius: 5px;
font-size: 16px;
}
.feedback-form button {
background-color: #28a745;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.feedback-form button:hover {
background-color: #218838;
}
.feedback-item {
background: rgba(255, 255, 255, 0.1);
padding: 10px;
margin: 10px 0;
border-radius: 5px;
}
/* Feedback button fixed at the bottom right */
.feedback-button-fixed {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #28a745;
color: white;
padding: 15px 25px;
border: none;
border-radius: 50%;
font-size: 20px;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.feedback-button-fixed:hover {
background-color: #218838;
}
</style>
</head>
<body>
<div class="portfolio-content">
<h1>Welcome to My Portfolio</h1>
<p>Click the buttons below to see more about me.</p>
<button class="button" onclick="toggleSection('qualificationsSection')">Qualifications</button>
<button class="button" onclick="toggleSection('hobbiesSection')">Hobbies</button>
<button class="button" onclick="toggleSection('projectsSection')">Projects</button>
<button class="button" onclick="toggleSection('illustrationsSection')">Illustrations</button>
<button class="button" onclick="toggleSection('contactDetailsSection')">Contact Details</button>
</div>
<!-- Profile Photo -->
<img id="profilephoto" class="profile-photo" src="myphoto.jpg" alt="Profile Photo">
<h1>Rahul Mankani</h1>
<!-- Viewer Information Section -->
<div id="viewerInfo" class="viewer-info">
<h2>View Counts</h2>
<p><strong>Total Views:</strong> <span id="totalViews">0</span></p>
</div>
<!-- Feedback Section -->
<div id="feedbackSection" class="feedback-section">
<h2>Leave Your Feedback</h2>
<form class="feedback-form" onsubmit="handleFeedbackSubmit(event)">
<input type="text" id="feedbackName" placeholder="Your Name" required>
<input type="email" id="feedbackEmail" placeholder="Your Email" required>
<textarea id="feedbackMessage" placeholder="Your Feedback" required></textarea>
<button type="submit" class="feedback-button">Submit Feedback</button>
</form>
<!-- Feedback Button to Open Feedback Form -->
<button class="feedback-button-fixed" onclick="toggleSection('feedbackSection')">💬</button>
<!-- Display Feedback -->
<div id="feedbackList" class="feedback-list">
<h3>Feedback Received:</h3>
</div>
</div>
<!-- Qualifications Section -->
<div id="qualificationsSection" class="section">
<h2>My Qualifications</h2>
<div class="item">
<span><strong>Higher-Secondary Graduate</strong></span>
<p>The Turning Point Public School</p>
<hr>
</div>
<div class="item">
<span><strong>Pursuing Bachelor's Degree in Computer Science</strong></span>
<p>University Of Petroleum And Energy Studies</p>
<hr>
</div>
<div class="item">
<span><strong>Computing Languages Known</strong></span>
<p>C</p>
<p>HTML</p>
<p>CSS</p>
<p>JavaScript</p>
<hr>
</div>
<div class="item">
<span><strong>Operating Systems Worked With</strong></span>
<p>Windows</p>
<p>Linux</p>
<hr>
</div>
<div class="item">
<span><strong>Other Skills</strong></span>
<p>Good in making connections.</p>
<p>Great Communicator</p>
<p>Strong Leader</p>
<p>Good Team-mate</p>
<hr>
</div>
</div>
<!-- Hobbies Section -->
<div id="hobbiesSection" class="section">
<h2>My Hobbies</h2>
<div class="item">
<p>Listening and singing music.</p>
<hr>
</div>
<div class="item">
<p>Playing:<br><pre>
Badminton
Chess
Basketball</pre></p>
<hr>
</div>
<div class="item">
<p>Doing Poetry</p>
<hr>
</div>
</div>
<!-- Projects Section -->
<div id="projectsSection" class="section">
<h2>My Projects</h2>
<div class="item">
<p><strong>Project Name:</strong> Day Calculator</p>
<p><strong>Description:</strong> Gives the information about the Difference in Dates and day of the future.</p>
<hr>
</div>
<div class="item">
<p><strong>Project Name:</strong> Student Library Portal</p>
<p><strong>Description:</strong> An efficient way to keep record of books.</p>
<hr>
</div>
<div class="item">
<p><strong>Project Name:</strong> Finance Manager</p>
<p><strong>Description:</strong> Helps people to manage their expenditure and save for their goals.</p>
<hr>
</div>
<div class="item">
<p><strong>You can view these projects and collaborate with me on:<br>
GitHub:</strong> <a href="https://github.com/rahul5002" target="_blank">https://github.com/rahul5002</a></p>
</div>
</div>
<!-- Illustrations Section -->
<div id="illustrationsSection" class="section">
<h2>My Illustrations</h2>
<div class="item">
<p><strong>Illustration-1:</strong><br>
<img id="graduationceremony" class="graduation-ceremony" src="illustration1.jpg" alt="Graduation Ceremony" width="500" height="500">
</p>
<hr>
</div>
<div class="item">
<p><strong>Illustration-2:</strong><br>
<img id="halloween" class="halloween" src="illustration2.jpg" alt="Halloween" width="400" height="500">
</p>
<hr>
</div>
<div class="item">
<p><strong>Illustration-3:</strong><br>
<img id="dragonPopOut" class="dragon-popout" src="illustration3.jpg" alt="Dragon" width="500" height="500">
</p>
<hr>
</div>
<div class="item">
<p><strong>Illustration-4:</strong><br>
<img id="guruPurnima" class="guru-purnima" src="illustration4.jpg" alt="Guru purnima" width="500" height="500">
</p>
<hr>
</div>
</div>
<!-- Contact Details Section -->
<div id="contactDetailsSection" class="section">
<h2>Contact Details</h2>
<div class="item">
<p><strong>Email:</strong> [email protected]</p>
<hr>
</div>
<div class="item">
<p><strong>Phone:</strong> +91 7073646099</p>
<hr>
</div>
<div class="item">
<p><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/rahul-mankani-633a5830b" target="_blank" style="color: #007bff;">linkedin.com/in/myprofile</a></p>
</div>
</div>
<script>
// Function to toggle the visibility of a section
function toggleSection(sectionId) {
const section = document.getElementById(sectionId);
if (section.style.display === 'none' || section.style.display === '') {
section.style.display = 'block'; // Show the section
} else {
section.style.display = 'none'; // Hide the section
}
}
// Increment and store the total views in localStorage
let totalViews = localStorage.getItem("totalViews") || 0;
totalViews++;
localStorage.setItem("totalViews", totalViews);
// Populate the Viewer Count
document.getElementById("totalViews").textContent = totalViews;
// Feedback handling logic
function handleFeedbackSubmit(event) {
event.preventDefault();
// Get form values
const name = document.getElementById("feedbackName").value;
const email = document.getElementById("feedbackEmail").value;
const message = document.getElementById("feedbackMessage").value;
// Create feedback item
const feedbackList = document.getElementById("feedbackList");
const feedbackItem = document.createElement("div");
feedbackItem.classList.add("feedback-item");
feedbackItem.innerHTML = `
<strong>${name} (${email})</strong>
<p>${message}</p>
`;
// Add feedback item to the list
feedbackList.appendChild(feedbackItem);
// Reset the form
document.querySelector(".feedback-form").reset();
// Store feedback in localStorage
const feedbackData = JSON.parse(localStorage.getItem("feedbackData") || "[]");
feedbackData.push({ name, email, message });
localStorage.setItem("feedbackData", JSON.stringify(feedbackData));
}
// Load feedback from localStorage on page load
window.onload = () => {
const feedbackData = JSON.parse(localStorage.getItem("feedbackData") || "[]");
const feedbackList = document.getElementById("feedbackList");
feedbackData.forEach(({ name, email, message }) => {
const feedbackItem = document.createElement("div");
feedbackItem.classList.add("feedback-item");
feedbackItem.innerHTML = `
<strong>${name} (${email})</strong>
<p>${message}</p>
`;
feedbackList.appendChild(feedbackItem);
});
};
</script>
</body>
</html>