-
Notifications
You must be signed in to change notification settings - Fork 0
/
laptop.html
249 lines (222 loc) · 7.5 KB
/
laptop.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!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>Apple Macbook Pro 2018 /// 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;
}
.laptop {
width: 70rem;
margin: 0 auto;
background: white;
box-shadow: 0 3rem 6rem 1rem rgba(0, 0, 0, 0.25);
position: relative;
}
.laptop__hero {
position: relative;
}
.laptop__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: .4;
}
.laptop__img {
width: 100%;
display: block;
}
.laptop__price {
position: absolute;
top: -3rem;
right: -3rem;
z-index: 100;
background: linear-gradient(to right bottom, #67b26f, #4ca2cd);
height: 14rem;
width: 14rem;
border: 6px solid white;
border-radius: 50%;
transform: rotate(15deg);
box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.4);
color: white;
font-size: 3rem;
font-family: "Bungee Inline", sans-serif;
display: flex;
align-items: center;
justify-content: center;
}
.laptop__back:link,
.laptop__back:visited {
position: absolute;
top: 2rem;
left: 2rem;
font-size: 1.5rem;
color: white;
font-weight: 700;
text-transform: uppercase;
text-decoration: none;
z-index: 1;
border: 2px solid white;
border-radius: 100rem;
padding: 0 2rem;
transition: all .3s;
display: flex;
align-items: center;
}
.laptop__back:hover,
.laptop__back:active {
background-color: white;
color: #555;
}
.laptop__name {
background: linear-gradient(to right, #67b26f, #4ca2cd);
padding: 1.75rem 1rem;
font-family: "Bungee Inline", sans-serif;
font-weight: 400;
font-size: 3.25rem;
color: white;
text-align: center;
word-spacing: 2px;
}
.laptop__details {
background-color: #eee;
padding: 4rem 6rem;
font-size: 1.5rem;
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1.75rem;
}
.laptop__description {
padding: 5rem 6rem;
font-size: 1.6rem;
line-height: 1.8;
}
.laptop__link:link,
.laptop__link:visited {
display: block;
background-color: #5aaa9d;
color: white;
font-size: 1.6rem;
font-weight: 700;
text-transform: uppercase;
text-decoration: none;
padding: 1.5rem;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
transition: all .3s;
}
.laptop__link:hover,
.laptop__link:active {
background-color: #67b26f;
}
.laptop__source {
padding: 0 6rem 3rem;
color: #999;
font-size: 1.2rem;
}
.laptop__source a:link,
.laptop__source a:visited {
color: #999;
}
.laptop__source a:hover,
.laptop__source a:active {
color: #555;
}
.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>
<figure class="laptop">
<p class="laptop__price">$3199</p>
<a href="overview.html" class="laptop__back"><span class="emoji-left">👈</span>Back</a>
<div class="laptop__hero">
<img src="data/img/macbook-pro-15.jpg" alt="" class="laptop__img">
</div>
<h2 class="laptop__name">Apple Macbook Pro 2018</h2>
<div class="laptop__details">
<p><span class="emoji-left">🖥</span> 15-inch Retina display</p>
<p><span class="emoji-left">🧮</span> 6-core Intel i7, 8th generation</p>
<p><span class="emoji-left">💾</span> 1TB GB SSD of storage</p>
<p><span class="emoji-left">📦</span> 16GB of RAM</p>
</div>
<p class="laptop__description">
If you're after the latest and greatest laptop from Apple, we suggest you look into the 2018 model of
the 15-inch MacBook Pro with Touch Bar. The headline Touch Bar – a thin OLED display at the top of the
keyboard which can be used for any number of things, whether that be auto-suggesting words as you type
or offering Touch ID so you can log in with just your fingerprint – is of course included. It's
certainly retained Apple's sense of style, but it comes at a cost. This is a pricey machine, so you may
want to consider one of the Windows alternatives. But, if you're a steadfast Apple diehard, this is
definitely the best laptop for you!
</p>
<p class="laptop__source">Source: <a href="https://www.techradar.com/news/mobile-computing/laptops/best-laptops-1304361"
target="_blank">https://www.techradar.com/news/mobile-computing/laptops/best-laptops-1304361</a></p>
<a href="#" class="laptop__link">Buy now for $3199 <span class="emoji-right">🥳 😍</span></a>
</figure>
</div>
</body>
</html>