-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
219 lines (211 loc) · 6.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jacob Wu | Backend Developer | Servant Leader | Changemaker </title>
<style>
@font-face {
font-family: 'Ainé';
src: url('./fonts/aine.woff2') format('woff2'),
url('fonts/aine.woff') format('woff');
font-weight: normal;
font-style: normal;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f7;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
header {
background-color: #333;
color: white;
padding: 10px;
width: 100%;
}
.header-container {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40px;
}
.header-container .logo {
display: flex;
align-items: center;
font-size: 30px;
font-weight: bold;
}
.logo .jacob-name {
font-family: 'Ainé', sans-serif;
font-size: 50px;
margin-right: 5px;
}
.header-container .user-dropdown {
font-size: 30px;
cursor: pointer;
}
.profile-section {
text-align: center;
/*margin-top: 40px;*/
}
.profile-section img {
width: 200px;
height: 200px;
border-radius: 50%;
/*margin-bottom: 20px;*/
}
.profile-section a {
color: #007aff;
text-decoration: none;
font-size: 20px;
margin-top: 10px;
display: inline-block;
}
.icon-grid {
display: grid;
grid-template-columns: repeat(auto-fill, calc(25vmin));
gap: calc(5vmin);
justify-content: center;
margin: calc(5vmin);
width: 75%;
padding: 0 20px;
}
.icon-grid-item {
text-align: center;
position: relative;
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for smooth animation */
}
.icon-grid-item a {
text-decoration: none; /* Removes the underline from the links */
color: inherit; /* Ensures the link text inherits the color from the surrounding text */
}
.icon-grid-item:hover {
transform: scale(1.05); /* Slightly enlarge the icon on hover */
}
.icon-grid-item img {
width: 150px;
height: 150px;
margin-bottom: 10px;
transition: transform 0.3s ease; /* Smooth transition for the icon */
}
.icon-grid-item:hover img {
transform: translateY(-10px); /* Slightly lift the icon on hover */
}
.icon-grid-item label {
display: block;
font-size: 25px;
color: #333;
}
@media (max-width: 768px) {
.profile-section img {
width: 150px;
height: 150px;
}
.icon-grid {
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}
.icon-grid-item img {
width: 60px;
height: 60px;
}
}
</style>
</head>
<body>
<header>
<div class="header-container">
<div class="logo">
<a href="index.html" style="text-decoration: none; color: inherit;">
<span class="jacob-name">J</span>
</a>
<a href="index.html" style="text-decoration: none; color: inherit;">
acob
</a>
</div>
<div class="user-dropdown">Menu ▼</div>
</div>
</header>
<div class="profile-section">
<img src="./img/memoji.png" alt="Profile Picture">
<h1><span id="greeting"></span>, my friend.</h1>
<a href="#">Join My Newsletter ›</a>
</div>
<div class="icon-grid">
<div class="icon-grid-item">
<a href="contact.html"> <!-- Link to Contact Me page -->
<img src="./img/mail.png" alt="Mail Icon">
<label>Contact Me</label>
</a>
</div>
<div class="icon-grid-item">
<a href="about.html"> <!-- Link to Biography page -->
<img src="./img/contacts.png" alt="Contacts Icon">
<label>About</label>
</a>
</div>
<div class="icon-grid-item">
<a href="portfolio.html"> <!-- Link to Projects & Portfolio page -->
<img src="./img/photos.png" alt="Photos Icon">
<label>Projects & Portfolio</label>
</a>
</div>
<div class="icon-grid-item">
<a href="life-story.html"> <!-- Link to Life Story page -->
<img src="./img/icloud.png" alt="iCloud Drive Icon">
<label>Life Story</label>
</a>
</div>
<div class="icon-grid-item">
<a href="blog.html"> <!-- Link to Blog Posts page -->
<img src="./img/notes.png" alt="Notes Icon">
<label>Blog Posts</label>
</a>
</div>
<div class="icon-grid-item">
<a href="ongoing-projects.html"> <!-- Link to Ongoing Projects page -->
<img src="./img/reminders.png" alt="Reminders Icon">
<label>Ongoing Projects</label>
</a>
</div>
<div class="icon-grid-item">
<a href="publications.html"> <!-- Link to Publications page -->
<img src="./img/pages.png" alt="Pages Icon">
<label>Publications</label>
</a>
</div>
<div class="icon-grid-item">
<a href="data.html"> <!-- Link to Data page -->
<img src="./img/numbers.png" alt="Numbers Icon">
<label>Data</label>
</a>
</div>
<div class="icon-grid-item">
<a href="presentations.html"> <!-- Link to Presentations page -->
<img src="./img/keynote.png" alt="Keynote Icon">
<label>Presentations</label>
</a>
</div>
</div>
<script>
function updateGreeting() {
const currentHour = new Date().getHours();
let greeting;
if (currentHour < 12) {
greeting = "Good morning";
} else if (currentHour < 18) {
greeting = "Good afternoon";
} else {
greeting = "Good evening";
}
document.getElementById("greeting").textContent = greeting;
}
updateGreeting(); // Call the function when the page loads
</script>
</body>
</html>