-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (59 loc) · 3.17 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ConfiguratorJS</title>
<!-- Fonts and Icons -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;900&family=Ubuntu&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/6822d328a2.js" crossorigin="anonymous"></script>
<!-- CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
<link rel="stylesheet" href="configurator.css">
</head>
<body>
<div class="container-fluid" id="configurator">
<!-- main row -->
<div class="row">
<!-- left col -->
<div class="col-md-6">
<!-- options card -->
<div class="card pt-2">
<div class="card-body">
<ul class="list-group list-group-flush">
<li class="list-group-item">
<h4>Select a color</h4>
<button type="button" class="btn btn-link" onclick="setProductDetails('c1')"><div class="dot blue"></div></button>
<button type="button" class="btn btn-link" onclick="setProductDetails('c2')"><div class="dot teal"></div></button>
<button type="button" class="btn btn-link" onclick="setProductDetails('c3')"><div class="dot forest"></div></button>
<button type="button" class="btn btn-link" onclick="setProductDetails('c4')"><div class="dot pink"></div></button>
</li>
<li class="list-group-item">
<h4>Select a design</h4>
<button type="button" class="btn btn-outline-dark" onclick="setProductDetails('d1')">J</button>
<button type="button" onclick="setProductDetails('d2')" class="btn btn-outline-dark">I</button>
<button type="button" onclick="setProductDetails('d3')" class="btn btn-outline-dark">P</button>
<button type="button" onclick="setProductDetails('d4')" class="btn btn-outline-dark">Y</button>
<div class="text-box"><p id="message"></p></div>
</li>
</ul>
</div>
</div>
</div>
<!-- right col -->
<div class="col-md-6">
<div class="card pt-4">
<h3>20 oz Travel Tumbler</h3>
<img id="tumbler" src="blue.png" class="card-img-top" alt="tumbler">
</div>
</div> <!-- end configurator -->
</div>
</div>
</section>
<!-- scripts -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" 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-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+" crossorigin="anonymous"></script>
<script src="configurator.js"></script>
</body>
</html>