-
Notifications
You must be signed in to change notification settings - Fork 3
/
achievements.html
205 lines (178 loc) · 4.71 KB
/
achievements.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Achievements</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap");
body {
background-color: #061115;
font-family: "Roboto Mono", monospace;
margin: 0;
padding: 0;
color: #d9d7d6;
}
.back-button {
position: fixed;
top: 20px; /* Upper left position */
left: 20px;
background-color: #0a1419;
color: #d9d7d6;
border: 2px solid #6791c9;
padding: 10px 20px;
font-family: "Roboto Mono", monospace;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease, color 0.3s ease;
z-index: 1000; /* Keeps the button on top */
}
.back-button:hover {
background-color: #6791c9;
color: #0a1419;
}
.container {
max-width: 900px;
margin: 100px auto;
padding: 20px;
background-color: #0a1419;
box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.7);
border-radius: 10px;
text-align: left;
}
h1 {
text-align: center;
color: #6791c9;
font-size: 2.5rem;
font-weight: 400;
margin-bottom: 30px;
}
ul {
list-style-type: none;
padding: 0;
}
li {
margin-bottom: 30px;
padding: 20px;
background-color: #162026;
border-radius: 8px;
box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.7);
}
li h2 {
color: #6791c9;
font-size: 1.8rem;
margin-bottom: 10px;
}
p {
margin: 5px 0;
font-size: 1rem;
}
strong {
color: #d9d7d6;
}
@media (max-width: 768px) {
.container {
margin: 20px auto;
padding: 15px;
}
h1 {
font-size: 2rem;
}
li {
padding: 15px;
}
li h2 {
font-size: 1.5rem;
}
p {
font-size: 0.9rem;
}
}
@media (max-width: 480px) {
h1 {
font-size: 1.8rem;
}
li {
padding: 10px;
}
li h2 {
font-size: 1.2rem;
}
p {
font-size: 0.8rem;
}
}
</style>
</head>
<body>
<div class="achieve container">
<h1>DK's Achievements</h1>
<ul>
<!-- Add more items as needed -->
</ul>
</div>
<button onclick="goBack()" class="back-button">← Back</button>
</body>
<script>
function goBack() {
window.history.back();
}
const achievements = {
hackathons: {
name: "Hackathons",
hackathons: [
{
"name": "PHPHackathon @ Webmavens LLP",
"description": "Won 1st Runner-Up.",
"location": "Ahmedabad, India",
"duration": "6 hours",
"participants": 30,
"tech_used": "PHP, MySQL",
"won_as": "Solo"
},
{
"name": "SparkTheSummer @ Ganpat University",
"description": "Secured 2nd Runner-Up in the overall hackathon and FlutterFlow special track.",
"location": "Ganpat University, India",
"duration": "30 hours",
"participants": "200+",
"project": "Alyssa (A mental health companion bot using AI)",
"team": "Myself, Nityam Bhojani, Srijit Das, Raj Kariya",
"tech_used": "Ollama, Next.js, Llama3.1:8b, Llama3.1:70b, IBM Cloud VPS, AWS RDS, Overclock Labs, Akash Network's Decentralized Cloud",
"won_as": "Team of 4",
"special_thanks": "Sponsor companies, close friends"
},
{
"name": "hackNUthon 5.0 @ Nirma University",
"description": "Won 2nd Runner-Up.",
"location": "Ahmedabad, India",
"duration": "36 hours",
"participants": "900+",
"tech_used": "UI, Python, Ollama, Llama3, Flask",
"won_as": "Team of 4"
}
]
}
}
const achievementsList = document.querySelector('.achieve ul');
const hackathon = achievements.hackathons.hackathons;
console.log(hackathon);
for (const item of hackathon) {
const ul = document.createElement('ul');
const listItem = document.createElement('li');
const achievementEntry = document.createElement('p');
achievementEntry.textContent = item.name;
listItem.appendChild(achievementEntry);
ul.appendChild(listItem);
for (const key in item) {
const achievementDetail = document.createElement('p');
if (key !== 'name') {
achievementDetail.textContent = `${key}: ${item[key]}`;
}
listItem.appendChild(achievementDetail);
}
achievementsList.appendChild(ul);
}
</script>
</html>