-
Notifications
You must be signed in to change notification settings - Fork 1
/
index2.html
304 lines (263 loc) · 13.3 KB
/
index2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unit 19 Homework</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- Font Awesome -->
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/all.js"
integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe"
crossorigin="anonymous"></script>
<!-- Style.CSS -->
<link rel="stylesheet" href="style2.css">
</head>
<body class="d-flex align-items-start flex-column">
<!-- ADD TOP ALERT HERE -->
<div class="alert alert-info w-100 alert-dismissible fade show" role="alert">
<p>Not interested in unicorn plush toys? Explore our other unicorn products.</p>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<!-- Nav Bar -->
<!-- MAKE THIS NAV STICKY -->
<nav class="w-100 navbar align-self-start navbar-expand-lg navbar-light bg-light sticky-top">
<div>
<img class="navbar-brand" src="img/unicorn.png" alt="">
<a class="navbar-brand" href="">Toys</a>
</div>
<!-- dropdown -->
<ul class="removed mr-auto navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
More Information
</a>
<div id="sections" class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#product-info">Product Information</a>
<a class="dropdown-item" href="#similar-items">Similar Items</a>
</div>
</li>
</ul>
<!-- Search -->
<form class="removed form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn my-2 my-sm-0" type="submit">Search</button>
</form>
<!-- Sign up & Cart -->
<ul class="ml-2 navbar-nav">
<li class="nav-item" data-toggle="modal" data-target="#signUpModal">
<!-- MAKE THIS LINK TRIGGER THE MODAL -->
<a class="nav-link signUpButton" href="#signUpModal">
<i class="fas fa-user">Sign Up for Savings</i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="">
<div class="cart">
<i class="fas fa-shopping-cart"></i>
<span id="cartItems" class="badge badge-light">0</span>
</div>
</a>
</li>
</ul>
</nav>
<!-- Main Content -->
<main class="container">
<div class="row">
<!-- Carousel Images -->
<div class="col-md-7">
<!-- ADD YOUR CAROUSEL HERE -->
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="img/product1.png" alt="First slide">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="img/product2.png" alt="Second slide">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="img/product3.png" alt="Third slide">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<!-- </div> -->
</div>
<!-- Main Product Information -->
<div class="col-md-5">
<h2>Giant Unicorn Plush
<span class="badge badge-secondary">New</span>
</h2>
<p>Soft, Sparkly, Magical</p>
<hr>
<h6>Price</h6>
<p>$99.99</p>
<!-- Form for adding to cart -->
<form id="quantityOfUnicornsForm">
<!-- SELECT QUANTITY DROPDOWN & ADD TO CART BUTTON HERE -->
<!-- <form> -->
<div class="form-row add-to-cart align-items-center">
<div class="col-12 my-1">
<label class="mr-sm-12" for="quantityOfUnicorns">Select a Quantity</label>
</div>
<div class="col-12 my-1 form-group">
<!-- <label class="mr-sm-12" for="inlineFormCustomSelect">Select a Quantity</label> -->
<select class="custom-select mr-sm-2 form-control" id="quantityOfUnicorns">
<!-- <option selected>Choose...</option> -->
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="3">4</option>
<option value="3">5</option>
</select>
</div>
<div class="col-12 my-1">
<button type="submit" class="btn btn-primary">Add to Cart</button>
</div>
</div>
<!-- </form> -->
</form>
</div>
</div>
<!-- Scrollspy connected to Dropdown Menu -->
<div data-spy="scroll" data-target="#sections" data-offset="0">
<!-- Product Information -->
<div class="row">
<div class="col-12">
<h4 id="product-info" class="section-header">Product Information</h4>
<!-- ADD PRODUCT INFORMATION TABS HERE -->
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home"
role="tab" aria-controls="nav-home" aria-selected="true">Description</a>
<a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile"
role="tab" aria-controls="nav-profile" aria-selected="false">Details</a>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-home" role="tabpanel"
aria-labelledby="nav-home-tab">
<p>This graceful unicorn will prance right into any child’s collection -- and heart! With its pretty pink mane and tail, both scattered through with shimmering silver strands that catch the light, this enchanting friend is sure to become a new favorite. Additional irresistible details include super-silky plush fur, satin star decorations, beautiful blue eyes, and a soft, shiny horn.</p>
</div>
<div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">
<ul>
<li> Suitable for ages 3 years and up</li>
<li> Silky plush fur</li>
<li> Measure 36" H</li>
<li> Imported</li>
</ul>
</div>
</div>
<!-- Text for tab 1:
This graceful unicorn will prance right into any child’s collection -- and heart! With its pretty pink mane and tail, both scattered through with shimmering silver strands that catch the light, this enchanting friend is sure to become a new favorite. Additional irresistible details include super-silky plush fur, satin star decorations, beautiful blue eyes, and a soft, shiny horn.-->
<!-- Text for tab 2:
• Suitable for ages 3 years and up
• Silky plush fur
• Measure 36" H
• Imported -->
</div>
</div>
<!-- Similar Items -->
<div class="row">
<div class="col-12">
<h4 id="similar-items" class="section-header">Similar Items</h4>
<div class="row">
<!-- ADD SIMILAR ITEMS HERE -->
<div class="col-3">
<img class="w-100" src="img/recommendedProduct1.jpg" alt="First similar">
</div>
<div class="col-3">
<img class="w-100" src="img/recommendedProduct2.jpg" alt="Second similar">
</div>
<div class="col-3">
<img class="w-100" src="img/recommendedProduct3.jpg" alt="Third similar">
</div>
<div class="col-3">
<img class="w-100" src="img/recommendedProduct4.jpg" alt="Fourth similar">
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Chat Button with Popover-->
<!-- BONUS: ADD CHAT POPOVER HERE -->
<button id="chatPopover" type="button" class="chat btn">Need help?</button>
<!-- Footer -->
<footer class="mt-auto d-flex justify-content-center align-items-center">
<p class="m-0">Everything Unicorns</p>
</footer>
<!-- Modal -->
<div class="modal fade" id="signUpModal" tabindex="-1" role="dialog" aria-labelledby="mySignUpModal"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h5 class="modal-title" id="modalHeader">Sign up for savings sent right to your inbox!</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<!-- Modal Body - Form -->
<div class="modal-body">
<!-- ADD YOUR FORM HERE -->
<form>
<div class="form-group">
<label for="formGroupFirstNameInput">First Name</label>
<input type="text" class="form-control" id="formGroupFirstNameInput" placeholder="">
</div>
<div class="form-group">
<label for="formGroupLastNameInput2">Last Name</label>
<input type="text" class="form-control" id="formGroupLastNameInput2" placeholder="">
</div>
<div class="form-group">
<label for="formGroupInputEmail">E-mail</label>
<input type="email" class="form-control" id="formGroupInputEmail"
aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with
anyone else.</small>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Check me out</label>
</div>
<!-- <button type="submit" class="btn btn-primary">Submit</button> -->
</form>
</div>
<!-- Modal Footer - Button -->
<div class="modal-footer">
<button type="button" id="signUpBtn" class="btn btn btn-primary">Sign me up!</button>
<!-- <button type="submit" class="close" data-dismiss="modal" aria-label="Submit"></button> -->
</div>
</div>
</div>
</div>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="./app2.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https
://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
</body>
</html>