-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
160 lines (139 loc) · 2.81 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
/* font family Inter and */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap');
:root{
/* primary */
--main-bgd : hsl(233, 47%, 7%);
--card-bgd : hsl(244, 38%, 16%);
--violet : hsl(277, 64%, 61%);
/* Neutral */
--white : hsl(0, 0%, 100%);
--main-p: hsla(0, 0%, 100%, 0.75);
--stat-h: hsla(0, 0%, 100%, 0.6);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
h1,
h2,
h3,
p,
body {
margin: 0;
}
body{
font-family: 'Inter', sans-serif;
color : white;
margin: 0;
background-color : var(--main-bgd);
}
h1, h2{
color: var(--white);
}
p{
color: var(--main-p);
font-size: 15px;
}
.text-violet{
color: var(--violet);
}
.main{
min-height: 100vh;
display: flex;
align-items: center;
justify-content:center
}
.container{
display: flex;
height: 446px;
width: 1110px;
margin-left: auto;
margin-right: auto;
}
.content{
background-color: var(--card-bgd);
padding: 71px 100px 59px 72px;
border-radius: 8px 0px 0px 8px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.content-header h1{
margin-bottom : 25px;
line-height: 44px;
font-size: 36px;
}
.content-header p {
line-height: 25px;
}
.stats{
display: flex;
gap: 63px;
}
.stat-item p {
font-family: 'Lexend Deca', sans-serif;
color: var(--stat-h);
text-transform: uppercase;
margin-top: 0;
font-weight: 400;
font-size: 12px;
}
.stat-item h2{
margin-bottom : 5px;
line-height: 29px;
font-weight: 700;
}
.hero{
border-radius: 0px 8px 8px 0px;
background-color : var(--violet);
background-blend-mode: multiply;
background-image: url('./images/image-header-mobile.jpg');
background-repeat: no-repeat;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
width: 100%;
height:100%;
}
.attribution{
text-align: center;
}
@media screen and (max-width: 1092px) {
.hero{
border-radius: 8px 8px 0px 0px;
}
.container{
flex-direction: column-reverse;
height: 780px;
width: 327px;
justify-content:center;
margin: 23.5% 0% ;
}
.content{
padding: 10% ;
border-radius: 0px 0px 8px 8px;
display: flex;
flex-direction: column;
justify-content: space-between;
text-align: center;
}
.content-header h1{
margin-bottom : 16px;
line-height: 32px;
font-size: 28px;
}
.content-header p {
line-height: 25px;
}
.stat-item{
display: flex;
flex-direction: column;
align-items: center
}
.stats{
margin-top: 40px;
flex-direction: column;
gap: 24px;
}
}