-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcart.html
223 lines (194 loc) · 8.73 KB
/
cart.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
<!DOCTYPE html>
<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">
<script src="https://kit.fontawesome.com/24c494a6b6.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<title>Document</title>
<!-- Bootstrap links -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://kit.fontawesome.com/24c494a6b6.js" crossorigin="anonymous"></script>
<!-- Jquery script for including navbar to all pages -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
$(function(){
$('#navbar').load('navbar.html')
});
</script>
<script>
$(function(){
$('#footer').load('bottompage.html')
});
</script>
<style>
#container-cart{
display: flex;
font-family: Human BBY Digital,Human Fallback,Arial,Helvetica,sans-serif;
font-size: 15px;
box-sizing: border-box;
padding-left: 32px;
justify-content: space-evenly;
background-color: #f0f2f4;
}
#savedItems{
box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
padding: 40px 10px;
margin-top: 40px;
background-color: white
}
#cartItemsList{
box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
padding: 40px 10px;
margin-top: 40px;
background-color: white
}
#saved{
display: flex;
justify-content: space-between;
}
#mostViewed{
box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
padding: 10px 10px;
margin-top: 40px;
background-color: white
}
#mostViewedProducts{
margin-top: 30px;
display: grid;
grid-template-columns: repeat(4,1fr);
grid-template-rows: auto;
}
.formatDiv{
margin-top: 30px;
display: grid;
grid-template-columns: repeat(4,1fr);
grid-template-rows: auto;
box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
padding: 10px 10px;
margin-top: 40px;
background-color: white
}
.product{
padding: 15px 15px 0px 15px;
}
.product>button{
background-color: white;
border:1px solid #0b4ec0;
color: #0b4ec0;
border-radius: 4px;
padding: 2px 50px;
margin-top: 10px;
cursor: pointer;
}
.product>img{
height: 100px;
width: auto
}
.product>img+p:hover{
text-decoration: underline;
color: #03255f;
cursor: pointer;
}
#rightSection{
box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
margin-left: 40px;
padding:40px;
background-color: white;
}
#orderSummary>button{
margin: 10px 2px;
border: none;
border-radius: 5px;
background-color: #0046be;
padding: 10px 30px;
cursor: pointer;
}
#orderSummary>button>a{
text-decoration: none;
color: white;
}
</style>
</head>
<body>
<div id="navbar"></div>
<div id="container-cart">
<div id="leftSection">
<div id="cartItemsList" class="formatDiv">
<h3>Your cart is empty</h3>
<p>Just browsing? You can create an account and start earning reward points whenever you make a purchase.</p>
</div>
<div id="savedItems">
<div id="saved">
<div><h3><i class="fa-regular fa-bookmark"></i> Saved Items</h3></div>
<div><h1>^</h1></div>
</div>
<hr>
<div id="emptyList" style="text-align: center;">
<h3>Your list is currently empty</h3>
<p>Need inspiration? Check out recommended items, or search for items to save.</p>
</div>
</div>
<div id="mostViewed">
<div><h4 style="font-weight: bold;">Most-viewed items <span style="color: gray;">(20 Items)</span></h4></div>
<div id="mostViewedProducts">
<div class="product" style="border-right: 1px solid #dde0e6;">
<img src="https://pisces.bbystatic.com/image2/BestBuy_US/images/products/6426/6426149_sd.jpg;maxHeight=150;maxWidth=170" alt="">
<p style="color: #0046be;margin-top: 5px;">Sony-PlayStation 5 Console</p>
<p style="color: #0046be">⭐⭐⭐⭐⭐ (23,838)</p>
<p style="font-weight: bold;">$499.99</p>
<button>See Details</button>
</div>
<div class="product" style="border-right: 1px solid #dde0e6">
<img src="https://pisces.bbystatic.com/image2/BestBuy_US/images/products/4901/4901809_sd.jpg;maxHeight=150;maxWidth=170" alt="">
<p style="color: #0046be;margin-top: 5px;">Apple-10.2-Inch iPad</p>
<p style="color: #0046be">⭐⭐⭐⭐⭐ (3,684)</p>
<p style="font-weight: bold;">$329.99</p>
<button>Add to cart</button>
</div>
<div class="product" style="border-right: 1px solid #dde0e6">
<img src="https://pisces.bbystatic.com/image2/BestBuy_US/images/products/6487/6487447_sd.jpg;maxHeight=150;maxWidth=170" alt="">
<p style="color: #0046be;margin-top: 5px;">Apple-iPhone 13 Pro Max 5G</p>
<p style="color: #0046be">⭐⭐⭐⭐⭐ (685)</p>
<p style="font-weight: bold;">$45.84/mo for 24 months</p>
<button>See Details</button>
</div>
<div class="product">
<img src="https://pisces.bbystatic.com/image2/BestBuy_US/images/products/6401/6401735_sd.jpg;maxHeight=150;maxWidth=170" alt="">
<p style="color: #0046be;margin-top: 5px;">Samsung-55" Class7 Series TV</p>
<p style="color: #0046be">⭐⭐⭐⭐⭐ (6,180)</p>
<p style="font-weight: bold;">$399.99 <span style="text-decoration: line-through;">$479.99</span></p>
<button>Add to cart</button>
</div>
</div>
</div>
</div>
<div id="rightSection">
<div id="orderSummary">
<div style="font-size: 20px; text-align: center;">Order Summary</div>
<hr>
<div id="total" style="display: flex; justify-content: space-between;">
<div style="font-size: 20px;">Total</div>
<!-- Have to replace the price div with calculated total -->
<div id="price" style="font-size: 20px;">$0.00</div>
</div>
<button><a href="shipping.html">Fill Shipping Address</a></button>
<button><a href="index.html"> or Continue Shopping</a></button>
<hr>
<p style="font-weight: bold;">Looking for a lease to own option?</p>
<div style="display: flex;">
<p style="margin-top: 0px;margin-right: 5px; font-size:10px">Enjoy the tech you want today.</p>
<a href="" style="font-size:10px">Learn more ></a>
</div>
</div>
</div>
</div>
<div id="footer"></div>
</body>
</html>
<script src="cart.js"></script>