-
Notifications
You must be signed in to change notification settings - Fork 0
/
overview.html
191 lines (167 loc) · 5 KB
/
overview.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
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Bungee+Inline|Nunito+Sans" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<title>The Laptop Store!</title>
<style>
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
font-size: 62.5%;
box-sizing: border-box;
}
body {
padding: 6rem 4rem 10rem;
line-height: 1.7;
font-family: "Nunito Sans", sans-serif;
color: #555;
min-height: 100vh;
background: linear-gradient(to bottom right, #67b26f, #4ca2cd);
}
h1 {
font-family: "Bungee Inline", sans-serif;
font-weight: 400;
font-size: 6rem;
color: white;
transform: skewY(-5deg);
margin-bottom: 6rem;
text-align: center;
position: relative;
word-spacing: 3px;
}
h1::before {
content: '';
display: block;
height: 65%;
width: 58%;
position: absolute;
top: 105%;
left: 50%;
background: linear-gradient(to bottom, #67b26f, #4ca2cd);
opacity: .8;
z-index: -1;
transform: skewY(370deg) translate(-50%, -50%);
}
.container {
width: 110rem;
margin: 0 auto;
}
.cards-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 6rem;
}
.card {
background: white;
box-shadow: 0 3rem 6rem 1rem rgba(0, 0, 0, 0.25);
}
.card__hero {
position: relative;
}
.card__hero::before {
content: '';
display: block;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
background-image: linear-gradient(to right bottom, #67b26f, #4ca2cd);
opacity: .3;
}
.card__img {
width: 100%;
display: block;
}
.card__name {
background: linear-gradient(to right, #67b26f, #4ca2cd);
padding: 1.3rem .8rem;
font-family: "Bungee Inline", sans-serif;
font-weight: 400;
font-size: 2rem;
color: white;
margin-bottom: 2rem;
text-align: center;
word-spacing: 1px;
}
.card__detail {
font-size: 1.6rem;
padding: 1.5rem 3rem;
display: flex;
align-items: center;
}
.card__detail:first-of-type {
border-bottom: 1px solid #eee;
}
.card__footer {
display: flex;
margin-top: 1.5rem;
}
.card__price {
flex: 0 0 50%;
background-color: #eee;
border-top: 1px solid #e1e1e1;
padding: 1.25rem;
font-size: 1.8rem;
font-weight: 700;
text-align: center;
}
.card__link:link,
.card__link:visited {
flex: 0 0 50%;
background-color: #5aaa9d;
color: white;
font-size: 1.4rem;
font-weight: 700;
text-transform: uppercase;
text-decoration: none;
padding: 1.25rem 1rem;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
transition: all .3s;
}
.card__link:hover,
.card__link:active {
background-color: #67b26f;
}
.emoji-left {
font-size: 2rem;
margin-right: 1rem;
}
.emoji-right {
font-size: 2rem;
margin-left: 1rem;
}
</style>
</head>
<body>
<div class="container">
<h1>The Laptop Store!</h1>
<div class="cards-container">
<figure class="card">
<div class="card__hero">
<img src="data/img/macbook-pro-15.jpg" alt="" class="card__img">
</div>
<h2 class="card__name">Apple Macbook Pro 2018</h2>
<p class="card__detail"><span class="emoji-left">🖥</span> 15-inch Retina display</p>
<p class="card__detail"><span class="emoji-left">🧮</span> 6-core Intel i7, 8th generation</p>
<div class="card__footer">
<p class="card__price">$3199</p>
<a href="laptop.html" class="card__link">Check it out <span class="emoji-right">👉</span></a>
</div>
</figure>
</div>
</div>
</body>
</html>