-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (60 loc) · 2.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Showcase Demo</title>
<style>
body,
html {
padding: 0;
margin: 0;
}
#product-page {
display: grid;
grid-template-columns: 100%;
}
@media screen and (min-width: 740px) {
#product-page {
grid-template-columns: 50% 50%
}
}
</style>
<link rel="stylesheet" href="showcase.css">
</head>
<body>
<div id="product-page">
<div id="showcase" class="showcase">
<div class="showcase__main">
<ul class="showcase__content" aria-label="Image slideshow. Press left or right arrow to navigate" tabindex="0">
<li class="showcase__slide"><img alt="Image 1" src="public/images/product-shot-1.jpg"></li>
<li class="showcase__slide"><img alt="Image 2" src="public/images/product-shot-2.jpg"></li>
<li class="showcase__slide"><img alt="Image 3" src="public/images/product-shot-3.jpg"></li>
<li class="showcase__slide"><img alt="Image 4" src="public/images/product-shot-4.jpg"></li>
</ul>
<div class="showcase__controls">
<button type="button" aria-label="previous" class="showcase__prev">
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 443.52 443.52"><path d="M143.492 221.863L336.226 29.129c6.663-6.664 6.663-17.468 0-24.132-6.665-6.662-17.468-6.662-24.132 0l-204.8 204.8c-6.662 6.664-6.662 17.468 0 24.132l204.8 204.8c6.78 6.548 17.584 6.36 24.132-.42 6.387-6.614 6.387-17.099 0-23.712L143.492 221.863z"/></svg>
</button>
<button type="button" aria-label="next" class="showcase__next">
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 443.52 443.52"><path d="M336.226 209.591l-204.8-204.8c-6.78-6.548-17.584-6.36-24.132.42-6.388 6.614-6.388 17.099 0 23.712l192.734 192.734-192.734 192.734c-6.663 6.664-6.663 17.468 0 24.132 6.665 6.663 17.468 6.663 24.132 0l204.8-204.8c6.663-6.665 6.663-17.468 0-24.132z"/></svg>
</button>
</div>
</div>
<div role="tablist" class="showcase__thumbs flex"></div>
</div>
<div id="product-info">
<h1>Super Awesome Product</h1>
<p>£20</p>
<p>All the details</p>
</div>
</div>
<script src="showcase.js"></script>
<script>
const showcase = new Showcase(document.getElementById('showcase'), {
breakpoints: [740, 1200],
thumbPosition: 'right'
});
</script>
</body>
</html>