-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
122 lines (117 loc) · 2.43 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
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
:root {
--main-bg: hsl(233, 47%, 7%);
--card-bg: hsl(244, 38%, 16%);
--accent: hsla(277, 64%, 61%, 0.7);
--color-white: hsl(0, 0%, 100%);
--paragraph-color: hsla(0, 0%, 100%, 0.75);
}
body {
background: var(--main-bg);
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
}
.card {
background: var(--card-bg);
border-radius: 10px;
overflow: hidden;
width: 90vw;
max-width: fit-content;
}
.card .card_inner {
display: flex;
gap: 50px;
}
.card .card_inner .card_text {
color: var(--color-white);
font-family: "Inter", sans-serif;
width: 600px;
padding: 60px;
}
.card .card_inner .card_text h1 {
font-size: 38px;
font-weight: 700;
margin-bottom: 30px;
line-height: 1;
}
.card .card_inner .card_text h1 span {
color: var(--accent);
}
.card .card_inner .card_text main > p {
color: var(--paragraph-color);
line-height: 1.7;
width: 350px;
}
.card .card_inner .card_text .stats {
display: flex;
justify-content: space-between;
margin-top: 70px;
}
.card .card_inner .card_text .stats .stat h3 {
font-size: 24px;
font-weight: 700;
}
.card .card_inner .card_text .stats .stat p {
color: var(--paragraph-color);
text-transform: uppercase;
font-size: 12px;
}
.card .image {
background-image: url("images/image-header-desktop.jpg");
background-size: cover;
background-position: center;
position: relative;
width: 540px;
height: 446px;
}
.card .image:after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--accent);
}
@media (max-width: 568px) {
body {
height: auto;
padding: 60px 0;
}
.card .card_inner {
display: flex;
flex-direction: column-reverse;
}
.card .card_inner .card_text {
text-align: center;
width: auto;
padding: 20px;
}
.card .card_inner .card_text h1 {
font-size: 32px;
}
.card .card_inner .card_text main > p {
width: auto;
}
.card .card_inner .card_text main .stats {
display: flex;
flex-direction: column;
gap: 30px;
margin-top: 70px;
}
.card .image {
background-image: url("images/image-header-mobile.jpg");
width: auto;
background-size: auto;
}
}