-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
685 lines (685 loc) · 24.5 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
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
<!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" />
<!-- FONT AWESOME CSS LINK -->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.1.1/css/all.css"
integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ"
crossorigin="anonymous"
/>
<!-- GOOGLE FONTS LINK -->
<link
href="https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap"
rel="stylesheet"
/>
<!-- BOOTSTRAP CSS DOWNLOADED LINK -->
<link rel="stylesheet" href="assets/styles/bootstrap.css" />
<!-- MAIN CSS FILE LINK -->
<link rel="stylesheet" href="assets/styles/style.css" />
<title>Grandma's Sweets</title>
</head>
<body>
<!-- START HERE -->
<!-- NAVBAR LOGO & TOGGLE BUTTON -->
<header>
<nav class="navbar navbar-expand-lg bg-white px-4">
<a href="#banner" class="navbar-brand"
><img src="./assets/img/logo.svg" alt="logo" /> </a
><button
class="navbar-toggler"
data-toggle="collapse"
data-target="#main-nav"
>
<span class="toggler-icon">
<i class="fas fa-bars fa-2x text-pink1"></i>
</span>
</button>
<!-- NAVBAR TOGGLE ITEMS -->
<div
class="collapse navbar-collapse justify-content-center"
id="main-nav"
>
<ul class="navbar-nav">
<li class="nav-item active">
<a href="#banner" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="#about" class="nav-link">About</a>
</li>
<li class="nav-item">
<a href="#store" class="nav-link">Store</a>
</li>
<li class="nav-item">
<a href="#services" class="nav-link">Services</a>
</li>
<li class="nav-item">
<a href="#order" class="nav-link">Order</a>
</li>
</ul>
</div>
<!-- NAVBAR CONTACT & CART BUTTON DIV -->
<div class="d-none d-lg-flex">
<div
class="nav-info d-flex mx-md-5 justify-content-between align-items-center"
>
<span class="info-icon mx-md-3">
<i class="fas fa-phone"></i>
</span>
<p class="mb-0">+ 123 456 789</p>
</div>
<div
id="cart-info"
class="cart-info d-flex justify-content-between mr-md-5 align-items-center"
>
<span class="cart-info-icon mr-md-3">
<i class="fas fa-shopping-cart"></i>
</span>
<p class="mb-0">
<span class="item-count">2</span>
Items - $
<span class="item-total"> 10.49 </span>
</p>
</div>
</div>
</nav>
<!-- BANNER SECTION -->
<section id="banner">
<div class="container-fluid">
<div class="row max-height justify-content-center align-items-center">
<div class="col-10 mx-auto banner text-center">
<h1 class="big-font text-white">
Welcome to <strong class="text-pink1">Grandma's Sweets</strong>
</h1>
<a href="#store" class="btn btn-outline-black banner-link my-2"
>EXPLORE</a
>
</div>
<!-- CART SECTION -->
<div class="cart" id="cart">
<div class="cart-item d-flex justify-content-between my-3">
<img
src="./assets/img/img-cart/z-cake-2.jpeg"
alt=""
class="img-fluid rounded-circle"
/>
<div class="cart-text">
<p class="font-weight-bold mb-0">Cart Item</p>
<span>$</span>
<span class="cart-item-price mb-0" style="font-size: small">
10.99</span
>
</div>
<a href="" id="cart-item-remove"
><i class="fas fa-trash"></i
></a>
</div>
<div class="cart-item d-flex justify-content-between my-3">
<img
src="./assets/img/img-cart/z-sweets-3.jpeg"
alt=""
class="img-fluid rounded-circle"
/>
<div class="cart-text">
<p class="font-weight-bold mb-0">Cart Item</p>
<span>$</span>
<span class="cart-item-price mb-0" style="font-size: small"
>10.99</span
>
</div>
<a href="" id="cart-item-remove"
><i class="fas fa-trash"></i
></a>
</div>
<div
class="cart-total-container d-flex justify-content-around mt-5"
>
<h5>Total</h5>
<h5>$ <strong class="font-weight-bold">10.00</strong></h5>
</div>
<div
class="cart-button-container d-flex justify-content-between mt-3"
>
<a href="" class="btn btn-outline-black black-hover"
>CLEAR CART</a
>
<a href="" class="btn btn-outline-pink1">CHECKOUT</a>
</div>
</div>
</div>
</div>
</section>
</header>
<!-- ABOUT SECTION -->
<section id="about" class="py-5">
<div class="container">
<div class="row">
<!-- COLUMN FOR TITLE AND ABOUT INFO & BUTTON -->
<div class="col-10 col-md-6 mx-auto my-5">
<h1>About <strong class="big-font text-pink1">Us</strong></h1>
<p class="my-4 text-muted w-75">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Eius
consequuntur corporis porro! Eveniet sunt placeat porro minus hic
dolore consequuntur adipisci deserunt officia? Suscipit,
molestiae?
</p>
<a href="" class="btn btn-outline-black black-btn">EXPLORE</a>
</div>
<!-- COLUMN FOR IMAGE -->
<div class="col-md-6 my-5 d-none d-md-block">
<div class="about-image">
<img
src="./assets/img/sweets-1.jpeg"
alt="about"
class="img-fluid"
/>
</div>
</div>
</div>
</div>
</section>
<!-- STORE SECTION -->
<section id="store" class="bg-grey py-5">
<div class="container">
<div class="row">
<div class="col-10 mx-auto col-sm-6 text-center">
<h1>Our <strong class="big-font text-pink1">Store</strong></h1>
</div>
</div>
<!-- SEARCH BUTTONS -->
<div class="row my-3">
<div class="col-lg-8 mx-auto d-flex justify-content-around flex-wrap">
<a
href=""
class="btn btn-outline-black black-btn m-2"
data-filter="all"
>ALL</a
>
<a
href=""
class="btn btn-outline-black black-btn m-2"
data-filter="cakes"
>CAKES</a
>
<a
href=""
class="btn btn-outline-black black-btn m-2"
data-filter="cupcakes"
>CUPCAKES</a
>
<a
href=""
class="btn btn-outline-black black-btn m-2"
data-filter="sweets"
>SWEETS</a
>
<a
href=""
class="btn btn-outline-black black-btn m-2"
data-filter="doughnuts"
>DOUGHNUTS</a
>
</div>
</div>
<!-- SEARCH BAR -->
<div class="row my-3">
<div class="col-10 col-md-6 mx-auto">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text bg-pink1 text-black"
><i class="fas fa-search"></i
></span>
</div>
<input
type="text"
id="search-item"
class="form-control"
placeholder="item..."
/>
</div>
</div>
</div>
<!-- STORE ITEMS IMAGE & CART LOGO -->
<div id="store-items" class="row">
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/sweets-1.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Sweet Item</h5>
<h5>$ <strong>5</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/cake-1.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Cake Item</h5>
<h5>$ <strong>5</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/cupcake-1.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Cupcake Item</h5>
<h5>$ <strong>5</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/doughnut-1.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Doughnut Item</h5>
<h5>$ <strong>5</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/sweets-2.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Sweet Item</h5>
<h5>$ <strong>10</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/cake-2.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Cake Item</h5>
<h5>$ <strong>10</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/cupcake-2.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Cupcake Item</h5>
<h5>$ <strong>10</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/doughnut-2.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Doughnut Item</h5>
<h5>$ <strong>10</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/sweets-3.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Sweet Item</h5>
<h5>$ <strong>15</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/cake-3.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Cake Item</h5>
<h5>$ <strong>15</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/cupcake-3.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Cupcake Item</h5>
<h5>$ <strong>15</strong></h5>
</div>
</div>
</div>
<div
class="col-10 col-sm-6 col-lg-4 mx-auto my-3"
data-filter="sweets"
>
<div class="card box-shadow">
<div class="img-container">
<img
src="./assets/img/doughnut-3.jpeg"
alt=""
class="card-img-top store-img"
/>
<span class="store-item-icon bg-biscuit"
><i class="fas fa-shopping-cart"></i
></span>
</div>
<div class="card-footer d-flex justify-content-between">
<h5>Doughnut Item</h5>
<h5>$ <strong>15</strong></h5>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- SERVICE SECTION -->
<section id="services" class="py-5 mb-5">
<div class="container">
<div class="row text-white py-5">
<div class="col-md-4 text-center my-3">
<img src="./assets/img/bread-icon.png" alt="" />
<h6 class="my-3">BREAD</h6>
<p class="w-75 mx-auto text-left" style="word-spacing: 0.5rem">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quidem,
iusto consequatur rerum nam asperiores expedita sunt
exercitationem doloribus velit nemo deserunt dolor cupiditate
voluptas.
</p>
</div>
<div class="col-md-4 text-center my-3">
<img src="./assets/img/cupcake-icon.png" alt="" />
<h6 class="my-3">CUPCAKES</h6>
<p class="w-75 mx-auto text-left" style="word-spacing: 0.5rem">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quidem,
iusto consequatur rerum nam asperiores expedita sunt
exercitationem doloribus velit nemo deserunt dolor cupiditate
voluptas.
</p>
</div>
<div class="col-md-4 text-center my-3">
<img src="./assets/img/candy-icon.png" alt="" />
<h6 class="my-3">CANDY</h6>
<p class="w-75 mx-auto text-left" style="word-spacing: 0.5rem">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quidem,
iusto consequatur rerum nam asperiores expedita sunt
exercitationem doloribus velit nemo deserunt dolor cupiditate
voluptas.
</p>
</div>
</div>
</div>
</section>
<!-- ORDER SECTION -->
<section id="order" class="py-5 mt-5">
<div class="container py-2">
<div class="row">
<div class="col-10 mx-auto col-sm-6 text-center">
<h1>Order <strong class="text-pink1 big-font">Cake</strong></h1>
</div>
</div>
<div class="row">
<div class="col-11 mx-auto col-md-6 col-lg-4 text-center">
<h3 class="py-3">Birthday Cake</h3>
<div class="text-muted">
<p class="my-3">Birthday Cake With A Name</p>
<p class="my-3">Custom Ingredients</p>
<p class="my-3">Custom Size</p>
<p class="my-3">Custom Design</p>
<button class="btn btn-outline-pink1 mb-3" type="button">
Order Now
</button>
<p class="mb-4">starting at $5</p>
<img src="./assets/img/trans-cake.png" alt="" class="img-fluid" />
</div>
</div>
<div class="col-11 mx-auto col-md-6 col-lg-4 text-center">
<h3 class="py-3">Custom Cake</h3>
<div class="text-muted">
<p class="my-3">Birthday Cake With A Name</p>
<p class="my-3">Custom Ingredients</p>
<p class="my-3">Custom Size</p>
<p class="my-3">Custom Design</p>
<button class="btn btn-outline-pink1 mb-3" type="button">
Order Now
</button>
<p class="mb-4">starting at $5</p>
<img
src="./assets/img/trans-custom.png"
alt=""
class="img-fluid"
/>
</div>
</div>
<div class="col-11 mx-auto col-md-6 col-lg-4 text-center">
<h3 class="py-3">Wedding Cake</h3>
<div class="text-muted">
<p class="my-3">Birthday Cake With A Name</p>
<p class="my-3">Custom Ingredients</p>
<p class="my-3">Custom Size</p>
<p class="my-3">Custom Design</p>
<button class="btn btn-outline-pink1 mb-3" type="button">
Order Now
</button>
<p class="mb-4">starting at $5</p>
<img
src="./assets/img/trans-wedding.png"
alt=""
class="img-fluid"
/>
</div>
</div>
</div>
</div>
</section>
<!-- FOOTER SECTION -->
<section id="footer" class="pt-4">
<div class="container-fluid">
<div class="row">
<div class="col-md-6 pt-5 pb-4 mb-0 bg-black">
<h1 class="text-center">
<strong class="big-font text-pink1">Grandma's Sweets</strong>
</h1>
<div class="mt-4 d-flex justify-content-around flex-wrap">
<a href=""><i class="fab fa-facebook fa-2x ftr-icon"></i></a>
<a href=""><i class="fab fa-twitter fa-2x ftr-icon"></i></a>
<a href=""><i class="fab fa-instagram fa-2x ftr-icon"></i></a>
<a href=""><i class="fab fa-google-plus fa-2x ftr-icon"></i></a>
</div>
</div>
<div class="col-md-6 pt-5 text-center bg-grey">
<h3 class="mb-4" style="font-size: 2rem">Contact</h3>
<p class="d-flex flex-wrap">
<span class="mx-4"><i class="fas fa-map"></i></span>
<span>123 main street, san diego CA 90101</span>
</p>
<p class="d-flex flex-wrap">
<span class="mx-4"><i class="fas fa-phone"></i></span
><span> 123-456-789 </span>
</p>
<p class="d-flex flex-wrap">
<span class="mx-4"><i class="fas fa-envelope"></i></span
><span>[email protected]</span>
</p>
</div>
</div>
</div>
</section>
<!-- 1. link tag (<a href=""></a>) problems check
(i.)# sign and
(ii.) id of directed section
(iii.) link tag attributes(which direct to other parts of code) always take # sign in front of them. -->
<!-- <span id="year"></span> -->
<!-- These are j-query & JS links -->
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s"
crossorigin="anonymous"
></script>
<script src="./assets/scripts/app.js"></script>
<!-- CUSTOM SCRIPT FOR JS IN PAGE -->
<script>
// SCROLLSPY SCRIPT
$("body").scrollspy({ target: "#main-nav" });
// GET THE CURRENT YEAR FOR THE COPYRIGHT
$("#year").text(new Date().getFullYear());
// add smooth scrolling
$("#main-nav a").on("click", function (e) {
// check for a hash value
if (this.hash !== "") {
// prevent default behavior
e.preventDefault();
// store hash
const hash = this.hash;
// animate smooth scroll(slim version j-query doesn't provide this service)
$("html,body").animate(
{
scrollTop: $(hash).offset().top,
},
900,
function () {
// add hash to url after scroll
window.location.hash = hash;
}
);
}
});
</script>
</body>
</html>