-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
309 lines (270 loc) · 9.84 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" href="/assets/style.css" />
<link rel="alternate" type="application/atom+xml" title="Feed for https://www.cicadahub.dev/" href="/feed.xml">
<title>Abraham Hernandez</title>
<meta name="author" content="Abraham Hernandez" />
<meta name="description" content="The coolest website known to man" />
<link rel="canonical" href="https://www.cicadahub.dev/" />
<meta property="og:description" content="dirty and malnourished jekyll theme" />
<meta property="og:url" content="https://www.cicadahub.dev/" />
<meta property="og:site_name" content="Abraham Hernandez" />
<meta property="og:image" content="/assets/images/straw-hat.png" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Abraham Hernandez" />
<meta property="og:locale" content="en_US" />
<script type="application/ld+json">
{"@context":"http://schema.org",
"@type":"Article","url":"https://www.cicadahub.dev/",
"publisher":{
"@type":"Organization","name":"Abraham Hernandez",
"logo":{
"@type":"ImageObject", "url":"http://localhost:4000/assets/images/straw-hat.png"
}
},
"author":{
"@type":"Person","name":"Abraham Hernandez"
},
"description":"dirty and malnourished jekyll theme",
"image":"http://localhost:4000/assets/images/straw-hat.png",
"headline":"Abraham Hernandez",
"datePublished":"2023",
"dateModified":"2023",
"mainEntityOfPage":{
"@type":"WebPage","@id":"https://www.cicadahub.dev/"
}
}
</script>
<style>
.switch-container {
position: absolute;
right: 50px;
}
.switch {
position: relative;
display: inline-block;
width: 40px;
height: 25px;
}
/* styles for dark/light modes */
.dark-mode {
background-color: gray;
transition: none;
}
.dark-mode .header .header-nav a {
color: black;
transition: none;
}
.light-mode {
background-color: #ffffff;
transition: none;
}
.light-mode .header .header-nav a {
color: #808080;
transition: none;
}
/* tooltip styling */
.tooltip-text {
position: absolute;
display: inline-block;
visibility: hidden;
width: 120px;
background-color: black;
color: #fff;
opacity: 0.8;
font-size: 13pt;
text-align: center;
padding: 5px 0;
top: 30px;
right: 25px;
border-radius: 6px;
z-index: 1;
}
/* tooltip on hover */
.switch:hover .tooltip-text {
visibility: visible;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #660000;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 17px;
width: 16px;
left: 4px;
bottom: 4px;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
input:checked+.slider {
background-color: black;
}
input:focus+.slider {
box-shadow: 0 0 1px #660000;
}
input:checked+.slider:before {
-webkit-transform: translateX(15px);
-ms-transform: translateX(15px);
transform: translateX(15px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}
</style>
</head>
<body>
<div class="switch-container">
<label class="switch">
<input type="checkbox" id="colorToggle">
<span class="slider round"></span>
<span class="tooltip-text">Toggle Light/Dark mode</span>
</label>
</div>
<br>
<div class="container">
<header class="header">
<h1 class="header-title">
<a href="https://www.cicadahub.dev/">Abraham Hernandez</a>
</h1>
<nav class="header-nav">
<a href="https://www.cicadahub.dev/about">about</a>
<a href="https://www.cicadahub.dev/education">education</a>
<a href="https://www.cicadahub.dev/work">work</a>
<a href="https://www.cicadahub.dev/contact">links</a>
<a href="https://www.cicadahub.dev/fun">fun</a>
</nav>
</header>
<li style="list-style-type: none">
<h3>
Projects
</h3>
<h2>
<a href="https://www.cicadahub.dev/flash.html">FlashCardFables</a>
</h2>
<time>23 July 2023</time>
<p class="desc" style="text-align: center;">
A java based game aimed to make studying fun by combining flashcards and
RPG game elements.
</p>
</li>
<li style="list-style-type: none">
<h2>
<a href="https://www.cicadahub.dev/cicada.html">CicadaCove</a>
</h2>
<time>24 May 2023</time>
<p class="desc" style="text-align: center;">
A simple forum website where you can talk freely about your interests. Sign
up for an account and login to be able to create threads and comment on existing
threads.
</p>
</li>
<li style="list-style-type: none">
<h2>
<a href="https://www.cicadahub.dev/vndb.html">VNDB Recommender System</a>
</h2>
<time>24 May 2023</time>
<p class="desc" style="text-align: center;">
A small application that takes an exisiting VNDB account and returns a list of
recommended visual novels based on the user's most enjoyed categories.
</p>
</li>
<li style="list-style-type: none">
<h2>
<a href="https://www.cicadahub.dev/netmessage.html">.NET Messaging Program</a>
</h2>
<time>12 Mar 2023</time>
<p class="desc" style="text-align: center;">
A secure messaging platform that enables users to transmit and receive
messages through a command-line interface, utilizing robust RSA key encryption.
</p>
</li>
<li style="list-style-type: none">
<h2>
<a href="https://www.cicadahub.dev/nano.html">NanoBot</a>
</h2>
<time>15 Jan 2023</time>
<p class="desc" style="text-align: center;">
A Discord bot that uses ChatGPT to provide responsive solutions and
engage in discourse with Discord community members. Additionally,
Nano facilitates the capability to assign member role assignments
among other functionalities.
</p>
</li>
<li style="list-style-type: none">
<h2>
<a href="https://www.cicadahub.dev/dice.html">D&D Dice Store</a>
</h2>
<time>22 Dec 2022</time>
<p class="desc" style="text-align: center;">
A simulated digital storefront that enables users to create
accounts, peruse a selection of dice, proceed to checkout, and
create personalized dice.
</p>
</li>
</body>
<script>
// Function to update the site theme
function updateSiteTheme(isDarkMode) {
const checkbox = document.getElementById('colorToggle');
// adding in a transition to each theme element before toggling them on
let darkModeElements = document.querySelectorAll(".dark-mode");
let lightModeElements = document.querySelectorAll(".light-mode");
darkModeElements.forEach(element => {
element.style.transition = "0.5s ease-in-out";
});
lightModeElements.forEach(element => {
element.style.transition = "0.5s ease-in-out";
});
// toggle respective theme element on/off
document.body.classList.toggle('light-mode', !checkbox.checked);
document.body.classList.toggle('dark-mode', checkbox.checked);
// Removing animation to avoid from playing on new page / reload
setTimeout(() => {
darkModeElements.forEach(element => {
element.style.transition = "none";
});
lightModeElements.forEach(element => {
element.style.transition = "none";
});
}, 500);
}
// Retrieve the toggle state from localStorage and apply it
window.onload = function () {
const isDarkMode = localStorage.getItem('darkMode') === 'true';
document.getElementById('colorToggle').checked = isDarkMode;
updateSiteTheme(isDarkMode);
};
// Add an event listener to the toggle button to change the color and save the state
document.getElementById('colorToggle').addEventListener('change', function () {
console.log('test')
const isDarkMode = this.checked;
localStorage.setItem('darkMode', isDarkMode);
updateSiteTheme(!isDarkMode);
});
</script>
</html>