-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
190 lines (173 loc) · 8.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BarKas-Layo</title>
<link rel="stylesheet" href="Assets/styles/style.css">
<script src="Assets/js/script.js"></script>
<!-- Feather Icons -->
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body>
<header>
<div class="container">
<nav>
<div class="logo"><span>BarKas</span>-Layo</div>
<div class="nav-links">
<a href="index.html">Beranda</a>
<a href="Header/kategori.html">Kategori</a>
<a href="Header/jual-barang.html">Jual Barang</a>
<a href="Header/tentang-kami.html">Tentang Kami</a>
</div>
<div class="auth-links">
<a href="#" class="btn-login">Masuk</a>
<a href="#" class="btn-register">Daftar</a>
</div>
</nav>
<div class="search-bar">
<input type="text" placeholder="Cari barang bekas...">
<button>Cari</button>
</div>
</div>
</header>
<main>
<!-- Filter Bar Section -->
<div class="filter-bar">
<h2>Filter Pencarian</h2>
<form action="#" method="GET">
<label for="kategori">Kategori:</label>
<select id="kategori" name="kategori">
<option value="elektronik">Elektronik</option>
<option value="furnitur">Furnitur</option>
<option value="pakaian">Pakaian</option>
<option value="stationery">Alat Tulis</option>
</select>
<label for="min-price">Harga Minimum:</label>
<input type="number" id="min-price" name="min-price" placeholder="Rp 0">
<label for="max-price">Harga Maksimum:</label>
<input type="number" id="max-price" name="max-price" placeholder="Rp 10.000.000">
<label for="kondisi">Kondisi:</label>
<select id="kondisi" name="kondisi">
<option value="baru">Baru</option>
<option value="bekas">Bekas</option>
</select>
<button type="submit">Terapkan Filter</button>
</form>
</div>
<!-- Hero Section -->
<section class="hero">
<div class="container">
<h1>Temukan Barang Bekas Berkualitas di Indralaya</h1>
<p>Beli dan jual barang bekas dengan mudah dan aman</p>
<a href="Barang/semua-barang.html" class="cta-button">Mulai Menjelajah</a>
</div>
</section>
<!-- Popular Categories Section -->
<section class="categories">
<div class="container">
<h2>Kategori Populer</h2>
<div class="category-grid">
<div class="category-item" onclick="location.href='Barang/kategori-barang.html?category-items=elektronik'">
<img src="Assets/img/elektronik.png" alt="Elektronik">
<h3>Elektronik</h3>
</div>
<div class="category-item" onclick="location.href='Barang/kategori-barang.html?category-items=furnitur'">
<img src="Assets/img/furniture.png" alt="Furnitur">
<h3>Furnitur</h3>
</div>
<div class="category-item" onclick="location.href='Barang/kategori-barang.html?category-items=pakaian'">
<img src="Assets/img/pakaian.png" alt="Pakaian">
<h3>Pakaian</h3>
</div>
<div class="category-item" onclick="location.href='Barang/kategori-barang.html?category-items=alat-tulis'">
<img src="Assets/img/stationery.png" alt="Alat Tulis">
<h3>Alat Tulis</h3>
</div>
</div>
</div>
</section>
<!-- Featured Items Section -->
<section class="featured-items">
<div class="container">
<h2>Barang Terbaru</h2>
<div class="item-grid">
<div class="item-card">
<img src="Assets/img/laptop.png" alt="Barang 1" class="item-image">
<div class="item-info">
<h3>Laptop Bekas</h3>
<p>Kondisi: Baik, masih lancar</p>
<p class="price">Rp 3.500.000</p>
<a href="Barang/detailBarang.html?item=laptop" class="detail-button">Detail</a>
</div>
</div>
<div class="item-card">
<img src="Assets/img/bicycle.png" alt="Barang 2" class="item-image">
<div class="item-info">
<h3>Sepeda Gunung</h3>
<p>Kondisi: Jarang dipakai, like new</p>
<p class="price">Rp 2.200.000</p>
<a href="Barang/detailBarang.html?item=sepeda" class="detail-button">Detail</a>
</div>
</div>
<div class="item-card">
<img src="Assets/img/cupboard.png" alt="Barang 3" class="item-image">
<div class="item-info">
<h3>Lemari Kayu Jati</h3>
<p>Kondisi: Sangat baik, seperti baru</p>
<p class="price">Rp 5.200.000</p>
<a href="Barang/detailBarang.html?item=lemari" class="detail-button">Detail</a>
</div>
</div>
</div>
</div>
</section>
</main>
<footer>
<div class="container">
<div class="footer-links">
<a href="Header/tentang-kami.html">Tentang Kami</a>
<a href="Footer/syarat-dan-ketentuan.html">Syarat dan Ketentuan</a>
<a href="Footer/kebijakan-privasi.html">Kebijakan Privasi</a>
<a href="Footer/kontak-kami.html">Kontak Kami</a>
</div>
<p>© 2024 @BarKas-Layo. Hak Cipta Dilindungi.</p>
</div>
<div class="socials">
<a href="https://www.instagram.com/nbyl.26"
><i data-feather="instagram"></i
></a>
<a href="https://github.com/nbyl26"><i data-feather="github"></i></a>
<a href="https://www.linkedin.com/in/nabilpasha"
><i data-feather="linkedin"></i
></a>
</div>
</footer>
<!-- Chatbot Button -->
<div id="chatbot-button" style="position: fixed; bottom: 20px; right: 20px; z-index: 1000;">
<button onclick="toggleChat()" style="background-color: #76c7c0; border: none; border-radius: 50%; padding: 15px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);">
<i data-feather="message-circle" style="color: white;"></i>
</button>
</div>
<!-- Chatbot Container -->
<div id="chatbot-container" style="display: none; position: fixed; bottom: 70px; right: 20px; width: 300px; max-width: 90%; border: 1px solid #76c7c0; border-radius: 8px; background-color: white; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);">
<div id="chatbot-header" style="background-color: #76c7c0; color: white; padding: 10px; border-radius: 8px 8px 0 0;">
<h3 style="margin: 0;">Chatbot</h3>
<button onclick="toggleChat()" style="float: right; background: none; border: none; color: white; font-size: 16px;">×</button>
</div>
<div id="chatbot-messages" style="height: 200px; overflow-y: auto; padding: 10px;">
<!-- Messages will appear here -->
<div id="template-questions">
<p style="cursor: pointer; color: #76c7c0;" onclick="sendTemplateMessage('apa itu barkas layo?')">Apa itu Barkas Layo?</p>
<p style="cursor: pointer; color: #76c7c0;" onclick="sendTemplateMessage('bagaimana cara berbelanja?')">Bagaimana cara berbelanja?</p>
<p style="cursor: pointer; color: #76c7c0;" onclick="sendTemplateMessage('terima kasih')">Terima kasih</p>
</div>
</div>
<input type="text" id="chat-input" placeholder="Tanya kami..." style="width: calc(100% - 40px); padding: 10px; border: none; border-top: 1px solid #ddd; border-radius: 0 0 8px 8px;">
<button onclick="sendMessage()" style="background-color: #76c7c0; border: none; color: white; padding: 10px; border-radius: 0 0 8px 0;">Kirim</button>
</div>
<script>
feather.replace();
</script>
</body>
</html>