-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
148 lines (137 loc) · 2.61 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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
:root{
--Cyan: hsl(179, 62%, 43%);
--Bright-Yellow: hsl(71, 73%, 54%);
--Light-Gray: hsl(204, 43%, 93%);
--Grayish-Blue: hsl(218, 22%, 67%);
}
/* For Mobile view(width=375px) */
body{
background-color: var(--Light-Gray);
font-family: 'Karla', sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: auto;
}
.container{
display: grid;
grid-template-areas: "header"
"month"
"footer"
;
margin: 50px auto;
max-width: 90%;
border-radius: 8px;
color: white;
overflow: hidden;
}
.content{
max-width: 90%;
margin: 24px auto;
}
.container .join{
grid-area: header;
background: white;
}
.join .content{
display: flex;
flex-direction: column;
gap: 24px;
}
.join h1{
color: var(--Cyan);
}
.join h2{
color: var(--Bright-Yellow);
font-size: 1.5rem;
font-weight: 400px;
line-height: 1.3;
}
.join p{
color: var(--Grayish-Blue);
font-size:16px ;
line-height: 1.75;
}
.container .monthly{
grid-area: month;
background: var(--Cyan);
color: var(--Light-Gray);
}
.monthly .content h3{
font-size: 1.5rem;
margin-bottom: 20px;
}
.content .money {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.money h1{
font-size: 2.5rem;
color: white;
}
.money p{
color: hsla(204, 43%, 93%,0.4);
font-size: 1.2rem;
}
.content button{
width: 100%;
border-style: none;
background: var(--Bright-Yellow);
color: white;
font-size: 15px;
font-family: 'Karla', sans-serif;
height: 50px;
border-radius: 8px;
transition: width 2s,height 1s;
}
button:hover, button:active{
width: 80%;
height: 55px;
color:goldenrod;
}
.monthly .content>p{
font-size: 16px;
margin-bottom: 30px;
color: hsla(204, 43%, 93%,0.75);
}
.container .why{
grid-area: footer;
background: hsla(179, 62%, 43%,0.75);
}
.why p{
font-size: 16px;
margin-top: 30px;
color: hsla(204, 43%, 93%,0.65);
width: 72.75%;
line-height: 1.5;
word-spacing: 2.5px;
}
/* desktop view(1440px) */
@media(min-width:600px){
body{
height: 100vh;
}
.container{
max-width: 80%;
grid-template-areas: "header header"
"month footer"
;
grid-template-columns: repeat(2,1fr);
max-width: 60%;
border-radius: 8px;
margin: 65px auto;
}
.monthly .content, .why .content{
max-width: 80%;
}
.monthly .content>p{
margin-bottom: 60px;
}
}