/
aboutWATZ.php
596 lines (512 loc) · 16.7 KB
/
aboutWATZ.php
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
<?php require __DIR__ . '/__connect_db.php';
$pageName = 'aboutWATZ';
?>
<?php include __DIR__ . '/__html_head.php' ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css" />
<title>WATZ - 關於WATZ</title>
<style>
.container {
background: url(images/about-rain.svg) repeat-y;
background-size: 300px;
align-items: center;
}
.block1 {
height: 600vh;
width: 100vw;
position: relative;
}
.block1-fixed {
justify-content: center;
width: 100%;
}
.position-sticky {
position: sticky;
top: 140px;
}
@media screen and (max-width: 992px) {
.container {
background-image: unset;
}
.block1 {
margin-top: 0;
padding-bottom: 70px;
}
.block1-fixed {
flex-direction: column-reverse;
}
.position-sticky {
top: 70px;
}
}
.block-left {
height: 90%;
width: 55vw;
align-items: flex-end;
flex-direction: column;
}
.block-left li {
position: relative;
width: 45vw;
height: 20%;
margin: 5px 0;
}
.block-left .box-process {
align-items: center;
}
.block-left .process2 {
margin-left: 20%;
}
.block-left .process3 {
margin-left: 8%;
}
.block-left .process4 {
margin-left: 30%;
}
.block-left .process5 {
margin-left: 4%;
}
.block-left li .box-process-photo {
width: 14vh;
height: 14vh;
position: relative;
align-items: center;
justify-content: center;
}
.process-article {
padding-left: 10px;
max-width: 350px;
}
.process-article h3 {
color: #E1DDDD;
margin-bottom: 2px;
}
.process-article h4 {
font-weight: 400;
color: #E1DDDD;
}
.box-process-photo .img-about-select {
width: calc(12vh + 20px);
position: absolute;
opacity: 0;
}
.box-process.active .img-about-select {
opacity: 1;
transform: rotate(60deg);
}
.box-process.active .img-process {
opacity: 1;
}
.box-process.active h3 {
color: #404040;
}
.box-process.active h4 {
color: #404040;
}
.img-process {
width: 12vh;
height: 12vh;
border-radius: 50%;
overflow: hidden;
opacity: .2;
}
.img-process img {
width: 100%;
object-fit: cover;
}
@media screen and (max-width: 992px) {
.block-left {
flex-direction: row;
flex-wrap: wrap;
width: 100vw;
justify-content: space-between;
padding: 0 5vw;
}
.block-left .box-process {
margin-left: 0;
}
.block-left .process-article {
width: 40vw;
}
.block-left li h4 {
font-size: 1rem;
width: 100%;
}
}
@media screen and (max-width: 576px) {
.block1 {
align-items: center;
justify-content: center;
}
.block-left {
width: 90vw;
min-height: 80vh;
align-self: center;
}
.block-left li {
width: 100%;
}
.block-left li h4 {
font-size: .9rem;
}
.block-left .process-article {
width: 70vw;
}
.box-process.active .img-about-select {
display: none;
}
.img-process {
border-radius: 2px;
}
.process-article {
flex-direction: column;
}
}
/* block-right */
.block-right {
width: 45vw;
align-items: flex-start;
flex-direction: column;
}
.block-right .box-logo {
height: 110px;
margin-bottom: 30px;
align-self: center;
}
.box-logo img {
height: 100%;
margin: 0 10px;
}
.box-logo .img-logo-a {
--animate-delay: .5s;
}
.box-logo .img-logo-t {
--animate-delay: 1s;
}
.box-logo .img-logo-z {
--animate-delay: 1.5s;
}
.block-right ul {
flex-direction: column;
}
.block-right li {
width: 45vw;
align-items: center;
height: 12vh;
}
.block-right .line,
.block2 .line {
background: #E1DDDD;
height: .5px;
transform: rotate(-60deg);
}
.line.line1 {
width: 80px;
}
.line.line2 {
width: 60px;
margin-left: 40%;
}
.line.line3 {
width: 40px;
margin-left: 10%;
}
.line.line4 {
width: 100px;
margin-left: 50%;
}
.line.line5 {
width: 50px;
margin-left: 20%;
}
.block-right h3 {
color: #E1DDDD;
}
.block-right li.active .line {
background: #404040;
width: 120px;
}
.block-right li.active h3 {
color: #404040;
}
@media screen and (max-width: 1200px) {
.box-logo img {
height: 80%;
}
}
@media screen and (max-width: 996px) {
.block-right {
width: 100vw;
padding: 0 5vw;
}
.block-right .box-logo {
align-self: flex-end;
margin: 0;
}
.block-right ul {
width: 100vw;
flex-direction: row;
margin: 0;
}
.block-right li {
width: 18vw;
}
.block-right li .line {
width: 40px;
margin-left: 0;
}
.block-right li.active .line {
background: #404040;
width: 60px;
}
}
.picture {
background: url(images/cheetahfriends-03.png) right no-repeat;
height: 200px;
width: 60vw;
background-attachment: fixed;
background-size: contain;
align-self: flex-end;
margin: 5vh 5vw 5vh 0;
}
@media screen and (max-width: 992px) {
.picture {
height: 150px;
width: 80vw;
align-self: center;
margin: 5vh 0;
background-size: contain;
}
}
/* block2 */
.block2 {
width: 50vw;
min-height: calc(100vh - 160px);
flex-direction: column;
justify-content: center;
margin: 10vh 0;
opacity: 0;
}
.block2 .line-aboutWATZ {
background: #404040;
width: 200px;
}
.article {
margin-left: 10vw;
}
.block2 h3 {
color: #0388A6;
margin: 30px 0;
line-height: 50px;
}
.block2 h4 {
font-weight: 500;
line-height: 35px;
}
@media screen and (max-width: 992px) {
.block2 {
width: 70vw;
/* align-items: center; */
}
.block2 .line-aboutWATZ {
width: 100px;
}
.article {
margin-left: 5vw;
}
}
@media screen and (max-width: 576px) {
.block2 {
width: 90vw;
margin: 40px 0 0 0;
min-height: calc(100vh - 200px);
}
.article {
margin: 0 5vw;
}
.block2 h3 {
line-height: 25px;
}
.block2 h4 {
line-height: 20px;
}
}
</style>
<div class="container flex">
<?php include __DIR__ . '/__navbar.php' ?>
<?php include __DIR__ . '/__html_btn-top.php' ?>
<div class="block1">
<div class="block1-fixed flex position-sticky">
<ul class="block-left flex animate__animated animate__slideInLeft animate__delay-2s">
<li class="">
<div class="process1 box-process flex active" id="process1">
<div class="box-process-photo flex">
<img class="img-about-select transition" src="images/about-select.svg" alt="">
<div class="img-process transition">
<img src="images/process1.jpg" alt="">
</div>
</div>
<div class="process-article flex">
<h3 class="mobile-show transition">台灣製造</h3>
<h4 class="transition">『社頭』一直以來是台灣最強揚名世界的棉襪產地,WATZ生產於在地經營60年老字號工廠。</h4>
</div>
</div>
</li>
<li class="">
<div class="process2 box-process flex" id="process2">
<div class="box-process-photo flex">
<img class="img-about-select transition" src="images/about-select.svg" alt="">
<div class="img-process transition">
<img src="images/process2.jpg" alt="">
</div>
</div>
<div class="process-article flex">
<h3 class="web-none transition">織法</h3>
<h4 class="transition">精細裁縫,不會產生足部的壓迫感,均勻的彈力編織,防滑且不易鬆脫。</h4>
</div>
</div>
</li>
<li class="">
<div class="process3 box-process flex" id="process3">
<div class="box-process-photo flex">
<img class="img-about-select transition" src="images/about-select.svg" alt="">
<div class="img-process transition">
<img src="images/process3.jpg" alt="">
</div>
</div>
<div class="process-article flex">
<h3 class="web-none transition">無毒</h3>
<h4 class="transition">經過檢驗的紗線,不含偶氮染料,水洗不退色,歐盟OEKO-TEX無毒認證。</h4>
</div>
</div>
</li>
<li class="">
<div class="process4 box-process flex" id="process4">
<div class="box-process-photo flex">
<img class="img-about-select transition" src="images/about-select.svg" alt="">
<div class="img-process transition">
<img src="images/process4.jpg" alt="">
</div>
</div>
<div class="process-article flex">
<h3 class="web-none transition">質感</h3>
<h4 class="transition">堅持使用有口碑的台灣機台製作,製作襪子的過程中,提升襪子品質。</h4>
</div>
</div>
</li>
<li class="">
<div class="process5 box-process flex" id="process5">
<div class="box-process-photo flex">
<img class="img-about-select transition" src="images/about-select.svg" alt="">
<div class="img-process transition">
<img src="images/process5.jpg" alt="">
</div>
</div>
<div class="process-article flex">
<h3 class="web-none transition">環保</h3>
<h4 class="transition">所有產品皆使用天然及可回收材質,不過度包裝。</h4>
</div>
</div>
</li>
</ul>
<div class="block-right flex mobile-none">
<div class="box-logo flex">
<img class="animate__animated animate__bounceIn img-logo-w" src="images/logo-w.svg" alt="">
<img class="animate__animated animate__bounceIn animate__delay-1s img-logo-a" src="images/logo-a.svg" alt="">
<img class="animate__animated animate__bounceIn animate__delay-1s img-logo-t" src="images/logo-t.svg" alt="">
<img class="animate__animated animate__bounceIn animate__delay-1s img-logo-z" src="images/logo-z.svg" alt="">
</div>
<ul class="animate__animated animate__slideInRight animate__delay-2s flex">
<li class="flex active" id="processText1">
<div class="line line1 transition"></div>
<h3 class="transition">台灣製造</h3>
</li>
<li class="flex" id="processText2">
<div class="line line2 transition"></div>
<h3 class="transition">織法</h3>
</li>
<li class="flex" id="processText3">
<div class="line line3 transition"></div>
<h3 class="transition">無毒</h3>
</li>
<li class="flex" id="processText4">
<div class="line line4 transition"></div>
<h3 class="transition">質感</h3>
</li>
<li class="flex" id="processText5">
<div class="line line5 transition"></div>
<h3 class="transition">環保</h3>
</li>
</ul>
</div>
</div>
</div>
<div class="picture mobile-none" id="picture"></div>
<div class="block2 flex" id="block2">
<div class="title flex">
<div class="line line-aboutWATZ"></div>
<h2>關於WATZ</h2>
</div>
<article class="article">
<h3>不管你擁有的是什麼樣的宇宙觀,<br> 對生活上的小細節用心,
<br> 就能把以自己為中心的世界活得更寬闊。
<br>
</h3>
<h4>WATZ創立於2019年,<br> 一群逛襪子會逛到少女心噴發的女子們。
<br><br> 走在街道上,什麼樣的單品最容易讓人眼睛為之一亮?
<br> 「我想...是襪子吧?」我說。
<br><br> 身處在快時尚的年代,形形色色的人們幾乎都穿上了襪子,然而,它卻往往都被單調地打發。襪子是穿搭中最為人所忽略的單品。所以我想著,穿上一雙精心搭配的襪子吧!於此同時,所有的穿搭才能真正被賦予生命。
<br><br> 在這五花八門的人群中,WATZ邀請你穿出自己的細膩之處,活出專屬於你的小宇宙。
</h4>
</article>
</div>
<?php include __DIR__ . '/__html_footer.php' ?>
</div>
<?php include __DIR__ . '/__scripts.php' ?>
<script>
if ($(window).width() < 576) {
$("ul.block-left").removeClass("animate__animated");
}
$(window).scroll(function() {
let scrollTop = $(this).scrollTop();
let picture = $("#picture").offset().top;
if (scrollTop < vh) {
$("#process1").addClass("active");
$("#processText1").addClass("active");
} else {
$("#process1").removeClass("active");
$("#processText1").removeClass("active");
}
if (scrollTop > vh && scrollTop < 2 * vh) {
$("#process2").addClass("active");
$("#processText2").addClass("active");
} else {
$("#process2").removeClass("active");
$("#processText2").removeClass("active");
}
if (scrollTop > 2 * vh && scrollTop < 3 * vh) {
$("#process3").addClass("active");
$("#processText3").addClass("active");
} else {
$("#process3").removeClass("active");
$("#processText3").removeClass("active");
}
if (scrollTop > 3 * vh && scrollTop < 4 * vh) {
$("#process4").addClass("active");
$("#processText4").addClass("active");
} else {
$("#process4").removeClass("active");
$("#processText4").removeClass("active");
}
if (scrollTop > 4 * vh && scrollTop < 5 * vh) {
$("#process5").addClass("active");
$("#processText5").addClass("active");
} else {
$("#process5").removeClass("active");
$("#processText5").removeClass("active");
}
if (scrollTop > picture - 200) {
$("#block2").css("opacity", "1").addClass("animate__animated animate__fadeIn");
}
})
</script>
<?php require __DIR__ . '/__html_foot.php' ?>