-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
252 lines (221 loc) · 7.3 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dhruva's Portfolio</title>
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
<style>
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
/* Navbar Styles */
nav {
background-color: #333;
overflow: hidden;
}
nav a {
float: left;
display: block;
color: white;
text-align: center;
padding: 14px 20px;
text-decoration: none;
}
nav a:hover {
background-color: #ddd;
color: black;
}
/* Section Styling */
section {
padding: 20px;
}
h2 {
text-align: center;
margin-top: 0;
}
/* Projects Grid */
.projects {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
padding: 20px;
}
.project-card {
border: 1px solid #ddd;
border-radius: 8px;
padding: 10px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
model-viewer {
width: 100%;
height: 300px;
margin: auto;
}
/* Table Styles for Awards */
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
table, th, td {
border: 1px solid #ddd;
}
th, td {
padding: 10px;
text-align: left;
}
th {
background-color: #333;
color: white;
}
td {
background-color: #f9f9f9;
}
/* Hover Effect and Tooltip for Date */
.date {
position: relative;
display: inline-block;
cursor: pointer;
color: #007BFF;
font-weight: bold;
}
.date:hover {
color: #0056b3;
text-decoration: underline;
}
/* Tooltip */
.date .tooltip {
visibility: hidden;
width: 180px;
background-color: black;
color: white;
text-align: center;
padding: 5px;
border-radius: 6px;
/* Position the tooltip */
position: absolute;
z-index: 1;
bottom: 125%; /* Show above the date */
left: 50%;
margin-left: -90px;
/* Fade in tooltip */
opacity: 0;
transition: opacity 0.3s;
}
.date .tooltip::after {
content: '';
position: absolute;
top: 100%; /* Arrow on the top */
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: black transparent transparent transparent;
}
.date:hover .tooltip {
visibility: visible;
opacity: 1;
}
/* Footer */
footer {
background-color: #333;
color: white;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav>
<a href="#home">Home</a>
<a href="#projects">Projects</a>
<a href="#awards">Awards</a>
</nav>
<!-- Home Section -->
<section id="home">
<h2>Welcome to Dhruva's Portfolio</h2>
<p>This is the home of Dhruva's achievements and innovations in the fields of robotics, invention, and technology.</p>
<img src="https://via.placeholder.com/1000x400" alt="Filler Image" style="width:100%;">
</section>
<!-- Projects Section -->
<section id="projects">
<h2>Projects</h2>
<div class="projects">
<!-- Project 1 -->
<div class="project-card">
<model-viewer src="compressed.glb" auto-rotate camera-controls></model-viewer>
<h3>Project 1: Astronaut Model</h3>
<p>Description: A 3D astronaut model displayed using <code>model-viewer</code>.</p>
</div>
<!-- Project 2 -->
<div class="project-card">
<model-viewer src="compressed.glb" auto-rotate camera-controls></model-viewer>
<h3>Project 2: Mars Rover Model</h3>
<p>Description: A Mars rover displayed using <code>model-viewer</code>.</p>
</div>
<!-- Project 3 -->
<div class="project-card">
<model-viewer src="compressed.glb" auto-rotate camera-controls></model-viewer>
<h3>Project 3: Robot Arm Model</h3>
<p>Description: A robotic arm model shown using <code>model-viewer</code>.</p>
</div>
</div>
</section>
<!-- Awards Section -->
<section id="awards">
<h2>Awards</h2>
<table>
<tr>
<th>Grade</th>
<th>Award</th>
<th>Description</th>
</tr>
<!-- 11th Grade Awards -->
<tr>
<td><span class="date">11th Grade<span class="tooltip">Year: 2024</span></span></td>
<td>Multiple recognition from Lee County School Board</td>
<td>Recognized for achievements in robotics and invention.</td>
</tr>
<tr>
<td><span class="date">11th Grade<span class="tooltip">Year: 2024</span></span></td>
<td>Media Appearances</td>
<td>Multiple media appearances representing robotics team.</td>
</tr>
<tr>
<td><span class="date">11th Grade<span class="tooltip">Year: 2024</span></span></td>
<td>News-Press Student of the Week Nomination</td>
<td>Nominated by FMHS for outstanding student achievements.</td>
</tr>
<tr>
<td><span class="date">11th Grade<span class="tooltip">Year: 2024</span></span></td>
<td>Invention Convention US Nationals</td>
<td>3rd place for 11th grade, Transportation Industry Award, Patent application award ($10,000 value).</td>
</tr>
<tr>
<td><span class="date">11th Grade<span class="tooltip">Year: 2024</span></span></td>
<td>National STEM Festival</td>
<td>National STEM Champion, Letter from President Obama, All expenses paid trip to Washington D.C.</td>
</tr>
<tr>
<td><span class="date">11th Grade<span class="tooltip">Year: 2024</span></span></td>
<td>Robotics - Regional League Championship</td>
<td>1st place Inspire award, Winning Alliance 1st pick.</td>
</tr>
<!-- Add more rows for other grades as needed -->
</table>
</section>
<!-- Footer -->
<footer>
<p>© 2024 Dhruva's Portfolio</p>
</footer>
</body>
</html>