-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
316 lines (309 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
<!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">
<title>星巴克 | 用每一杯咖啡传递星巴克独特的咖啡体验</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="css/iconfont.css">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<div class="container-fluid">
<div class="row justify-content-end">
<div class="col-lg-4 border-right leftCon position-fixed">
<header class="navbar d-none d-sm-flex px-0 px-lg-3 py-3 py-lg-4">
<a class="navbar-brand">
<img src="images/logo.svg" alt="" width="36">
</a>
<ul class="nav mr-auto">
<li class="nav-item"><a href="#" class="nav-link text-dark font-weight-bold">门店</a></li>
<li class="nav-item"><a href="#" class="nav-link text-dark font-weight-bold">我的账户</a></li>
<li class="nav-item"><a href="#" class="nav-link text-dark font-weight-bold">菜单</a></li>
</ul>
<span class="iconfont icon-menu" id="showMenu"></span>
</header>
<div class="body d-flex align-items-center">
<div class="px-lg-5 mx-lg-auto">
<h4 class="py-3">心情惬意,来杯咖啡吧 ☕</h4>
<div class="my-3 d-none d-sm-block">
<a href="#">
<span class="iconfont icon-menu menu1"></span>
<span>登入</span>
</a>
<a type="button" class="btn btn-outline-success ml-3 reset">注册</a>
</div>
</div>
</div>
<!-- menu -->
<div class="menu d-flex justify-content-between bg-white flex-column hide">
<header class="navbar d-flex px-0 px-lg-3 py-3 py-lg-4">
<a class="navbar-brand">
<img src="images/logo.svg" alt="" width="36">
</a>
<span class="iconfont icon-menu" id="closeMenu"></span>
</header>
<div>
<ul class="list-unstyled mx-sm-5 pl-sm-5">
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">门店</a></li>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">星享俱乐部</a></li>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">菜单</a></li>
<hr>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">星巴克移动应用</a></li>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">星礼卡</a></li>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">星巴克臻选™</a></li>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">啡快™ - 在线点 到店取</a></li>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">专星送™</a></li>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">咖啡星讲堂</a></li>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">上海烘焙工坊</a></li>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">关于星巴克</a></li>
<li><a href="#" class="font-weight-bold text-dark py-2 d-block">帮助中心</a></li>
<hr>
</ul>
<div class="my-3 mx-sm-5 pl-sm-5">
<a href="#">
<span class="iconfont icon-menu menu1"></span>
<span>登入</span>
</a>
<a type="button" class="btn btn-outline-success ml-3 reset">注册</a>
</div>
</div>
<footer class="mx-sm-5 pl-sm-5 pb-5">
<div>
<a href="#">English</a> | <a href="#">隐私政策</a> | <a href="#">使用条款</a> |
</div>
<div>
<a href="#"><img src="images/icpicon.png" width="10" height="10" alt="">沪公网安备
31010402000318号</a> | <a href="#">沪ICP备17003747号</a>
</div>
</footer>
</div>
</div>
<div class="col-lg-8 bg-light">
<div class="row slide-f">
<div class="carousel slide" id="pic" data-ride='carousel'>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="images/kv1.jpg" class="img-fluid">
</div>
<div class="carousel-item">
<img src="images/kv2.jpg" class="img-fluid">
</div>
<div class="carousel-item">
<img src="images/kv3.jpg" class="img-fluid">
</div>
<div class="carousel-item">
<img src="images/kv4.jpg" class="img-fluid">
</div>
</div>
<!-- jiantou -->
<!-- <a href="#pic" class="carousel-control-prev" data-slide='prev'>
<span class="iconfont icon-menu"></span>
</a> -->
<a href="#pic" class="carousel-control-next next-btn" data-slide='next'>
<span class="iconfont icon-menu"></span>
</a>
<!-- dian -->
<!-- <ul class="carousel-indicators">
<li data-target="#pic" data-slide-to='0' class="active"></li>
<li data-target="#pic" data-slide-to='1'></li>
<li data-target="#pic" data-slide-to='2'></li>
<li data-target="#pic" data-slide-to='3'></li>
</ul> -->
</div>
</div>
<!-- 三张图 -->
<div class="row py-5 t-pic">
<div class="col-sm-4 my-2 my-sm-0">
<a href="#">
<img src="images/img_01.jpg" class="img-fluid img-thumbnail">
</a>
</div>
<div class="col-sm-4 my-2 my-sm-0">
<a href="#">
<img src="images/img_02.jpg" class="img-fluid img-thumbnail">
</a>
</div>
<div class="col-sm-4 my-2 my-sm-0">
<a href="#">
<img src="images/img_03.jpg" class="img-fluid img-thumbnail">
</a>
</div>
</div>
<!-- 星享俱乐部 -->
<div class="row p-5 bg-white align-items-center text-center text-sm-left start">
<div class="col-sm-5 ">
<h2>星享俱乐部</h2>
<p class="py-3 text-muted">开启您的星享之旅,星星越多、会员等级越高、好礼越丰富。<a href="#">了解更多 ›</a></p>
<div>
<button class="btn btn-outline-success btn-lg">注册</button>
<button class="btn btn-outline-success btn-lg">登录</button>
</div>
</div>
<div class="col mt-5 text-sm-right mt-sm-0">
<img src="images/logo-msr-new.svg" class="img-fluid" alt="">
</div>
</div>
<!-- 星巴克精选 -->
<div class="row mb-5 best">
<div class="col-12 text-center">
<h3 class="my-4 text-dark">星巴克精选</h3>
<p class="text-muted">在星巴克天猫旗舰店发现更多咖啡心意</p>
</div>
<div class="col-12">
<ul class="row list-unstyled justify-content-around px-5">
<li class="col-6 col-sm-3">
<a href="#" class="text-center px-2 bg-white rounded d-inline-block">
<img src="images/tmall-card-01.png" class="img-fluid position-absolut" alt="">
<h4 class="my-2 text-dark font-weight-bold mt-4 mb-3">会员星礼包</h4>
<p class="text-muted">星享卡新升级<br>更多心意好礼</p>
<p class="caption py-3">了解更多 ›</p>
</a>
</li>
<li class="col-6 col-sm-3">
<a href="#" class="text-center px-2 bg-white rounded d-inline-block">
<img src="images/tmall-card-03.png" class="img-fluid position-absolut" alt="">
<h4 class="my-2 text-dark font-weight-bold mt-4 mb-3">星礼卡</h4>
<p class="text-muted">用一份心礼<br>让心意相随</p>
<p class="caption py-3">了解更多 ›</p>
</a>
</li>
<li class="col-6 col-sm-3">
<a href="#" class="text-center px-2 bg-white rounded d-inline-block">
<img src="images/tmall-card-02.png" class="img-fluid position-absolut" alt="">
<h4 class="my-2 text-dark font-weight-bold mt-4 mb-3">电子产品券</h4>
<p class="text-muted">心意<br>从这一杯开始</p>
<p class="caption py-3">了解更多 ›</p>
</a>
</li>
<li class="col-6 col-sm-3">
<a href="#" class="text-center px-2 bg-white rounded d-inline-block">
<img src="images/tmall-card-04.png" class="img-fluid position-absolut" alt="">
<h4 class="my-2 text-dark font-weight-bold mt-4 mb-3">咖啡生活</h4>
<p class="text-muted">星巴克<br>用心制作</p>
<p class="caption py-3">了解更多 ›</p>
</a>
</li>
</ul>
</div>
</div>
<!-- -->
<div class="row bg-white overflow-hidden mb-5 pb-5 swiper2">
<div class="col-12 text-center">
<h3 class="my-4 text-dark">1912 派克街 | 咖啡星讲堂</h3>
<p class="text-muted">了解更多星巴克咖啡文化</p>
</div>
<div class="col-12">
<div class="scroll pl-3">
<ul class="row d-flex justify-content-around px-0">
<li class="card col-12 col-sm-3 mx-4 px-0">
<a href="#"><img src="images/scroll_img_01.jpg" class="card-img-top" alt=""></a>
<div class="card-body">
<h4 class="card-title mb-0">咖啡的起源与培植</h4>
</div>
<span class="position-absolute text-white px-3 py-1">咖啡知识</span>
</li>
<li class="card col-12 col-sm-3 mx-4 px-0">
<a href="#"><img src="images/scroll_img_02.jpg" class="card-img-top" alt=""></a>
<div class="card-body">
<h4 class="card-title mb-0">咖啡品鉴</h4>
</div>
<span class="position-absolute text-white px-3 py-1">咖啡调制</span>
</li>
<li class="card col-12 col-sm-3 mx-4 px-0">
<a href="#"><img src="images/scroll_img_03.jpg" class="card-img-top" alt=""></a>
<div class="card-body">
<h4 class="card-title mb-0">咖啡知识</h4>
</div>
<span class="position-absolute text-white px-3 py-1">咖啡烘焙</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<footer class="fixed-bottom d-sm-none bg-white footer">
<ul class="d-flex justify-content-around px-0">
<li class="text-center">
<a href="#" class="text-muted active">
<span class="iconfont icon-menu d-block"></span>
<span>首页</span>
</a>
</li>
<li class="text-center">
<a href="#" class="text-muted">
<span class="iconfont icon-menu d-block"></span>
<span>门店</span>
</a>
</li>
<li class="text-center">
<a href="#" class="text-muted">
<span class="iconfont icon-menu d-block"></span>
<span>我的账户</span>
</a>
</li>
<li class="text-center">
<a href="#" class="text-muted">
<span class="iconfont icon-menu d-block"></span>
<span>菜单</span>
</a>
</li>
<li class="text-center showMenu">
<a href="#" class="text-muted">
<span class="iconfont icon-menu d-block"></span>
<span>更多</span>
</a>
</li>
</ul>
</footer>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script>
$('#closeMenu').on('click', function () {
$('.menu').removeClass('show').addClass('hide');
$('#pic').css('visibility', 'visible');
shadowMenu();
})
$('#showMenu').on('click', function () {
$('.menu').removeClass('hide').addClass('show');
// $('#pic').css('visibility', 'hidden');
shadowMenu();
})
$(window).resize(shadowMenu);
function shadowMenu() {
if ($(window).innerWidth <= 991.98 && $('.menu').hasClass('show')) {
$('body').css('overflow', 'hidden');
} else {
$('body').css('overflow', 'auto');
}
}
// next-btn
$('#pic .next-btn').hover(function () {
$('#pic .next-btn span').css({ marginLeft: '15px' })
}, function () {
$('#pic .next-btn span').css({ marginLeft: '0' });
})
$('#pic .next-btn').on('mousedown', function () {
$('#pic .next-btn span').css({ marginLeft: '20px' })
$(this).on('mouseup', function () {
$('#pic .next-btn span').css({ marginLeft: '0' });
})
})
// footer
// $('.footer a').each
$('.footer ul li').each(function (index, ele) {
$(ele).on('click', function (e) {
e.preventDefault();
$('.footer .active').removeClass('active');
$(ele).find('a').addClass('active');
})
})
</script>
</body>
</html>