-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
178 lines (168 loc) · 4.72 KB
/
index.html
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link href="https://fonts.googleapis.com/css?family=Inter" rel="stylesheet" type="text/css">
<title>Frontend Mentor | Stats preview card component</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
*{
box-sizing: border-box;
margin: 0px;
padding: 0px;
}
body{
background-color:hsl(233, 47%, 7%);
font-size: 15px;
font-family: "Inter";
margin: auto;
}
/* desktop design */
@media only screen and ( min-width: 376px ){
body{
min-width: 1100px;
max-width: 1315px;
margin: auto;
}
article{
height: 100vh;
display: grid;
grid-template-columns: 43% 43%;
justify-content: center;
align-content: center;
padding: 40px;
}
section{
max-height: 439px;
}
.card{
background-color: hsl(244, 38%, 16%);
padding-right: 35px;
display: grid;
grid-template-rows: 33% 33% 33%;
grid-template-columns: 10% 70% 20%;
/* padding: 50px 100px 40px 40px; */
border-radius: 7px 0 0 7px;
}
h2{
color: hsl(0, 0%, 100%);
font-size: 35px;
grid-area: 1/2/ 2/4;
padding-top: 45px;
}
p.info{
font-size: 16.5px;
grid-area: 2/2/ 3/4;
padding-top: 30px;
padding-right: 35px;
color: hsla(0, 0%, 100%, 0.75);
}
.stats{
color: hsl(0, 0%, 100%);
font-weight: bold;
grid-area: 3/2/ 3/4;
display: grid;
grid-template-columns: auto auto auto;
font-size: 25px;
}
.stats_heading{
color: hsla(0, 0%, 100%, 0.6);
font-size: 12px;
}
.img{
background-color: hsl(277, 62%, 36%, 0.6);
height: auto;
border-radius: 0px 7px 7px 0px;
}
img{
position: relative;
z-index: -1;
max-width: 100%;
height: auto;
border-radius: 0px 7px 7px 0px;
}
}
/* movile design */
@media only screen and ( max-width: 375px ){
body{
min-width: 335px;
}
article{
height: 900px;
display: grid;
grid-template-rows: auto 60%;
justify-content: center;
align-content: center;
color: white;
padding: 40px;
}
.card{
background-color: hsl(244, 38%, 16%);
grid-area: 2/1/ 3/2;
display: grid;
grid-template-rows: 30% 25% 45%;
justify-content: center;
/* border: 1px solid red; */
border-radius: 0px 0px 7px 7px;
padding: 0px 30px 0px 30px;
}
h2{
font-size: 27px;
padding-top: 20px;
}
p.info{
font-size: 14px;
color: hsla(0, 0%, 100%, 0.75);
}
.stats{
font-size: 25px;
font-weight: bold;
color: hsl(0, 0%, 100%);
}
.stats_heading{
font-size: 12.5px;
color: hsla(0, 0%, 100%, 0.6);
}
p.info, .stats, h2{
/* border: 1px solid red; */
text-align: center;
}
.img{
background-color: hsl(277, 62%, 36%, 0.6);
/* height: auto; */
border-radius: 7px 7px 0px 0px;
}
img{
position: relative;
z-index: -1;
max-width: 100%;
height: auto;
border-radius: 7px 7px 0px 0px;
}
}
.insights{ color: hsl(277, 70%, 58%); }
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
<article>
<section class="card">
<h2>Get <span class="insights">insights</span> that help yours business grow.</h2>
<p class="info">Discovered the benefits of data analytics and make better decisions regarding revenue, customer experience, and overall efficiency.</p>
<div class="stats">
<p>10k+<br><span class="stats_heading">COMPANIES</span></p>
<p>314<br><span class="stats_heading">TEMPLATES</span></p>
<p>12M+<br><span class="stats_heading">QUERIES</span></p>
</div>
</section>
<section class="img"><img src="images/image-header-desktop.jpg" alt="Err"></section>
</article>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Your Name Here</a>.
</div>
</body>
</html>