/
farm.html
894 lines (746 loc) · 24.7 KB
/
farm.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
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>草上奔牧場 / 牧場介紹</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link
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"
rel="stylesheet">
<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;
}
.wrapper {
width: 100vw;
overflow: hidden;
}
body {
font-family: 'Noto Sans JP', sans-serif;
margin: 0;
letter-spacing: 2px;
width: 100vw;
}
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;
}
@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;
}
}
.block-top {
background: #F1F2CD;
height: 100vh;
margin: 0;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
overflow: hidden;
}
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;
/* margin-bottom: 15px; */
}
header .logo {
display: none;
}
header .logo-text {
width: 70vw;
margin-left: 10px;
z-index: 1;
}
header .logo-flower {
position: absolute;
width: 80vw;
right: 0;
bottom: -10%;
}
}
/* .box-fixed :固定的nav.cart.ig.fb *-----------Start*/
.box-fixed {
position: fixed;
z-index: 2;
}
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;
}
@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-photo {
justify-content: center;
}
.block-photo li {
height: 44vh;
width: 33vh;
align-items: center;
justify-content: center;
position: relative;
background: #fff;
border-radius: 20px;
overflow: hidden;
margin: 0 30px;
}
.photoWrapper {
width: 100%;
height: 100%;
}
.block-photo img {
object-fit: cover;
width: 100%;
height: 100%;
opacity: 1;
}
.block-photo li:hover img {
opacity: .2;
}
.block-photo li:hover p {
opacity: 1;
}
.block-photo p {
text-align: center;
opacity: 0;
width: 30vh;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.block-top .img-freerange {
width: 60vw;
}
/* block-icon----------start */
.block-icon {
background: #F1F2CD;
overflow: hidden;
width: 100vw;
/* height: 100vh; */
}
/* card-icon-------start */
.card-icon {
margin: 3vh 3vw;
flex-direction: column;
align-items: center;
}
.card-icon .icon-wrapper {
width: 100px;
height: 100px;
background: #EDEB3F;
border-radius: 50%;
justify-content: center;
align-items: center;
}
.card-icon img {
width: 60px;
}
.card-icon h2 {
margin: 0;
font-size: 1.4rem;
font-weight: 600;
}
/* card-icon-------------end */
.block-icon ul {
position: relative;
height: 100vh;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
}
.block-icon li {
width: 900px;
z-index: 1;
height: 160px;
background: #ffffffde;
justify-content: space-evenly;
align-items: center;
border: 6px solid #EDEB3F;
border-radius: 60px;
}
.block-icon .line {
height: 120px;
width: 0;
border-left: 6px solid #EDEB3F;
}
.block-icon p {
width: 600px;
}
.block-icon .img-tree-lg {
position: absolute;
left: 0;
bottom: 0px;
height: 80vh;
}
@media screen and (max-width: 992px) {
.block-photo li {
margin: 0 2vw;
}
.block-icon ul {
flex-direction: row;
flex-wrap: wrap;
height: 130vh;
}
.block-icon li {
width: 380px;
height: 380px;
flex-direction: column;
}
.block-icon .line {
height: 0;
width: 300px;
border-bottom: 6px solid #EDEB3F;
}
.block-icon p {
width: 290px;
height: 190px;
}
}
@media screen and (max-width: 768px) {
.card-icon {
margin: 3vw;
}
.block-icon ul {
height: 150vw;
}
.block-icon li {
width: 80vw;
height: 30vw;
}
.block-icon .line {
width: 70vw;
border-bottom: 6px solid #EDEB3F;
}
.block-icon p {
width: 66vw;
height: 50vw;
}
.block-icon .img-tree-lg {
width: 80vw;
bottom: 0;
}
.block-photo {
width: 100vw;
height: 60vh;
overflow: hidden;
position: relative;
}
.block-photo ul {
position: absolute;
left: 0;
transition: 1s;
}
.block-photo li {
margin: 0;
width: 100vw;
height: 60vh;
position: unset;
flex-direction: column;
align-items: center;
justify-content: flex-start;
background: unset;
}
.block-photo .photoWrapper {
width: 40vw;
height: 40vw;
border-radius: 50%;
overflow: hidden;
}
.block-photo p {
margin-top: 5vh;
position: static;
width: 65vw;
opacity: 1;
transform: translate(0);
}
.block-photo li:hover img {
opacity: 1;
}
.block-icon p {
text-align: center;
}
.slideDots {
justify-content: center;
flex-direction: row;
}
.slideDots li {
width: 15px;
height: 15px;
background: #929D6A;
border-radius: 50%;
margin: 5px 5px;
}
.slideDots li.current {
background: #D08254;
}
.arrow-btn {
top: 0;
bottom: 0;
width: 48px;
font-size: 40px;
opacity: .6;
cursor: pointer;
position: absolute;
justify-content: center;
align-items: center;
color: #D08254;
}
.arrow-left {
left: 8vw;
}
.arrow-right {
right: 8vw;
}
}
@media screen and (max-width: 576px) {
.block-icon ul {
height: 340vw;
}
.block-icon li {
width: 80vw;
height: 80vw;
}
.block-photo .photoWrapper {
width: 50vw;
height: 50vw;
border-radius: 50%;
overflow: hidden;
}
}
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;
}
}
</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="farm.html">關於牧場 FARM</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-top 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-photo flex" id="blockPhoto">
<ul class="flex">
<li class="flex">
<div class="photoWrapper"><img class="transition" src="images/farmphoto01.jpg" alt=""></div>
<p class="transition">超越歐盟2025年標準,摒棄在台灣達99%的格子籠飼養方式。300坪大的運動場,阿奔們每天開心的在草上奔跑著!</p>
</li>
<li class="flex">
<div class="photoWrapper"><img class="transition" src="images/farmphoto02.jpg" alt=""></div>
<p class="transition">牧場主人為畜產本科專業,曾實習於日本畜牧場,將畜牧職人精神帶回台灣!專業的放牧飼養管理,讓阿奔們自然生長,不使用抗生素等動物用藥。</p>
</li>
<li class="flex">
<div class="photoWrapper"><img class="transition" src="images/farmphoto03.jpg" alt=""></div>
<p class="transition">獨特的飼料配方,補充植物性營養素:金盞花萃取之葉黃素、紅藻萃取之蝦紅素,讓珍貴營養素自然轉嫁於雞蛋中。
</p>
</li>
</ul>
<a id="goNext" class="arrow-btn arrow-right flex transition">
<i class="fas fa-caret-right pad"></i>
</a>
<a id="goPrev" class="arrow-btn arrow-left flex transition">
<i class="fas fa-caret-left pad"></i>
</a>
</div>
<ul id="slideDots" class="slideDots flex">
<li></li>
<li></li>
<li></li>
</ul>
<img class="img-freerange web" src="images/freerangeeggs.svg" alt="">
</div>
<div class="block-icon" id="block-icon">
<ul class="flex">
<li class="flex">
<div class="card-icon flex">
<div class="icon-wrapper flex web"><img src="images/icon03.svg" alt=""></div>
<h2>友善放牧飼養</h2>
</div>
<div class="line"></div>
<p>超越歐盟2025年標準,全場放牧飼養,摒棄在台灣達99%的格子籠飼養方式,動物福祉給好給滿。</p>
</li>
<li class="flex">
<div class="card-icon flex">
<div class="icon-wrapper flex web"><img src="images/icon01.svg" alt=""></div>
<h2>有機飼糧添加</h2>
</div>
<div class="line"></div>
<p>餵食天然穀物、有機蔬菜、益生菌、植物性葉黃素及蝦紅素。放牧的過程中,阿奔也會在草叢間覓食,攝取更多營養素。放牧農法讓珍貴營養素自然轉嫁於雞蛋中。</p>
</li>
<li class="flex">
<div class="card-icon flex">
<div class="icon-wrapper flex web"><img src="images/icon02.svg" alt=""></div>
<h2>機能營養素</h2>
</div>
<div class="line"></div>
<p>草上奔的紅仁蛋黃來自餵食阿奔天然的營養素:紅藻萃取之蝦紅素,其機能性為緩解眼睛疲勞 ; 金盞花萃取之葉黃素則能保護眼睛黃斑部。</p>
</li>
<li class="flex">
<div class="card-icon flex">
<div class="icon-wrapper flex web"><img src="images/icon04.svg" alt=""></div>
<h2>100%無用藥</h2>
</div>
<div class="line"></div>
<p>草上奔牧場採低密度飼養,放牧雞蛋自產自銷新鮮直送,均不含抗生素、動物用藥、芬普尼,自主送SGS檢驗!</p>
</li>
<img class="img-tree-lg" src="images/tree-l-g.svg" alt="">
</ul>
</div>
<footer class="flex">
© 20200616 Emma Hung
</footer>
</div>
</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');
});
let slideIndex = 0;
let slideCount = $("#blockPhoto ul").find("li").length;
let slideWidth = $("#blockPhoto ul li").width();
if ($(window).width() < 768) {
slider()
}
$(window).resize(function () {
slideCount = $("#blockPhoto ul").find("li").length;
slideWidth = $("#blockPhoto ul li").width();
$("#blockPhoto ul").css("left", 0)
$("#slideDots li").eq(slideIndex).addClass("current")
.siblings().removeClass("current")
if ($(window).width() < 768) {
slider()
}
})
$("#slideDots li").eq(0).addClass("current")
function slider() {
$("#slideDots li").mouseenter(function () {
slideIndex = $(this).index();
goSlide()
})
$("#goNext").click(function () {
slideIndex = slideIndex + 1;
goSlide()
})
$("#goPrev").click(function () {
slideIndex = slideIndex - 1;
goSlide()
})
}
function goSlide() {
if (slideIndex < 0) {
slideIndex = slideCount - 1
}
if (slideIndex >= slideCount) {
slideIndex = 0
}
$("#blockPhoto ul").css("left", 0 - slideIndex * slideWidth)
$("#slideDots li").eq(slideIndex).addClass("current")
.siblings().removeClass("current")
}
// goTop()------------------------Start--------------
let vh = $("#block-icon").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--------------
</script>
</body>
</html>