-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
216 lines (178 loc) · 3.5 KB
/
index.css
File metadata and controls
216 lines (178 loc) · 3.5 KB
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
@import url("http://fonts.googleapis.com/css?family=Source+Sans+Pro:200");
.body {
/* Global vars */
--navbar-height: 3em;
/* Default Background */
background: linear-gradient(45deg, rgb(17, 17, 17), rgb(4, 5, 27), rgb(3, 6, 48));
/* Setup Font */
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-weight: 200;
color: rgba(255, 255, 255, 0.65);
line-height: 1.65;
}
/* Navigation Bar properties */
.navbar {
overflow: hidden;
background-color: rgb(51, 51, 51);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: var(--navbar-height);
z-index: 1000;
}
.navbar a {
float: left;
display: block;
color: rgb(242, 242, 242);
text-align: center;
padding: 0.5em 1em;
text-decoration: none;
cursor: pointer;
}
h1 {
scroll-margin-top: 2em; /* No idea why this needs to be 2 instead of 3 */
}
/* Main content */
.container {
margin-inline: 20vw;
margin-top: var(--navbar-height);
text-align: center;
}
/* Header with my name and picture */
.header {
background: linear-gradient(45deg, rgba(19,144,224,1) 0%, rgba(81,14,152,1) 100%);
}
.image-container {
--transition-transform: transform 250ms ease;
position: relative;
max-width: 7em;
margin-inline: auto;
aspect-ratio: 1 / 1.3;
display: grid;
align-items: end;
border-radius: 0 0 100vw 100vw; /* Get circle on bottom of container, but straight lines on top */
overflow: hidden;
transition: var(--transition-transform);
}
img {
max-width: 100%;
display: block;
}
.image-container:hover {
transform: scale(1.1);
}
.circle {
position: absolute;
aspect-ratio: 1 / 1;
width: 100%;
object-fit: cover;
inset: auto 0 0;
margin-inline: auto 0 0;
border-radius: 50%;
}
.profile-image {
position: relative;
transform: scale(1.1);
left: 0.9em;
bottom: 0.3em;
transition: var(--transition-transform);
}
.profile-image:hover {
transform: scale(1.25) translateY(-0.5rem);
}
.header-text * {
margin: 0;
}
.title {
color: rgba(255, 255, 255, 0.65);
font-size: 1.75em;
}
.subtitle {
color: rgba(255, 255, 255, 0.35);
}
/* About Me Section */
.aboutme-section {
display: flex;
gap: 3ch;
align-items: center;
justify-content: center;
padding: 2vh 0;
}
.forward {
flex-flow: row wrap;
}
.backward {
flex-flow: row-reverse wrap;
}
.aboutme-img {
aspect-ratio: 1 / 1;
}
.aboutme-img-wrapper{
flex: 2 1 0;
}
.aboutme-content {
flex: 3 0 25vw;
text-align: justify;
}
a {
color: rgb(242, 242, 242);
}
#portfolio-container :is(h2, h4) {
margin-top: 0;
margin-bottom: 0;
}
.portfolio-section {
display: flex;
gap: 3ch;
align-items: center;
justify-content: center;
padding: 2vh 0;
}
.portfolio-img-wrapper{
flex: 2 1 0;
margin-bottom: auto;
padding: 1ch;
background: white;
}
.portfolio-content {
flex: 3 0 25vw;
text-align: justify;
}
/* Technology Logo animations */
.logo-container {
display: flex;
flex-flow: row wrap;
justify-content: center;
gap: 3vw;
}
.logo {
--order: 1;
--direction: -1;
flex: 0 0 0;
height: 6em;
aspect-ratio: 1 / 1;
object-fit: contain;
opacity: 0;
filter: blur(5px);
transform: translateX(calc(var(--direction)*200%));
transition: all 1s;
transition-delay: calc(100ms * (var(--order) - 1));
}
.show {
filter: blur(0);
transform: translateX(0);
opacity: 1;
}
/* Remove animations for accessibility */
@media(prefers-reduced-motion) {
.logo {
transition: none;
filter: blur(0);
transform: translateX(0);
opacity: 1;
}
.body {
scroll-behavior: none;
}
}