-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathold.html
323 lines (279 loc) · 9.49 KB
/
old.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<title>Harvey Chandler</title>
<style>
/* Basic Reset and Font */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Cascadia Code', monospace;
background-color: #1F1F1F;
color: rgb(197, 197, 197);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
}
/* Header Styles */
header {
background-color: #333;
color: white;
width: 100%;
padding: 20px;
text-align: center;
position: fixed;
top: 0;
left: 0;
z-index: 100;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
box-sizing: border-box;
}
header h1 {
font-size: 30px;
font-weight: bold;
}
header .nav-links {
margin-top: 10px;
}
header .nav-links a {
color: white;
text-decoration: underline;
margin: 0 15px;
cursor: pointer;
}
/* Content Section Overlays */
.content-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: #1F1F1F;
opacity: 0;
visibility: hidden;
transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
padding: 120px 20px 20px; /* 120px padding-top to make space for the header */
display: flex;
justify-content: center;
align-items: center;
color: white;
overflow-y: auto;
}
.content-overlay.active {
opacity: 1;
visibility: visible;
transition: opacity 0.5s ease-in-out, visibility 0s 0s;
}
.content-overlay h2 {
margin-bottom: 20px;
font-size: 2em;
}
.projects-grid {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 columns */
gap: 20px;
width: 100%;
}
.projects-grid img {
width: 100%;
border-radius: 10px;
transition: transform 0.3s;
}
.projects-grid img:hover {
transform: scale(1.05);
}
/* Footer Styles */
footer {
position: fixed;
bottom: 0;
width: 100%;
background-color: #333;
color: white;
padding: 10px;
text-align: center;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}
footer .footer-content {
display: flex;
align-items: center; /* Vertically center image and text */
justify-content: center;
}
footer img {
margin-right: 8px; /* Space between image and text */
}
a {
color: white;
text-decoration: underline;
}
h2, h3 {
font-weight: normal;
}
.fade-in-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: #000;
animation: fadeOut 2s forwards;
z-index: 9999;
}
/* Fade-out animation */
@keyframes fadeOut {
from {
opacity: 0;
}
to {
opacity: 1;
/*visibility: hidden;*/
}
}
/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
.projects-grid {
grid-template-columns: 1fr;
max-width: 90%;
margin: 0 auto;
}
.content-overlay {
padding: 90px 15px 80px; /* Adjust padding for smaller screens */
}
header h1 {
font-size: 24px; /* Smaller header text */
}
header .nav-links a {
margin: 0 10px; /* Tighter spacing for nav links */
font-size: 14px;
}
header {
height: 90px; /* Match mobile padding-top */
}
}
/* Desktop */
.content-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
padding: 120px 20px 100px; /* Top padding for header, bottom for footer */
display: block; /* Change from flex to block */
overflow-y: auto; /* Keep scroll */
/* Remove these flex properties: */
/* justify-content: center; */
/* align-items: center; */
}
.content-overlay > div {
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
/* Mobile */
@media (max-width: 768px) {
.content-overlay {
padding: 90px 15px 80px;
}
}
footer {
height: 45px; /* Adjust based on actual content height */
}
</style>
</head>
<body>
<div class="fade-in-overlay">
<header>
<h1>Harvey Chandler</h1>
<div class="nav-links">
<a onclick="showOverlay('projects')">Projects</a>
<a onclick="showOverlay('about')">About Me</a>
<a onclick="showOverlay('contact')">Contact</a>
</div>
</header>
<!-- Projects Overlay -->
<div class="content-overlay" id="projects">
<div>
<h2>My Projects</h2>
<div class="projects-grid" id="repo-list">
<!-- Projects will be dynamically added here -->
</div>
<script>
async function fetchGitHubRepos(username) {
const response = await fetch(`https://api.github.com/users/${username}/repos`);
const repos = await response.json();
const repoList = document.getElementById("repo-list");
repoList.innerHTML = ""; // Clear previous data
repos.forEach(repo => {
if(repo.name === "harvey.github.io" || repo.name === "harvey") return; // Skip this repo
const p = document.createElement("p");
let a = document.createElement('a');
let img = document.createElement('img');
a.href = repo.html_url;
img.src = `https://github-readme-stats.vercel.app/api/pin/?username=harvey&repo=${repo.name}`;
p.appendChild(a);
a.appendChild(img);
//`<a href="${repo.html_url}"><img src="https://github-readme-stats.vercel.app/api/pin/?username=harvey&repo=${repo.name}" alt="hcJIT"></a>`
//listItem.innerHTML = `<a href="${repo.html_url}" target="_blank">${repo.name}</a>`;
repoList.appendChild(p);
});
}
// Replace with your GitHub username
fetchGitHubRepos("harvey");
</script>
<br><br><br>
</div>
</div>
<!-- About Me Overlay -->
<div class="content-overlay" id="about">
<div>
<h2>About Me</h2>
<h3>🎓 I am a full time student studying Computer Science at the University of Kent</h3>
<br>
<h3>👩🏻💻 I am an aspiring Software Engineer with hopes of working in the United States</h3>
<br><br>
<p><a href="https://github.com/anuraghazra/github-readme-stats"><img src="https://github-readme-stats.vercel.app/api/top-langs/?username=harvey" alt="Top Langs"></a></p>
</div>
</div>
<!-- Contact Overlay -->
<div class="content-overlay" id="contact">
<div>
<h2>Contact</h2>
<h3>Feel free to reach out to me at <a href="mailto:[email protected]">[email protected]</a>.</h3>
<br>
<p>GitHub: <a href="https://github.com/harvey">Harvey</a></p>
<p>LinkedIn: <a href="https://www.linkedin.com/in/harveychandler">harveychandler</a></p>
</div>
</div>
<footer>
<div class="footer-content">
<a href="https://github.com"><img src="https://img.icons8.com/ios11/512/FFFFFF/github.png" style="height: 23px; width: 23px; vertical-align: middle;"></a>
<a href="https://github.com/harvey"><span>Harvey</span></a>
</div>
</footer>
<script>
function showOverlay(overlayId) {
// Fade out all overlays
const overlays = document.querySelectorAll('.content-overlay');
overlays.forEach(overlay => {
overlay.classList.remove('active');
});
// Add fade-in effect to the selected overlay
const activeOverlay = document.getElementById(overlayId);
if (activeOverlay) {
activeOverlay.classList.add('active');
}
}
// Default to showing the "projects" overlay on initial load
document.addEventListener("DOMContentLoaded", () => {
showOverlay('projects');
});
</script>
</div>
</body>
</html>