/
qna.html
774 lines (649 loc) · 21.6 KB
/
qna.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
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
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>草上奔牧場 / Q&A</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&family=Noto+Sans+JP&family=Noto+Sans+TC:wght@400;500;700;900&display=swap">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css" />
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<style>
* {
box-sizing: border-box;
}
body {
font-family: 'Noto Sans JP', sans-serif;
margin: 0;
letter-spacing: 2px;
overflow: auto;
}
.wrapper {
width: 100vw;
overflow: hidden;
}
a {
color: #4C4948;
text-decoration: none;
}
h1 {
margin: 0;
color: #4C4948;
font-size: 2.6rem;
cursor: default;
}
h3 {
margin: 0;
font-size: 2rem;
cursor: default;
}
h4 {
margin: 0;
font-size: 1.6rem;
cursor: default;
}
p {
color: #4C4948;
margin: 0;
font-size: 1.4rem;
cursor: default;
}
.transition {
transition: 0.4s;
}
.flex {
display: flex;
}
ul,
li {
list-style: none;
padding: 0;
margin: 0;
}
.pad {
display: none;
}
.mobile {
display: none;
}
.pointer {
cursor: pointer;
}
@media screen and (max-width: 1300px) {
h1 {
font-size: 2rem;
}
h3 {
font-size: 1.6rem;
}
h4 {
font-size: 1.2rem;
}
p {
font-size: 1rem;
}
}
@media screen and (max-width: 768px) {
.web {
display: none;
}
.pad {
display: unset;
}
}
@media screen and (max-width: 576px) {
.mobile {
display: unset;
}
}
/* .box-fixed :固定的nav.cart.ig.fb *-----------Start*/
nav {
justify-content: flex-end;
position: fixed;
top: 0;
right: 0;
z-index: 2;
}
.menu {
padding: 1rem;
display: inline-block;
position: relative;
cursor: pointer;
}
.box-bar {
z-index: 1;
}
.box-bar:hover,
.icon:hover {
transform: scale(1.1);
}
.menu .bar {
width: 36px;
height: 6px;
background: #4C4948;
margin: 6px 0;
border-radius: 3px;
z-index: 1;
}
.current .bar1 {
-webkit-transform: rotate(-45deg) translate(-9px, 7px);
transform: rotate(-45deg) translate(-9px, 7px);
}
.current .bar2 {
opacity: 0;
}
.current .bar3 {
-webkit-transform: rotate(45deg) translate(-9px, -8px);
transform: rotate(45deg) translate(-9px, -8px);
}
.menu-bg {
position: absolute;
background: #929D6A;
height: 100vh;
width: 100vw;
z-index: -1;
top: 0;
right: 0;
transform: translateX(100vw);
opacity: .95;
}
.menu.current .menu-bg {
transform: translateX(0);
}
.menu ul {
position: absolute;
top: 3.5rem;
right: 0;
writing-mode: vertical-rl;
opacity: 0;
overflow: hidden;
height: 100vh;
width: 0;
flex-direction: column;
}
.menu.current ul {
opacity: 1;
width: 200px;
height: 100vh;
padding: 0 1rem;
}
.menu ul li {
cursor: pointer;
font-size: 1rem;
padding: .5rem;
font-weight: 500;
letter-spacing: 2px;
height: 40vh;
}
.menu ul li:hover {
background: #ffffff7c;
}
.menu ul li.menu-logo:hover {
background: unset;
}
.menu ul li:hover a {
color: #000;
}
@media screen and (max-width: 768px) {
.menu ul {
writing-mode: unset;
align-items: center;
text-align: center;
}
.menu.current ul {
padding: 0;
width: 100vw;
text-align: center;
}
.menu ul li.menu-logo {
width: 50vw;
height: 50vw;
overflow: hidden;
}
.menu-logo img {
width: 100%;
height: 100%;
object-fit: contain;
}
.menu ul li {
height: 10vh;
width: 100vw;
line-height: 10vh;
font-size: 1.2rem;
color: #000;
}
}
.icon {
width: 36px;
height: 36px;
margin-top: 1rem;
}
.icon-fixed {
z-index: 2;
position: fixed;
left: 2vw;
bottom: 5vh;
flex-direction: column;
align-items: center;
}
.icon-fixed a {
writing-mode: vertical-rl;
}
.icon-fixed .line {
height: 20vh;
width: 0;
border-right: 2px solid #4C4948;
margin-top: 10px;
}
.btn-gotop {
position: fixed;
right: 2vw;
bottom: 5vh;
cursor: pointer;
opacity: 0;
}
/* .box-fixed :固定的nav.cart.ig.fb *-----------END*/
.block-main {
background: #F1F2CD;
height: 100vh;
margin: 0;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
}
header {
align-items: center;
width: 600px;
position: relative;
}
header .logo {
height: 150px;
}
header .logo-text {
height: 100px;
margin-left: 10px;
z-index: 1;
}
header .logo-flower {
position: absolute;
height: 120px;
right: -50px;
bottom: -20px;
}
@media screen and (max-width:768px) {
header {
display: flex;
justify-content: center;
height: 20vh;
width: 80vw;
padding-top: 3rem;
margin-bottom: 1.5rem;
}
header .logo {
display: none;
}
header .logo-text {
width: 70vw;
z-index: 1;
}
header .logo-flower {
position: absolute;
width: 80vw;
right: 0;
bottom: -10%;
}
}
.block-qna {
position: relative;
width: 1000px;
}
.block-qna h4 {
line-height: 40px;
cursor: pointer;
color: #fff;
background: #929D6A;
padding: 0 15px;
margin: 15px 0;
height: 40px;
border-radius: 20px;
}
.block-qna h4:hover {
box-shadow: 0 2px 2px #656d4a;
}
.block-qna p {
transition: .4s;
opacity: 0;
padding: 20px 40px;
width: 600px;
height: 400px;
right: 0;
top: 0;
background: #D08254;
position: absolute;
border-radius: 50px;
line-height: 2rem;
}
.block-qna p span {
color: #fff;
}
.block-qna li.current p {
opacity: 1;
}
@media screen and (max-width: 1050px) {
.block-qna {
width: 800px;
}
.block-qna p {
width: 500px;
height: 350px;
}
}
@media screen and (max-width: 992px) {
.block-qna {
width: 700px;
}
.block-qna p {
width: 400px;
height: 350px;
}
}
@media screen and (max-width: 768px) {
.block-main {
height: 100%;
}
.block-qna {
width: 75vw;
}
.block-qna li {
flex-direction: column;
}
.block-qna p {
opacity: 1;
position: unset;
width: 75vw;
height: 100%;
}
}
.block-contact {
height: 80vh;
background: #F1F2CD;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.logo-card {
z-index: 1;
width: 60vh;
border-radius: 20%;
overflow: hidden;
}
.logo-card img {
width: 100%;
height: 100%;
object-fit: cover;
}
.contact-r {
z-index: 1;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
margin-left: 10vw;
height: 60vh;
}
.contact-r ul {
flex-direction: column;
justify-content: space-evenly;
height: 50vh;
}
.contact-wrap {
border-radius: 35px;
width: 400px;
height: 70px;
background: #E9D900;
align-items: center;
}
.icon-nohover {
margin: 0 1rem 0 1.5rem;
width: 36px;
height: 36px;
}
.img-grass-rg {
position: absolute;
right: 0;
bottom: -10px;
height: 80vh;
}
@media screen and (max-width: 992px) {
.contact-r {
height: 300px;
}
.contact-wrap {
height: 55px;
width: 320px;
}
}
@media screen and (max-width: 768px) {
.block-contact {
height: 100vh;
flex-direction: column;
align-items: center;
}
.logo-card {
width: 50vh;
height: 50vh;
margin-top: 30px;
}
.contact-r {
height: 250px;
margin: 30px 0;
}
}
@media screen and (max-width: 576px) {
.block-contact {
height: 90vh;
}
.logo-card {
width: 40vh;
height: 40vh;
margin-top: 30px;
}
.contact-r {
justify-content: space-between;
}
}
footer {
background: #929D6A;
height: 20vh;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
color: #fff;
}
@media screen and (max-width: 576px) {
footer {
height: 10vh;
}
}
.animate__animated.animate__bounceInLeft {
--animate-duration: 1s;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="box-fixed">
<nav class="flex">
<div class="cart transition"><a href=""><img class="icon transition" src="images/icon-cart.svg"
alt=""></a>
</div>
<div class="menu transition">
<div class="box-bar transition">
<div class="bar bar1 transition"></div>
<div class="bar bar2 transition"></div>
<div class="bar bar3 transition"></div>
</div>
<div class="menu-bg transition pad"></div>
<ul class="transition flex">
<a href="index.html">
<li class="menu-logo pad"><img src="images/logo-kv.svg" alt=""></li>
</a>
<a href="index.html" class="transition">
<li>草上奔 RUNNING EGG</li>
</a>
<a href="farm.html" class="transition">
<li>關於牧場 FARM</li>
</a>
<a href="product.html" class="transition">
<li>產品組合 PRODUCT</li>
</a>
<a href="qna.html" class="transition">
<li>問與答 Q&A</li>
</a>
</ul>
</div>
</nav>
<div class="icon-fixed flex">
<a href="qna.html">問與答 Q&A</a>
<div class="line"></div>
<a href="https://www.instagram.com/running.egg/"><img class="icon transition"
src="images/icon-instagram.svg" alt=""></a>
<a href="https://www.facebook.com/runninghen.egg"><img class="icon transition"
src="images/icon-facebook.svg" alt=""></a>
</div>
<div class="btn-gotop transition" id="goTop">
<a><img src="images/icon-gotop.svg" alt=""></a>
</div>
</div>
<div class="block-main flex">
<header class="transition">
<a href="index.html" class="flex">
<img class="web logo animate__animated animate__fadeInLeft" src="images/logo-kv.svg" alt="">
<img class="logo-text animate__animated animate__fadeInBottomRight" src="images/logo-text-kv.svg"
alt="">
<img class="logo-flower animate__animated animate__fadeIn" src="images/flower-below.svg" alt="">
</a>
</header>
<div class="block-qna flex">
<ul>
<li class="flex">
<h4 class="transition animate__animated animate__bounceInLeft">蛋保存方式與期限?</h4>
<p>涼藏 可存放<span>10天</span><br>
(室溫25℃以下避免陽光直射)<br><br>
冰箱冷藏 可存放<span>25天</span></p>
</li>
<li class="flex">
<h4 class="transition animate__animated animate__bounceInLeft ">如何分辨新鮮雞蛋?</h4>
<p>新鮮雞蛋有三層,分別為:<br><br>
a.健康可拎起的立體蛋黃<br>
b.果凍般豎立的濃厚蛋白<br>
c.比例不高的稀薄蛋白<br><br>
濃厚蛋白會隨著時間慢慢消失,<br>
因此若購買的雞蛋<span>沒有濃厚蛋白</span>,<br>
<span>代表雞蛋不太新鮮</span>。
</p>
</li>
<li class="flex">
<h4 class="transition animate__animated animate__bounceInLeft ">什麼是初卵?</h4>
<p>母雞<span>開始生蛋的三個月內</span>所產出的雞蛋為初卵。<br>
初卵重量約為48-55g,<br>
較一般雞蛋小顆,<br>
<span>蛋白特別厚</span>,數量稀少。
</p>
</li>
<li class="flex">
<h4 class="transition animate__animated animate__bounceInLeft ">什麼是雙黃蛋?</h4>
<p>剛開始產蛋的母雞由於剛進入產蛋期,<br>
每日排卵的時間尚不穩定,<br>
偶爾發生<span>前後兩顆卵排出時間較接近</span>,<br>
就會導致母雞產出雙蛋黃的雞蛋。
</p>
</li>
<li class="flex">
<h4 class="transition animate__animated animate__bounceInLeft ">蛋殼上怎麼有斑點?</h4>
<p>因為雞蛋的蛋殼成形需要21小時,<br>
而鈣沉積與色素降解又在此階段完成,<br>
於是形成了蛋殼上的斑點,是<span>屬於自然現象</span>。
</p>
</li>
</ul>
</div>
</div>
<div class="block-contact flex">
<img class="logo-card" id="logoCard" src="images/logo-card.svg" alt="">
<div class="contact-r flex" id="contactRight">
<ul class="flex">
<li class="contact-wrap flex"><img class="icon-nohover" src="images/icon-line.svg" alt="">
<p>ID:running.egg</p>
</li>
<li class="contact-wrap flex"><img class="icon-nohover" src="images/icon-phone.svg" alt="">
<p>0905-001589</p>
</li>
<a href="https://goo.gl/maps/amxN2QKP7TmFYtwm9">
<li class="contact-wrap flex pointer"><img class="icon-nohover icon transition"
src="images/icon-address.svg" alt="">
<p class="pointer">台中市豐原區水源路631號</p>
</li>
</a>
</ul>
</div>
<img class="img-grass-rg" src="images/grass-r-g.svg" alt="">
</div>
<footer class="flex">
© 20200616 Emma Hung
</footer>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script>
$(".menu").click(function () {
$(this).toggleClass('current');
});
// goTop()------------------------Start--------------
let vh = $(".block-contact").offset().top;
console.log(vh)
$("#goTop").click(function () {
$("html").animate({
scrollTop: 0
})
});
$(window).scroll(function () {
let scrollTop = $(this).scrollTop();
// console.log(scrollTop)
if (scrollTop < vh) {
$("#goTop").css("opacity", "0")
}
else {
$("#goTop").css("opacity", "1")
}
})
// goTop()------------------------End--------------
$(window).scroll(function () {
let scrollTop = $(this).scrollTop();
// console.log(scrollTop)
if (scrollTop < vh) {
$("#goTop").css("opacity", "0")
}
else {
$("#goTop").css("opacity", "1")
}
})
$(".block-qna h4").click(function () {
$(this).closest("li").toggleClass('current')
.closest("li").siblings().removeClass('current')
});
$("#logoCard").css("transform", "translateY(-100vh)").css("opacity", "0")
$("#contactRight").css("transform", "translateY(-100vh)").css("opacity", "0")
$(window).scroll(function () {
let scrollTop = $(this).scrollTop();
let blockContactTop = $(".block-main").offset().top
if (scrollTop > blockContactTop + 200) {
$("#logoCard").css("transform", "translateY(0)").css("transition", "1.5s").css("opacity", "1")
$("#contactRight").css("transform", "translateY(0)").css("transition", "1.5s").css("opacity", "1")
}
})
</script>
</body>
</html>