-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
119 lines (105 loc) · 3.96 KB
/
index.html
File metadata and controls
119 lines (105 loc) · 3.96 KB
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
<!doctype html>
<html lang="en">
<head>
<title>Overview</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/vendors/handlebars.min.js"></script>
<script src="js/vanilla.js"></script>
<script src="js/data.js"></script>
<script src="js/index.js"></script>
<script src="js/cart.js"></script>
<script src="js/shop.js"></script>
<script type="text/x-handlebars-template">
{{> partials/htmlHead }}
</script>
</head>
<body onload="">
<div>
<script id="partial-header" type="text/x-handlebars-template">
{{> partials/header index='active' }}
</script>
</div>
<div>
<script type="text/x-handlebars-template">
{{> partials/hero title='Shop' }}
</script>
</div>
<div class="shopify-grid padding-small">
<div class="container-lg">
<div class="row flex-row-reverse">
<script type="text/x-handlebars-template">
<main class="col-md-9">
<div class="filter-shop d-flex flex-wrap justify-content-between mb-5">
<div class="showing-product">
<p>Showing {{from}}–{{to}} of {{totalBooks}} results</p>
</div>
<div class="sort-by">
<select id="sorting" class="form-select" onchange="triggerSorting(this)">
{{#sorting}}
<option value="{{value}}" {{selected}}>{{label}}</option>
{{/sorting}}
</select>
</div>
</div>
<div class="product-content product-store row row-cols-lg-4 row-cols-md-3 row-cols-sm-2 row-cols-1">
{{#books}}
<div class="col mb-4">
<div class="card position-relative p-4 border rounded-3">
<img src="{{#if image}}{{image}}{{else}}images/book-placeholder.png{{/if}}" class="card-img shadow-sm" alt="{{title}}">
<h6 class="mt-4 mb-0 fw-bold"><a href="details.html?id={{id}}">{{title}}</a></h6>
<div class="review-content d-flex">
<p class="my-2 me-2 fs-6 text-black-50">{{author}}</p>
</div>
<span class="price text-primary fw-bold mb-2 fs-5">${{price}}</span>
<div class="card-concern position-absolute start-0 end-0 d-flex gap-2">
<button type="button" href="#" class="btn btn-dark" onclick="addToCart({{id}})">
<svg class="cart">
<use xlink:href="#cart"></use>
</svg>
</button>
</div>
</div>
</div>
{{/books}}
</div>
{{^books}}
<h3>No results. Try to select 'All' genres.</h3>
{{/books}}
{{> partials/pagination }}
</main>
<aside class="col-md-3">
<div class="sidebar ps-lg-5">
<div class="widget-menu">
<div class="widget-search-bar">
<form name="aside-search" class="d-flex border rounded-3 p-2" role="search" onsubmit="return triggerSearch(this.search.value)">
<input type="search" name="search" value="{{search}}"
class="form-control border-0 me-2 py-2" placeholder="Search" aria-label="Search">
<button class="btn rounded-3 p-3 d-flex align-items-center" type="submit">
<svg class="search text-light" width="18" height="18">
<use xlink:href="#search"></use>
</svg>
</button>
</form>
</div>
</div>
{{> partials/genres }}
</div>
</aside>
</script>
</div>
</div>
</div>
<div>
<script type="text/x-handlebars-template">
{{> partials/footer }}
</script>
</div>
<script src="js/vendors/jquery-1.11.0.min.js"></script>
<script src="js/vendors/bootstrap.bundle.min.js"></script>
<script src="js/vendors/swiper-bundle.min.js"></script>
<script src="js/vendors/script.js" defer></script>
</body>
</html>