-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
194 lines (178 loc) · 9.18 KB
/
index.html
File metadata and controls
194 lines (178 loc) · 9.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ankit Kumar's World</title>
<!-- FontAwesome for icons -->
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Hero -->
<header class="hero">
<h1 class="neon">Ankit's Amazing Lab</h1>
<p class="subtitle">I am <span id="typed" class="typed"></span></p>
</header>
<!-- Floating decorative bubbles -->
<div class="bubbles" aria-hidden="true">
<span></span><span></span><span></span><span></span><span></span>
<span></span><span></span><span></span>
</div>
<main class="container">
<!-- Profile Card (college student persona) -->
<section class="profile-card card about-child" id="profileCard">
<div class="photo" role="button" tabindex="0" aria-label="Open profile photo">
<img src="ankit.png" alt="Ankit Kumar" width="260" height="260" id="avatar" loading="lazy">
</div>
<h2>Ankit Kumar</h2>
<p class="tagline">7th grader · Curious about <strong>science</strong>, <strong>math</strong> & <strong>sports</strong></p>
<div class="actions">
<button id="follow-btn" class="cta">Set Study Goal</button>
<button id="view-projects" class="cta secondary">See Projects</button>
</div>
</section>
<!-- Portfolio & Achievements (motivational) -->
<section class="card portfolio-panel">
<h3><i class="fas fa-award"></i> Portfolio & Achievements</h3>
<p class="bio"><strong>About:</strong> Projects, experiments and learning milestones — small wins that lead to big change.</p>
<div class="portfolio-stats">
<div><strong id="p-sports">45</strong><span>Matches Played</span></div>
<div><strong id="p-math">120</strong><span>Math Problems Solved</span></div>
<div><strong id="p-streak">0</strong><span>Study Streak (days)</span></div>
</div>
<!-- XP progress bar -->
<div class="xp-container" aria-hidden="false">
<div class="xp-header"><strong id="xp-level">Level 1</strong><span id="xp-points">0 XP</span></div>
<div class="xp-bar-wrap"><div id="xp-bar" class="xp-bar"></div></div>
</div>
<div class="portfolio-actions">
<button id="play-game-btn" class="cta">Play Math Sprint</button>
<button id="log-match-btn" class="cta secondary">Log Match Played</button>
</div>
</section>
<!-- Roles and field animations -->
<section class="card roles-panel" id="rolesPanel">
<h3>Fields & Interests</h3>
<div class="roles-grid">
<div class="role" data-role="science">
<div class="role-visual" id="role-science" aria-hidden="true"></div>
<h4>Scientist</h4>
<p>Experiments, labs and discoveries.</p>
</div>
<div class="role" data-role="engineer">
<div class="role-visual" id="role-engineer" aria-hidden="true"></div>
<h4>Engineer</h4>
<p>Building devices and prototypes.</p>
</div>
<div class="role" data-role="doctor">
<div class="role-visual" id="role-doctor" aria-hidden="true"></div>
<h4>Doctor</h4>
<p>Health tech and biomedical ideas.</p>
</div>
<div class="role" data-role="computer">
<div class="role-visual" id="role-computer" aria-hidden="true"></div>
<h4>Computer</h4>
<p>Coding, AI and data science.</p>
</div>
</div>
</section>
<!-- Worlds row: Science, Tech, Health, Play, Dream -->
<section class="card" aria-label="Worlds">
<h3>Worlds & Adventures</h3>
<div class="worlds" id="worldsRow">
<div class="world-card" data-world="science">
<div class="icon">🧪</div>
<h4>Science World</h4>
<p>Experiments, bubbling beakers & lab quests.</p>
</div>
<div class="world-card" data-world="tech">
<div class="icon">💻</div>
<h4>Tech World</h4>
<p>Code, AI and data puzzles.</p>
</div>
<div class="world-card" data-world="health">
<div class="icon">❤️</div>
<h4>Health World</h4>
<p>Body map quizzes & health challenges.</p>
</div>
<div class="world-card" data-world="play">
<div class="icon">⚽</div>
<h4>Play World</h4>
<p>Mini-games, sports & hobbies.</p>
</div>
<div class="world-card" data-world="dream">
<div class="icon">🚀</div>
<h4>Dream World</h4>
<p>Rocket launches, goals & badges.</p>
</div>
</div>
</section>
<!-- Quick cards for About / Hobbies / Dream / Family -->
<section class="grid">
<article class="card about-child">
<h3><i class="fas fa-user-graduate"></i> About</h3>
<p>Meet <span class="highlight">Ankit</span>, a curious 6th grader who loves science, math and inventing fun gadgets from everyday items.</p>
</article>
<article class="card about-child">
<h3><i class="fas fa-football-ball"></i> Hobbies</h3>
<p>Plays <span class="highlight">Kancha</span> and <span class="highlight">Guli Danda</span>, loves outdoor games and watching cartoons that spark creativity.</p>
</article>
<article class="card dream-section">
<h3><i class="fas fa-rocket"></i> Dream</h3>
<p>Aims to become a scientist and start a company that solves big problems for India.</p>
</article>
<article class="card about-child">
<h3><i class="fas fa-users"></i> Family</h3>
<p>Supported by his parents and sister, Ankit explores ideas and builds small inventions every day.</p>
</article>
</section>
</main>
<!-- Lightbox for larger photo view -->
<div id="lightbox" class="lightbox" aria-hidden="true">
<div class="lightbox-content" role="dialog" aria-modal="true">
<button id="lightbox-close" class="lightbox-close" aria-label="Close">✕</button>
<img src="ankit.png" alt="Ankit larger photo" id="lightbox-img">
<figcaption>Ankit Kumar — curious student and maker</figcaption>
</div>
</div>
<!-- Study Goal Modal -->
<div id="studyModal" class="study-modal" aria-hidden="true">
<div class="study-modal-content" role="dialog" aria-modal="true">
<button id="study-close" class="study-close" aria-label="Close">✕</button>
<h3>Set a Study Goal</h3>
<label for="study-goal">Goal (short):</label>
<input id="study-goal" type="text" placeholder="e.g. Finish math chapter 3" maxlength="80">
<label for="study-mins">Duration (minutes):</label>
<input id="study-mins" type="number" min="5" max="180" value="25">
<!-- Mini-game to unlock study -->
<div id="mini-game" class="mini-game">
<p>Solve this quick math to start your study session!</p>
<div id="math-question" class="math-question"></div>
<input id="math-answer" type="number" placeholder="Your answer">
<button id="check-math" class="cta">Check Answer</button>
<div id="math-feedback" class="math-feedback"></div>
</div>
<!-- Drawing canvas for fun -->
<div class="drawing-section">
<p>Doodle some math symbols while thinking!</p>
<canvas id="drawing-canvas" class="drawing-canvas"></canvas>
<button id="clear-canvas" class="cta secondary">Clear</button>
</div>
<div class="study-actions">
<button id="start-study" class="cta" disabled>Start Study</button>
<button id="cancel-study" class="cta secondary">Cancel</button>
</div>
<div id="study-timer" class="study-timer" aria-hidden="true">
<div class="timer-display">00:00</div>
<div class="timer-progress"><div class="timer-bar"></div></div>
<div class="timer-controls">
<button id="pause-study" class="cta secondary">Pause</button>
<button id="stop-study" class="cta secondary">Stop</button>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>