-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
225 lines (222 loc) · 8.01 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<style>
/** mantığa gerek yok 3 satır vei yapmak için bu
*/
.line-clamp-3{
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 3
}
</style>
<title>Shopping</title>
</head>
<body>
<nav class="navbar bg-body-tertiary fixed-top">
<div class="container-fluid">
<a class="navbar-brand d-flex align-items-center" href="#">
<img
src="assets/Clarusway_Logo.png"
alt="Logo"
width="50"
height="48"
class="d-inline-block align-text-top"
/>
<span class="fw-bold"> Clarusway</span>
</a>
<button
type="button"
data-bs-toggle="offcanvas"
data-bs-target="#offcanvasScrolling"
aria-controls="offcanvasScrolling"
class="btn btn-secondary position-relative"
>
Sepetim
<span
id="sepet"
class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-dark"
>
0
</span>
</button>
</div>
</nav>
<!--! ----------------------------------------------------------------------- -->
<!--! offcanvas -->
<!--! ----------------------------------------------------------------------- -->
<div
class="offcanvas offcanvas-end scroll-hidden"
data-bs-scroll="true"
data-bs-backdrop="false"
tabindex="-1"
id="offcanvasScrolling"
aria-labelledby="offcanvasScrollingLabel"
>
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasScrollingLabel">Sepetim</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="offcanvas"
aria-label="Close"
></button>
</div>
<div class="offcanvas-body">
<!-- <div class="card mb-3" style="max-width: 540px">
<div class="row g-0">
<div class="col-md-4 my-auto">
<img
src="./assets/Clarusway_Logo.png"
class="img-fluid rounded-start"
alt="..."
/>
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">Ürün Adı</h5>
<div class="d-flex align-items-center gap-2" role="button">
<i
class="fa-solid fa-minus border rounded-circle bg-danger text-white p-2"
></i
><span class="fw-bold">miktar</span
><i
class="fa-solid fa-plus border bg-danger text-white rounded-circle p-2"
></i>
</div>
<p class="card-text">Total : fiyat x miktar</p>
<button class="btn btn-danger">Remove</button>
</div>
</div>
</div>
</div> -->
</div>
<div class="offcanvas-footer">
<div class="d-flex justify-content-between align-items-center">
<h5>Toplam Tutar</h5>
<h5><span id="total">0</span> $</h5>
</div>
</div>
</div>
<div style="height: 50px"></div>
<main class="container mt-5">
<!--! ----------------------------------------------------------------------- -->
<!--! modal -->
<!--! ----------------------------------------------------------------------- -->
<div
class="modal fade"
id="exampleModal"
tabindex="-1"
aria-labelledby="exampleModalLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">
Modal title
</h1>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">...</div>
</div>
</div>
</div>
<!--* ----------------------------------------------------------------------- -->
<!--* buttons -->
<!--* ----------------------------------------------------------------------- -->
<section
class="d-flex justify-content-center flex-wrap gap-3"
id="btns"
>
<!-- <button class="btn btn-warning">Butonlar buraya</button> -->
</section>
<!--? ----------------------------------------------------------------------- -->
<!--? search input -->
<!--? ----------------------------------------------------------------------- -->
<section
class="d-flex justify-content-center flex-wrap gap-3 mt-4"
id="searchs"
>
<div class="col-12 col-sm-6">
<input
type="search"
class="form-control"
id="searchInput"
placeholder="Search..."
/>
</div>
</section>
<!--! ----------------------------------------------------------------------- -->
<!--! category title -->
<!--! ----------------------------------------------------------------------- -->
<h4 class="text-center mt-2">
Category: <span class="text-danger" id="category">ALL</span>
</h4>
<!--+ ----------------------------------------------------------------------- -->
<!--+ products -->
<!--+ ----------------------------------------------------------------------- -->
<section
class="row row-cols-1 row-cols-md-2 row-cols-xl-3 row-cols-xxl-4 justify-content-center g-4 my-5"
id="products"
>
<div class="col">
<!-- <div class="card">
<img
src="./assets/Clarusway_Logo.png"
class="p-2"
height="250px"
alt="..."
/>
<div class="card-body">
<h5 class="card-title line-clamp-1">Ürün Adı</h5>
<p class="card-text line-clamp-3">açıklama</p>
</div>
<div
class="card-footer w-100 fw-bold d-flex justify-content-between gap-3"
>
<span>Price:</span><span>Fiyat $</span>
</div>
<div class="card-footer w-100 d-flex justify-content-center gap-3">
<button class="btn btn-danger">Sepete Ekle</button>
<button
class="btn btn-primary"
data-bs-toggle="modal"
data-bs-target="#exampleModal"
>
See Details
</button>
</div>
</div> -->
</div>
</section>
</main>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
<script src="script.js"></script>
</body>
</html>