-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
134 lines (125 loc) · 2.75 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
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root{
/* (main background) */
--very-dark-blue : hsl(233, 47%, 7%);
/* (card background) */
--dark-saturated-blue: hsl(244, 38%, 16%);
/* (accent) */
--soft-violet: hsl(277, 64%, 61%);
/* (main heading, stats) */
--white: hsl(0, 0%, 100%);
/* (main paragraph) */
--slightly-transparent-white: hsla(0, 0%, 100%, 0.75);
/* (stat headings) */
--slightly-transparent-white2: hsla(0, 0%, 100%, 0.6);
}
/* font-family: 'Lexend Deca', sans-serif; */
/* font-family: 'Inter', sans-serif; */
body{
font-size: 15px;
font-family: 'Lexend Deca', sans-serif;
background-color: var(--very-dark-blue);
color: var(--white);
display: flex;
flex-direction: column;
align-items: center;
}
.main-cont{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container{
height: 400px;
width: 800px;
background-color: var(--dark-saturated-blue);
display: flex;
align-items: center;
flex-direction: row;
}
.image-part{
height: 400px;
width: 400px;
}
.img-component{
position: relative;
}
.img-component::after{
position: absolute;
content: '';
height: 100%;
width: 100%;
left: 0;
top: 0;
background-color: var(--soft-violet);
opacity: 0.7;
}
.heading span{
color: var(--soft-violet);
}
.text-part{
padding: 40px;
}
.heading{
font-family: 'Inter', sans-serif;
font-size: 25px;
color: var(--white);
}
.para{
font-size: 13px;
font-family: 'Lexend Deca', sans-serif;
color: var(--slightly-transparent-white);
margin-top: 30px;
}
.three-div{
margin-top: 20px;
display: flex;
align-items: center;
flex-direction: row;
gap: 50px;
margin-top: 50px;
}
.para2{
font-size: 13px;
font-family: 'Lexend Deca', sans-serif;
color: var(--slightly-transparent-white);
}
.heading2{
font-family: 'Inter', sans-serif;
font-size: 15px;
color: var(--white);
}
.box{
display: flex;
flex-direction: column;
align-items: center;
}
.attribution { font-size: 11px; text-align: center; margin-top: 20px; }
.attribution a { color: var(--soft-violet); }
/* Responsiveness */
@media(max-width:375px){
.container{
width: 300px;
height: 700px;
flex-direction: column-reverse;
border-radius: 10px;
}
.image-part{
height: 200px;
width: 300px;
border-radius: 10px 10px 0 0;
}
.text-part{
text-align: center;
}
.three-div{
flex-direction: column;
}
}