-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
460 lines (360 loc) · 8.14 KB
/
style.css
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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
/* Style the Navigation */
/* General Styling */
/* Imported GOOGLE FONTS embedded Poppins fonts code (LIGHT300, REGULAR 400, MEDIUM 500, SEMIBOLD 600) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
/* Targetting the whole page */
* {
/* Margins and padding of the page */
margin: 0;
padding: 0;
}
/* Target the entire HTML in body */
body {
font-family: "Poppins", serif; /* Font family Poppins from Google Fonts */
}
/* Scroll Behavior is smooth, so that when add the links to the different sections on webpage it's not going to instantly go to that page or that section */
html {
scroll-behavior: smooth; /* Going to scroll in a smooth manner */
}
/* Target Paragraph Elements */
p {
color: rgb(85, 85, 85);
}
/* TRANSITION */
/* Smooth transition so that whenever clicked, basically changed between two states, two styles, and not be instantaneous */
a, .btn { /* all the links, and a class btn for Button */
transition: all 300ms ease;
}
/* DESKTOP NAVIGATION */
/* Target the nav itself, nav-links */
nav, .nav-links {
display: flex; /* Display property decides how things are arranged on webpage */
}
nav {
justify-content: space-around;
align-items: center;
height: 17vh; /* 17 View Height, 17% of the screen */
}
.nav-links {
gap: 2rem; /* In between 2 elements that are flexed */
list-style: none; /* To remove the bullet points on links */
font-size: 1.5rem; /* increase the font size */
}
/* Style the link element */
a {
color: black;
text-decoration: none;
text-decoration-color: white;
}
/* Target the links when hovered over them */
a:hover {
color: grey;
text-decoration: underline;
text-underline-offset: 0.5rem; /* Space between the underline of the links when hovered above them */
text-decoration-color: rgb(181, 181, 181);
}
/* Increase font size of logo (name) */
.logo {
font-size: 2rem;
}
/* Cursor does not change when hovering above logo (Name) */
.logo:hover {
cursor: default;
}
/* STYLING THE HAMBURGER MENU */
#hamburger-nav {
display: none;
}
.hamburger-menu {
position: relative;
display: inline-block;
}
.hamburger-icon {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 24px;
width: 30px;
cursor: pointer;
}
/* lines of the hamburger menu */
.hamburger-icon span {
width: 100%;
height: 2px;
background-color: black;
transition: all 0.3 ease-in-out;
}
.menu-links {
position: absolute;
top: 100%;
right: 0;
background-color: white;
width: fit-content;
max-height: 0;
overflow: hidden;
transition: all 0.3 ease-in-out;
}
/* Target the menu links and style it */
.menu-links a {
display: block;
padding: 10px;
text-align: center;
font-size: 1.5rem;
color: black;
text-decoration: none;
transition: all 0.3 ease-in-out;
}
/* menu-links and the list elements inside it, remove the bullet points */
.menu-links li {
list-style: none;
}
.menu-links.open {
max-height: 300px;
}
/* first span element */
.hamburger-icon.open span:first-child {
transform: rotate(45deg) translate(10px, 5px);
}
.hamburger-icon.open span:nth-child(2) {
opacity: 0;
}
.hamburger-icon.open span:last-child {
transform: rotate(-45deg) translate(10px, -5px);
}
.hamburger-icon span:first-child {
transform: none;
}
.hamburger-icon span:first-child {
opacity: 1;
}
.hamburger-icon span:first-child {
transform: none;
}
/* Styling for SECTIONS */
section {
padding-top: 4vh;
height: 96vh;
margin: 0 10rem;
box-sizing: border-box;
min-height: fit-content; /* makes sure that things are not overlapping each other and makes things look nice */
}
.section-container {
display: flex;
}
/* Styling PROFILES SECTION SPECIFICALLY */
#profile {
display: flex;
justify-content: center;
gap: 5rem;
height: 80vh;
}
.section__pic-container {
display: flex;
height: 400px;
width: 400px;
margin: auto 0; /* auto on the top, 0 on the sides for margins */
}
/* Text and Paragraph styling of the sections */
.section__text {
align-self: center;
text-align: center;
}
.section__text p {
font-weight: 600;
}
.section__text__p1 {
text-align: center;
}
.section__text__p2 {
font-size: 1.75rem;
margin-bottom: 1rem;
}
.title {
font-size: 3rem;
text-align: center;
}
#socials-container {
display: flex;
justify-content: center;
margin-top: 1rem;
gap: 1rem;
}
/* ICONS for the Profile section */
.icon {
cursor: pointer;
height: 2rem;
}
/* STYLING for the BUTTONS of SOCIALS */
.btn-container {
display: flex;
justify-content: center;
gap: 1rem;
}
.btn {
font-weight: 600;
transition: all 300ms ease;
padding: 1rem;
width: 8rem;
border-radius: 2 rem;
}
.btn-color-1, .btn-color-2 {
border: rgb(53, 53, 53) 0.1rem solid;
}
/* Color of both buttons when hovered */
.btn-color-1:hover, .btn-color-2:hover {
cursor: pointer;
}
.btn-color-1, .btn-color-2:hover {
background: rgb(53, 53, 53);
color: white; /* For the text */
}
/* Color of button 1 when hovered */
.btn-color-1:hover {
background: rgb( 0, 0, 0);
}
.btn-color-2 {
background: none;
}
/* Color of button 2 when hovered */
.btn-color-2:hover {
border: rgb( 255, 255, 255) 0.1rem solid;
}
.btn-container {
gap: 1rem;
}
/* ABOUT section Styling */
#about {
position: relative;
}
.about-containers {
gap: 2rem;
margin-bottom: 2rem;
margin-top: 2rem;
}
.about-details-container {
justify-content: center;
flex-direction: column;
}
.about-containers, .about-details-container {
display: flex;
}
.about-pic {
border-radius: 2rem;
}
.arrow {
position: absolute; /* Arrow position should be absolute, not relative to the section */
right: -5rem;
bottom: 2.5rem;
}
.details-container {
padding: 1.5rem;
flex: 1;
background: white;
border-radius: 2rem;
border: rgb(53, 53, 53) 0.1rem solid;
border-color: rgb(163, 163, 163);
text-align: center;
}
.section-container {
gap: 4rem;
height: 80%;
}
.section__pic-container {
height: 400px;
width: 400px;
margin: auto 0; /* auto on top, 0 on bottom */
}
/* Styling for EXPERIENCE SECTION */
#experience {
position: relative;
}
.experience-sub-title {
color: rgb(85, 85, 85);
font-weight: 600;
font-size: 1.75rem;
margin-bottom: 2rem;
}
.experience-details-container {
display: flex;
justify-content: center;
flex-direction: column;
}
.article-container {
display: flex;
text-align: initial;
flex-wrap: wrap;
flex-direction: row;
gap: 2.5rem;
justify-content: space-around;
}
article {
display: flex;
width: 10rem;
justify-content: space-around;
gap: 0.5rem;
}
article .icon {
cursor: default;
}
/* Styling for PROJECTS Section */
#projects {
position: relative;
}
.color-container {
border-color: rgb(163, 163, 163);
background: rgb(250, 250, 250);
}
.project-img {
border-radius: 2rem;
width: 90%;
height: 90%;
}
.project-title {
margin: 1rem;
color: black;
}
.project-btn {
color: black;
border-color: rgb(163, 163, 163);
}
/* Styling CONTACT page section */
#contact {
display: flex;
justify-content: center;
flex-direction: column;
height: 70vh;
}
.contact-info-upper-container {
display: flex;
justify-content: center;
border-radius: 2rem;
border: rgb(53, 53, 53) 0.1rem solid;
border-color: rgb(163, 163, 163);
background: (250, 250, 250);
margin: 2rem auto; /* margin at or of top is 2rem, bottom is auto */
}
.contact-info-container {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin: 1rem;
}
.contact-info-container {
font-size: larger;
}
.contact-icon {
cursor: default;
}
/* Styling for the email photo/icon because it is smaller than the linkedin icon*/
.email-icon {
height: 2.5rem;
}
/* Styling for the FOOTER */
footer {
height: 26vh;
margin: 0 1rem; /* margin at top is 0, bottom 1rem */
}
footer p {
text-align: center;
}