-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
317 lines (307 loc) · 17.2 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
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sweetaste</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="keywords" content="Bootstrap, SASS, SCSS, Sweetaste,甜點電商, hexschool, 六角學院,">
<meta property="description" content="六角學院 Bootstrap 課程最終作業,使用 Bootstrap 結合 SCSS 製作完成">
<!-- Facebook -->
<meta property="og:title" content="Sweetaste 六角甜點工坊">
<meta property="og:description" content="六角學院 Bootstrap 課程最終作業">
<meta property="og:locale" content="zh_tw">
<meta property="og:type" content="website">
<meta property="og:url" content="https://sealman234.github.io/Sweetaste/">
<meta property="og:image" content="https://images.unsplash.com/photo-1473256599800-b48c7c88cd7e?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=ae0d68ab0db4ee79bdce92722b31112b&auto=format&fit=crop&w=2725&q=80">
<!-- logo -->
<link rel="icon" href="./images/favicon_48.ico">
<!-- Font Awesome 4.7.0 -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Google Web Fonts -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="./stylesheets/all.css">
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-md navbar-light bg-white">
<div class="container">
<!-- menu toggle button -->
<button class="navbar-toggler d-flex align-items-center border-0 d-md-none" type="button"
data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<i class="material-icons">menu</i>
</button>
<!-- brand logo -->
<a class="navbar-brand" href="./index.html">
<img src="./images/logo-all-dark.svg" width="220" height="40" class="d-none d-md-inline-block">
<img src="./images/logotype-sm-dark.svg" width="114" height="18" class="d-inline-block d-md-none">
</a>
<!-- cart link -->
<a class="nav-link d-flex align-items-center order-md-1" style="font-size: 24px;" href="./cart.html">
<i class="material-icons">shopping_cart</i>
</a>
<!-- dropdown menu -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<!-- 靠右 -->
<ul class="navbar-nav ml-auto ">
<li class="nav-item active">
<a class="nav-link" href="./index.html">首頁 <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./product.html">甜點</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./login.html">登入</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Header -->
<div class="container px-0 px-md-3">
<header class="header">
<!-- (背景圖)圖片取代文字 -->
<div class="bg-cover"
style="background-image: url(https://images.unsplash.com/photo-1473256599800-b48c7c88cd7e?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=ae0d68ab0db4ee79bdce92722b31112b&auto=format&fit=crop&w=2725&q=80); height: 496px;">
<h1 class="text-hide">六角甜點工坊</h1>
</div>
<!-- 毛玻璃 -->
<div class="row justify-content-center no-gutters" style="margin-top: -83px;">
<div class="col-md-10">
<div class="row no-gutters">
<a href="#" class="col-4 frosted-wrap active">
<span class="frosted-text">本日精選</span>
<div class="frosted-image bg-cover"
style="background-image: url(https://images.unsplash.com/photo-1504473089979-b1c4993a9653?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=9db69b72e1f7d1b4e5c81cee531108ff&auto=format&fit=crop&w=634&q=80)">
</div>
</a>
<a href="#" class="col-4 frosted-wrap" style="border-left: 1px solid #fff;">
<span class="frosted-text">人氣推薦</span>
<div class="frosted-image bg-cover"
style="background-image: url(https://images.unsplash.com/photo-1525059337994-6f2a1311b4d4?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=7ce5bbf66bdb4ed3b6965f0b3618aa43&auto=format&fit=crop&w=654&q=80)">
</div>
</a>
<a href="#" class="col-4 frosted-wrap" style="border-left: 1px solid #fff;">
<span class="frosted-text">新品上市</span>
<div class="frosted-image bg-cover"
style="background-image: url(https://images.unsplash.com/photo-1490914327627-9fe8d52f4d90?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=73ed228f25bdefd2291c242f6d390fca&auto=format&fit=crop&w=634&q=80)">
</div>
</a>
</div>
</div>
</div>
</header>
</div>
<!-- Section -->
<section class="section my-md-9">
<!-- (標語) 在 md 以上隱藏 -->
<div class="row justify-content-center d-md-none no-gutters">
<div class="col-6">
<img src="./images/sm-為什麼選擇了做甜點.svg" class="my-5 img-fluid">
</div>
</div>
<div class="bg-primary-lighter">
<div class="container">
<div class="row">
<!-- 甜點圖片 -->
<div class="col-md-6 section-image-block">
<div class="bg-cover h-100 section-image"
style="background-image: url(https://images.unsplash.com/photo-1519730722595-a5ff788dea4d?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=2712a33fe9b13532f0682ac4e1e749b8&auto=format&fit=crop&w=600&q=60);">
</div>
</div>
<!-- 垂直的文字內容 -->
<div class="col-md-6 vertical-content d-flex justify-content-end">
<div class="writing-md-vertical text-primary-light py-5 py-md-7 mr-auto">
<p class="mb-0">青山依舊在,幾度夕陽紅。慣看秋月春風。</p>
<p class="mb-0">一壺濁酒喜相逢,浪花淘盡英雄。是非成敗轉頭空,滾滾長江東逝水,白髮漁樵江渚上,古今多少事,都付笑談中。</p>
<p class="mb-0">是非成敗轉頭空,滾滾長江東逝水,白髮漁樵江渚上,古今多少事,都付笑談中。</p>
</div>
<!-- (標語) 在 md 以上會顯示 -->
<div class="d-none d-md-block section-image-block">
<img src="./images/lg-為什麼選擇了做甜點.svg" width="88">
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section my-md-9">
<div class="row justify-content-center d-md-none no-gutters">
<div class="col-6">
<img src="./images/sm-為什麼一定要吃甜點.svg" class="my-5 img-fluid">
</div>
</div>
<div class="bg-primary-lighter">
<div class="container">
<!-- (反轉) 調換圖片與文字內容的位置 -->
<div class="row flex-row-reverse">
<div class="col-md-6 section-image-block">
<div class="bg-cover h-100 section-image"
style="background-image: url(https://images.unsplash.com/photo-1497052254059-f3e0bf1a5133?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=ce7267675921fc7e41b5610f49750a40&auto=format&fit=crop&w=685&q=80);">
</div>
</div>
<!-- 要用 end 標語才會向左遠離甜點圖片 -->
<div class="col-md-6 vertical-content d-flex justify-content-end">
<div class="writing-md-vertical text-primary-light py-5 py-md-7 mr-auto">
<p class="mb-0">青山依舊在,幾度夕陽紅。慣看秋月春風。</p>
<p class="mb-0">一壺濁酒喜相逢,浪花淘盡英雄。是非成敗轉頭空,滾滾長江東逝水,白髮漁樵江渚上,古今多少事,都付笑談中。</p>
<p class="mb-0">是非成敗轉頭空,滾滾長江東逝水,白髮漁樵江渚上,古今多少事,都付笑談中。</p>
</div>
<div class="d-none d-md-block section-image-block">
<img src="./images/lg-為什麼一定要吃甜點.svg" width="88">
</div>
</div>
</div>
</div>
</div>
</section>
<section class="my-5 my-md-9 text-center">
<img src="./images/sm-想吃甜點是不需要理由的.svg" class="img-fluid d-md-none" width="256">
<img src="./images/lg-想吃甜點是不需要理由的.svg" class="img-fluid d-none d-md-inline-block" width="89">
</section>
<!-- Item Card -->
<section class="container my-5 my-md-7">
<div class="row">
<div class="col-md-4">
<div class="item-card mb-4">
<!-- item-image -->
<div class="item-image bg-cover"
style="background-image: url(https://images.unsplash.com/photo-1534073737927-85f1ebff1f5d?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=1204e5551548223af82981f0025984ef&auto=format&fit=crop&w=634&q=80);">
<div class="item-tag">本日精選</div>
<div class="item-icon text-primary">
<i class="material-icons heart_border">
favorite_border
</i>
<i class="material-icons heart d-none">
favorite
</i>
</div>
</div>
<!-- item-info -->
<div class="row no-gutters item-info d-flex justify-content-center">
<div class="col item-name text-primary">焦糖馬卡龍</div>
<div class="col item-price text-primary text-strong"><strong>NT$ 450</strong></div>
</div>
<!-- item-cart -->
<a href="#" class="btn btn-block btn-primary-lighter item-cart">加入購物車</a>
</div>
</div>
<div class="col-md-4">
<div class="item-card mb-4">
<div class="item-image bg-cover"
style="background-image: url(https://images.unsplash.com/photo-1525059337994-6f2a1311b4d4?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=7ce5bbf66bdb4ed3b6965f0b3618aa43&auto=format&fit=crop&w=654&q=80);">
<div class="item-tag">本日精選</div>
<div class="item-icon text-primary">
<i class="material-icons heart_border">
favorite_border
</i>
<i class="material-icons heart d-none">
favorite
</i>
</div>
</div>
<div class="row no-gutters item-info d-flex justify-content-center">
<div class="col item-name text-primary">牛奶尬圈圈</div>
<div class="col item-price text-primary text-strong"><strong>NT$ 450</strong></div>
</div>
<a href="#" class="btn btn-block btn-primary-lighter item-cart">加入購物車</a>
</div>
</div>
<div class="col-md-4">
<div class="item-card mb-4">
<div class="item-image bg-cover"
style="background-image: url(https://images.unsplash.com/photo-1490474504059-bf2db5ab2348?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=0cad6d3de8adbdf6298d4ca5d094f8c6&auto=format&fit=crop&w=1350&q=80);">
<div class="item-tag">本日精選</div>
<div class="item-icon text-primary">
<i class="material-icons heart_border">
favorite_border
</i>
<i class="material-icons heart d-none">
favorite
</i>
</div>
</div>
<div class="row no-gutters item-info d-flex justify-content-center">
<div class="col item-name text-primary">保證不烙賽</div>
<div class="col item-price text-primary text-strong"><strong>NT$ 450</strong></div>
</div>
<a href="#" class="btn btn-block btn-primary-lighter item-cart">加入購物車</a>
</div>
</div>
</div>
</section>
<!-- 訂閱郵件 -->
<section class="py-5 bg-primary">
<div class="container">
<div class="row justify-content-center">
<!-- 上半 -->
<div
class="col-md-5 d-flex align-items-center justify-content-center justify-content-md-start mb-4 mb-md-0">
<img src="./images/logo-light.svg" width="40" height="40">
<span class="h4 text-white mb-0 mx-3">訂閱你我的甜蜜郵件</span>
</div>
<!-- 下半 -->
<div class="col-md-5">
<div class="custom-form d-flex">
<label for="subscription" class="material-icons custom-form-icon text-primary">
email
</label>
<input type="email" id="subscription" class="custom-form-input">
<button class="btn btn-accent btn-lg d-flex align-items-center" style="padding: 1rem 1rem;">
<i class="material-icons">
arrow_forward
</i>
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="py-4 bg-primary-lighter">
<div class="container">
<!-- 上半 -->
<div class="row justify-content-center">
<div class="col-md-5 d-flex flex-column justify-content-between">
<!-- 要用 div 包住不然圖片寬度會跑掉 -->
<div>
<img src="./images/logotype-sm-dark.svg" height="27">
</div>
<ul class="list-unstyled mt-5 text-primary">
<li>07-1234-5678</li>
<li><a href="mailto:[email protected]">[email protected]</a></li>
<li>800 高雄市新興區幸福路 520 號</li>
</ul>
</div>
<div class="col-md-5 d-none d-md-block text-right">
<img src="./images/sm-今天是個吃甜點的好日子.svg" width="60">
</div>
</div>
<!-- 下半 -->
<div class="row mt-4 justify-content-center">
<div class="col-md-5 mt-2">
<img src="./images/[email protected]" height="32" width="32">
<img src="./images/ic-facebook.svg" height="32" width="32">
</div>
<div class="col-md-5 text-md-right mt-2">
<span class="text-primary">© 2019 Sweetaste* All Rights Reserved</span>
</div>
</div>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous">
</script>
<!-- Custom JS -->
<script src="./js/all.js"></script>
</body>
</html>