-
Notifications
You must be signed in to change notification settings - Fork 3
/
styles.css
439 lines (353 loc) · 11 KB
/
styles.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
:root {
--primary: #89b4fa;
/* This is the primary color. */
--secondary: #a6e3a1;
/* This is the secondary color. */
--bg: #1e1e2e;
/* This is the background color. */
--heading: #cdd6f4;
/* This is the color for headings. */
--text: #cdd6f4;
/* This is the color for text. */
}
body {
font-family: Inter, sans-serif;
/* This sets the font family. */
line-height: 1.3;
/* This sets the line height. */
background-color: var(--bg);
/* This sets the background color. */
color: var(--text);
/* This sets the text color. */
}
html {
scroll-behavior: smooth;
}
.port_about,
.port_ed,
.port_skills,
.port_heading,
.port_contact,
.port_contri,
.port_projects {
display: inline-block;
position: relative;
color: var(--primary);
}
.port_about::after,
.port_skills::after,
.port_ed::after,
.port_heading::after,
.port_contact::after,
.port_contri::after,
.port_projects::after {
content: '';
position: absolute;
width: 100%;
transform: scaleX(0);
height: 2px;
bottom: 0;
left: 0;
background-color: var(--primary);
transform-origin: bottom right;
transition: transform 0.25s ease-out;
}
.port_about:hover::after,
.port_skills:hover::after,
.port_ed:hover::after,
.port_heading:hover::after,
.port_contact:hover::after,
.port_contri:hover::after,
.port_projects:hover::after {
transform: scaleX(1);
transform-origin: bottom left;
}
h1,
h2,
h3 {
color: var(--heading);
/* This sets the color for headings. */
}
h1 {
font-size: 5.5rem;
/* This sets the font size for h1 headings. */
}
h2 {
font-size: 4rem;
/* This sets the font size for h2 headings. */
align-self: center;
/* This centers the h2 headings vertically. */
text-align: center;
/* This centers the h2 headings horizontally. */
}
h3 {
font-size: 2.5rem;
/* This sets the font size for h3 headings. */
}
img {
max-width: 100%;
/* This sets the maximum width for images. */
border-radius: 10px;
/* This adds rounded corners to images. */
border: 2px solid var(--primary);
/* This adds a border around images. */
}
.logo_syn {
transition: transform .7s ease-in-out;
max-width: 200px;
/* This sets the maximum width for the Profile Picture. */
border-radius: 100px;
/* This adds rounded corners to the Profile Picture. */
}
.logo_syn:hover {
transform: rotate(360deg);
}
/* Header */
header {
/* The header will have a background color of var(--bg). */
background-color: var(--bg);
/* The text in the header will be centered. */
text-align: center;
/* There will be padding of 20px at the top and bottom of the header. */
padding: 20px 0;
}
nav a {
/* The nav links will have a margin of 10px, padding of 8px 15px, a border radius of 5px, no text decoration, and a color of var(--text). */
margin: 10px;
padding: 8px 15px;
border-radius: 5px;
text-decoration: none;
color: var(--text);
font-size: 200%;
border-radius: 100rem;
}
.about_nav,
.skills_nav,
.projects_nav,
.contact_nav {
transition: box-shadow .3s;
}
.about_nav:hover,
.skills_nav:hover,
.projects_nav:hover,
.contact_nav:hover {
box-shadow: 0 0 100px #89b4fa85;
background: var(--primary);
color: var(--bg);
border-radius: 100rem;
}
/* Sections */
section {
/* The sections will be displayed in a flex container with a flex direction of column and align-items of center. This means that the children of the sections will be displayed one after the other, and the items will be centered vertically. */
display: flex;
flex-direction: column;
align-items: center;
}
/* About */
#about p {
/* The about page paragraph will have a max-width of 800px, a margin of 20px 0, a font size of 1.7rem, and will be text-aligned to the center. */
max-width: 800px;
font-size: 1.7rem;
text-align: center;
}
#about ul {
/* The about page unordered list will be displayed in a flex container with justify-content of center, no list-style, and no padding. This means that the list items will be displayed one after the other, and there will be no bullets or spaces between them. */
display: flex;
justify-content: center;
list-style: none;
padding: 0;
}
#about li {
/* The about page list items will have a margin of 0 10px. This means that there will be no margin to the left and right of the list items, but there will be a margin of 10px to the bottom. */
margin: 0 10px;
}
/* Skills */
.fa-linux,
.fa-python,
.fa-figma,
.fa-html5,
.fa-css3-alt,
.fa-react,
.fa-js,
.fa-node {
/* The skill icons will have a font size of clamp(2rem, 5vw, 5rem), a margin of 30px 10px, and a color of var(--primary). */
font-size: clamp(2rem, 5vw, 5rem);
color: var(--primary);
transition: color .5s ease-in;
transition: text-shadow .3s ease-in;
margin: 30px 10px;
}
.fa-linux:hover,
.fa-python:hover,
.fa-figma:hover,
.fa-html5:hover,
.fa-css3-alt:hover,
.fa-react:hover,
.fa-js:hover,
.fa-node:hover {
color: var(--secondary);
text-shadow: 0 0 50px #a6e3a1;
}
/* This code defines the style for the education section. */
#education {
/* The education section will have a max-width of 100% and will be centered on the page. */
max-width: 100%;
text-align: center;
align-items: center;
/* The margin attribute has been commented out because it is not necessary. */
/* margin: 0 auto; */
}
#education h2 {
/* The h2 headings in the education section will have a margin-bottom of 30px and will be displayed full-width. */
max-width: 100%;
}
#education h3 {
/* The h3 headings in the education section will have a margin-bottom of 10px and will be displayed full-width. */
max-width: 100%;
}
#education p {
/* The paragraphs in the education section will have a line-height of 1, will be displayed full-width, and will have a font size of 180%. */
line-height: 1;
max-width: 100%;
font-size: 180%;
color: #7f849c;
}
#education ul {
/* The unordered lists in the education section will have no list-style and will be displayed full-width. */
list-style: none;
max-width: 100%;
/* The padding-left attribute has been commented out because it is not necessary. */
/* padding-left: 0; */
}
#education li {
/* The list items in the education section will have a line-height of 1.8 and will be displayed full-width. */
line-height: 1;
max-width: 100%;
}
/* This media query defines the style for the education section when the screen width is less than 600px. */
@media (max-width: 600px) {
/* The education section will have padding of 20px. */
#education {
padding: 20px;
}
/* The h2 headings in the education section will have a font size of 28px. */
#education h2 {
font-size: 28px;
}
/* The h3 headings in the education section will have a font size of 20px. */
#education h3 {
font-size: 20px;
}
}
/* This code defines the style for the projects section. */
/* Projects Container */
.projects {
/* The projects container will have overflow-x: auto, overflow-y: hidden, and white-space: nowrap. This will allow the projects to scroll horizontally if they are too wide to fit on the screen. */
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
/* The projects container will be centered on the page and will have a max-width of 1000px. */
margin: 0 auto;
max-width: 1000px;
/* The projects container will have padding of 20px. */
padding: 20px;
}
.contributions {
/* The projects container will have overflow-x: auto, overflow-y: hidden, and white-space: nowrap. This will allow the projects to scroll horizontally if they are too wide to fit on the screen. */
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
/* The projects container will be centered on the page and will have a max-width of 1000px. */
margin: 0 auto;
max-width: 1000px;
/* The projects container will have padding of 20px. */
padding: 20px;
}
/* Individual Projects */
.project {
/* Each project will be displayed as an inline-block element with a width of 300px and a vertical alignment of top. It will also have a margin-right of 20px, a background color of #38355c, and rounded borders with a radius of 10px. */
display: inline-block;
width: 300px;
vertical-align: top;
margin-right: 20px;
background-color: #313244;
border-radius: 10px;
border: #45475a 3px solid;
/* The project will have padding of 20px between the content. */
padding: 20px;
}
/* Remove margin from last project */
.project:last-child {
/* The last project will not have a margin-right of 20px. */
margin-right: 0;
}
/* Project Content Styling */
.project h3 {
/* The h3 headings for each project will have a margin-top of 10px and a font size of 1.3rem. */
margin-top: 10px;
font-size: 1.3rem;
}
.project p {
/* The paragraphs for each project will have a color of #7f849c. */
color: #7f849c;
}
.contribution {
/* Each project will be displayed as an inline-block element with a width of 300px and a vertical alignment of top. It will also have a margin-right of 20px, a background color of #313244, and rounded borders with a radius of 10px. */
display: inline-block;
width: 300px;
vertical-align: top;
margin-right: 20px;
background-color: #313244;
border-radius: 10px;
border: #45475a 3px solid;
/* The project will have padding of 20px between the content. */
padding: 20px;
}
/* Remove margin from last project */
.contribution:last-child {
/* The last project will not have a margin-right of 20px. */
margin-right: 0;
}
/* Project Content Styling */
.contribution h3 {
/* The h3 headings for each project will have a margin-top of 10px and a font size of 1.3rem. */
margin-top: 10px;
font-size: 1.3rem;
}
.contribution p {
/* The paragraphs for each project will have a color of #7f849c. */
color: #7f849c;
}
/* This code defines the style for the contact section. */
/* Contact */
#contact p {
/* The paragraphs in the contact section will have a margin of 10px 0 and a font size of 1.4rem. */
margin: 10px 0;
font-size: 1.4rem;
}
#contact a {
/* The links in the contact section will be aligned to the center and will have text-align: center. */
align-items: center;
text-align: center;
}
#contact i {
/* The icons in the contact section will have a color of var(--secondary) and will have a margin-right of 10px. */
color: var(--secondary);
margin-right: 10px;
}
.last-contact-item,
.footer {
padding-bottom: 20px;
}
/* Media Queries */
@media (max-width: 600px) {
/* The header will change to a flex direction of column when the screen width is less than 600px. */
header {
flex-direction: column;
}
/* The about image will change to a width of 180px and will be aligned to the center when the screen width is less than 600px. */
#about img {
width: 180px;
align-self: center;
}
}