Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
217 lines (183 loc) · 3.69 KB
/
Copy pathstyles.css
File metadata and controls
217 lines (183 loc) · 3.69 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
217
/*Global Variables*/
:root {
--background-red: #bf083f;
--background-blue: #2d99f7;
}
/* Base reset
WILL MAKE ALL DIVS STRETCH THE PAGE!!!
*/
* {
margin: 0;
padding: 0;
}
/* box-sizing and font sizing */
*,
*::before,
*::after {
box-sizing: inherit;
}
/*Custom font sizing
default 1rem = 16px, 100%=16px
10px/16px=.62
62.5% = 10PX, 10px = 1rem
*/
html {
box-sizing: border-box;
font-size: 62.5%;
scroll-behavior: smooth;
}
body
{
font-size: 1.8rem; /* 18px */
font-weight: 400;
line-height: 1.4;
font-family: 'Oswald', sans-serif;
}
img {
display: block;
width: 100%;
}
/* navbar */
nav {
display: flex;
justify-content: flex-end;
width: 100%;
background-color: var(--background-red);
top: 0;
left: 0;
z-index: 10;
position: fixed;
}
.nav-list {
display: flex;
margin-right: 2rem;
}
.nav-list a {
display: block;
font-size: 2.2rem;
padding: 2rem;
color: white;
transition: transform 0.3s ease-out;
}
.nav-list a:hover {
border-radius: 2rem;
color: white;
transform: translateY(8px);
}
li {
list-style: none;
}
a {
text-decoration: none;
color: white;
}
.welcome-section {
font-size: 4rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
/*background: black;*/
color: white;
/*background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);*/
}
.welcome-section p {
font-weight: lighter;
color: var(--background-red);
font-style: italic;
text-shadow: 6px 6px 0px rgba(0,0,0,0.2);
}
.projects-section {
text-align: center;
padding: 10rem 2rem ;
background-color: var(--background-blue);
}
/* "Automagic" image grid using no media queries */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
grid-gap: 4rem;
width: 100%;
max-width: 1280px;
margin: 0 auto;
margin-bottom: 6rem;
}
@media (max-width: 30.625em) {
.projects-section {
padding: 6rem 1rem;
}
.projects-grid {
grid-template-columns: 1fr;
}
}
.project {
text-align: center;
background: gray;
border-radius: 0.5rem;
box-shadow: 0px 5px 15px black;
}
.project-image {
height: calc(100% - 6rem);
width: 100%;
object-fit: cover;
border-radius: 0.5rem 0.5rem 0 0;
}
.project-title {
padding: 1.8rem 0.5rem; /* 18px 5px */
}
.arrow {
color: gray;
transition: color 0.3s ease-out;
}
.project:hover .arrow {
color: white;
}
/* Some media queries to set font size at different screen sizes. */
/* I am using the em unit for breakpoints
* The calculation is the following
* screen size divided by browser base font size
* As an example: a breakpoint at 980px
* 980px / 16px = 61.25em
*/
/* 1200px / 16px = 61.25em */
@media (max-width: 75em) {
html {
font-size: 60%;
}
}
/* 980px / 16px = 61.25em */
@media (max-width: 61.25em) {
html {
font-size: 58%;
}
}
/* 460px / 16px = 28.75em */
@media (max-width: 28.75em) {
html {
font-size: 55%;
}
.welcome-section {
text-align: center;
}
}
/* Footer Arrangement */
.contact-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
margin-top: 2rem;
}
.contact-header h1 {
font-size: 6rem;
}
.contact-header p {
font-size: 2rem;
font-weight: lighter;
}
.contact-links {
display: flex;
margin-top: 1rem;
}