-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.css
130 lines (130 loc) · 2.61 KB
/
index.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
* {
box-sizing: border-box;
font-family: "Oxygen", system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
"Helvetica Neue", sans-serif;
margin: 0;
padding: 0;
}
:root {
--color-background: #030207;
--color-white: #fff;
--color-blue: #1474b4
}
body {
background-color: var(--color-background);
color: var(--color-white);
}
a {
color: var(--color-blue);
}
.hero {
background: linear-gradient(rgba(0, 0, 0, 0.1), var(--color-background));
position: relative;
min-height: 100vh;
}
.hero__background {
position: absolute;
top: 0;
width: 100%;
height: 100vh;
object-fit: cover;
z-index: -10;
}
.hero__foreground {
color: var(--color-white);
padding-top: 40vh;
text-align: center;
}
.hero__title {
font-size: 5rem;
font-weight: 100;
}
.hero__text {
margin-top: 2rem;
letter-spacing: 0.5rem;
text-transform: uppercase;
}
.section {
overflow: hidden;
padding: 0 8rem;
text-align: center;
}
.section__title {
font-size: 3rem;
font-weight: 100;
margin: 4rem auto;
}
.section__img,
.section__img-inline {
border-radius: 0.75rem;
box-shadow: 0 1rem 2rem -0.5rem rgba(20, 116, 180, 0.25);
object-fit: cover;
object-position: top;
position: relative;
max-height: 30rem;
width: 100%;
}
.section__img-inline {
border-top-left-radius: 4rem;
border-bottom-right-radius: 4rem;
float: left;
margin-right: 4rem;
margin-bottom: 2rem;
width: 20rem;
height: 25rem;
}
.section__text,
.section__text-inline {
font-size: 1.25rem;
line-height: 1.75;
margin: 4rem auto;
}
.section__text-inline {
margin-top: 6rem;
text-align: left;
}
.section__text-inline > p {
margin-top: 1.5rem;
}
.gallery__img {
border-radius: 0.75rem;
width: 16rem;
height: 16rem;
object-fit: cover;
position: relative;
transform: rotate(-2deg);
}
.gallery__img-wrapper + .gallery__img-wrapper {
margin-left: 1rem;
margin-top: 1rem;
}
.gallery__img-wrapper:nth-child(2n) > .gallery__img {
top: 1rem;
transform: rotate(2deg);
}
.gallery__img-wrapper {
display: inline-block;
position: relative;
}
.gallery__img-wrapper::after {
content: "";
background-color: rgb(228, 26, 26);
border-radius: 999px;
box-shadow: 0 0 0.5rem rgba(0, 0, 0, 1);
display: block;
height: 1.25rem;
width: 1.25rem;
position: absolute;
top: 0.25rem;
right: 1rem;
}
.gallery__img-wrapper:nth-child(2n)::after {
left: 0.75rem;
margin-top: 1rem;
}
.footer {
margin-top: 4rem;
padding: 2rem;
text-align: center;
}