-
Notifications
You must be signed in to change notification settings - Fork 0
/
favorite.html
241 lines (231 loc) · 14.9 KB
/
favorite.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
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="2G9">
<link href="./output.css" rel="stylesheet">
<title>Favorite PAge</title>
<link rel="icon" type="image/png" href="./images/logo.png">
<!-- Icons -->
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:[email protected]&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script src="./js/script.js"></script>
</head>
<style>
body {
font-family: "Noto Kufi Arabic", sans-serif;
}
.filter-btn {
position: relative;
background-color: transparent;
transition: color 0.3s;
}
.filter-btn::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 3px;
background-color: #C10D10;
transition: width 0.4s ease-in-out;
}
.filter-btn.active::after {
width: 100%;
right: 0;
left: auto;
}
</style>
<body >
<!-- Start Navbar -->
<div id="navbar"></div>
<!-- End Navbar -->
<!-- Start Section -->
<div class="container mx-auto p-5">
<h2 class="text-[#2B2F4E] font-bold sm:text-[40px] text-2xl mt-5"> ♥️ قائمة المفضلة</h2>
<div class="flex flex-col gap-3 lg:flex-row lg:gap-5 mb-6"></div>
<button class="filter-btn active text-black font-semibold md:py-2 md:px-4 py-1 px-1 rounded w-auto">
الكل
</button>
<button class="filter-btn text-black font-semibold md:py-2 md:px-4 py-1 px-1 rounded w-auto">
إعلانات
</button>
<button class="filter-btn text-black font-semibold md:py-2 md:px-4 py-1 px-1 rounded w-auto">
مزودي الخدمة
</button>
<button class="filter-btn text-black font-semibold md:py-2 md:px-4 py-1 px-1 rounded w-auto">
خدمات
</button>
<!--
<div id="cardContainer" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 relative mt-5">
<div class="card relative" data-category="ads">
<div class="bg-white rounded-lg overflow-hidden shadow-md ">
<img class="w-full object-cover p-1 h-72" src="./images/Rectangle2.webp" alt="Tesla Model X">
<ion-icon name="heart" class="absolute top-[-15px] left-[-15px] z-10 m-2 text-[#C10D10] bg-white rounded-full p-1 text-2xl"></ion-icon>
<div class="p-4 sm:p-6">
<h2 class="font-bold text-lg sm:text-xl mb-2 text-right ltr:text-left">
تسلا موديل اكس - بحالة جيدة جدا شامل الشاحن الاصلي ومحطة شحن
</h2>
<div class="flex flex-col sm:flex-row justify-between items-center mt-4 mb-4">
<p class="font-bold text-xl sm:text-2xl">د.إ 80,000</p>
<a href="#" id="popupToggle">
<button class="bg-transparent text-[#C10D10] font-semibold py-2 px-4 border border-[#C10D10] rounded-md mt-2 sm:mt-0">
مزيد التفاصيل
</button>
</a>
</div>
<hr class="my-4">
<div class="flex items-center text-[#837F7F] gap-1 text-sm sm:text-base font-bold">
<ion-icon name="location-outline"></ion-icon>
<p>دبي - القوز</p>
</div>
</div>
</div>
</div>
<div class="card relative" data-category="ads">
<div class="bg-white rounded-lg overflow-hidden shadow-md ">
<img class="w-full object-cover p-1 h-72 rounded-lg" src="./images/Rectangle2.webp" alt="Tesla Model X">
<ion-icon name="heart" class="absolute top-[-15px] left-[-15px] z-10 m-2 text-[#C10D10] bg-white rounded-full p-1 text-2xl"></ion-icon>
<div class="p-4 sm:p-6">
<h2 class="font-bold text-lg sm:text-xl mb-2 text-right ltr:text-left">
تسلا موديل اكس - بحالة جيدة جدا شامل الشاحن الاصلي ومحطة شحن
</h2>
<div class="flex flex-col sm:flex-row justify-between items-center mt-4 mb-4">
<p class="font-bold text-xl sm:text-2xl">د.إ 80,000</p>
<a href="#" id="popupToggle">
<button class="bg-transparent text-[#C10D10] font-semibold py-2 px-4 border border-[#C10D10] rounded-md mt-2 sm:mt-0">
مزيد التفاصيل
</button>
</a>
</div>
<hr class="my-4">
<div class="flex items-center text-[#837F7F] gap-1 text-sm sm:text-base font-bold">
<ion-icon name="location-outline"></ion-icon>
<p>دبي - القوز</p>
</div>
</div>
</div>
</div>
<div class="card relative" data-category="ads">
<div class="bg-white rounded-lg overflow-hidden shadow-md ">
<img class="w-full object-cover p-1 h-72 rounded-lg" src="./images/Rectangle2.webp" alt="Tesla Model X">
<ion-icon name="heart" class="absolute top-[-15px] left-[-15px] z-10 m-2 text-[#C10D10] bg-white rounded-full p-1 text-2xl"></ion-icon>
<div class="p-4 sm:p-6">
<h2 class="font-bold text-lg sm:text-xl mb-2 text-right ltr:text-left">
تسلا موديل اكس - بحالة جيدة جدا شامل الشاحن الاصلي ومحطة شحن
</h2>
<div class="flex flex-col sm:flex-row justify-between items-center mt-4 mb-4">
<p class="font-bold text-xl sm:text-2xl">د.إ 80,000</p>
<a href="#" id="popupToggle">
<button class="bg-transparent text-[#C10D10] font-semibold py-2 px-4 border border-[#C10D10] rounded-md mt-2 sm:mt-0">
مزيد التفاصيل
</button>
</a>
</div>
<hr class="my-4">
<div class="flex items-center text-[#837F7F] gap-1 text-sm sm:text-base font-bold">
<ion-icon name="location-outline"></ion-icon>
<p>دبي - القوز</p>
</div>
</div>
</div>
</div>
<div class="card relative" data-category="ads">
<div class="bg-white rounded-lg overflow-hidden shadow-md ">
<img class="w-full object-cover p-1 h-72 rounded-lg" src="./images/Rectangle2.webp" alt="Tesla Model X">
<ion-icon name="heart" class="absolute top-[-15px] left-[-15px] z-10 m-2 text-[#C10D10] bg-white rounded-full p-1 text-2xl"></ion-icon>
<div class="p-4 sm:p-6">
<h2 class="font-bold text-lg sm:text-xl mb-2 text-right ltr:text-left">
تسلا موديل اكس - بحالة جيدة جدا شامل الشاحن الاصلي ومحطة شحن
</h2>
<div class="flex flex-col sm:flex-row justify-between items-center mt-4 mb-4">
<p class="font-bold text-xl sm:text-2xl">د.إ 80,000</p>
<a href="#" id="popupToggle">
<button class="bg-transparent text-[#C10D10] font-semibold py-2 px-4 border border-[#C10D10] rounded-md mt-2 sm:mt-0">
مزيد التفاصيل
</button>
</a>
</div>
<hr class="my-4">
<div class="flex items-center text-[#837F7F] gap-1 text-sm sm:text-base font-bold">
<ion-icon name="location-outline"></ion-icon>
<p>دبي - القوز</p>
</div>
</div>
</div>
</div>
<div class="card relative" data-category="personal">
<div class="bg-white rounded-lg overflow-hidden shadow-md ">
<img class="w-full object-cover p-1 h-72 rounded-lg" src="./images/Rectangle10.webp" alt="Tesla Model X">
<ion-icon name="heart" class="absolute top-[-15px] left-[-15px] z-10 m-2 text-[#C10D10] bg-white rounded-full p-1 text-2xl"></ion-icon>
<div class="p-4 sm:p-6">
<h2 class="font-bold text-lg sm:text-xl mb-2 text-right ltr:text-left">
تسلا موديل اكس - بحالة جيدة جدا شامل الشاحن الاصلي ومحطة شحن
</h2>
<div class="flex flex-col sm:flex-row justify-between items-center mt-4 mb-4">
<p class="font-bold text-xl sm:text-2xl">د.إ 75,000</p>
<a href="#" id="popupToggle">
<button class="bg-transparent text-[#C10D10] font-semibold py-2 px-4 border border-[#C10D10] rounded-md mt-2 sm:mt-0">
مزيد التفاصيل
</button>
</a>
</div>
<hr class="my-4">
<div class="flex items-center text-[#837F7F] gap-1 text-sm sm:text-base font-bold">
<ion-icon name="location-outline"></ion-icon>
<p>دبي - القوز</p>
</div>
</div>
</div>
</div>
<div class="card relative" data-category="personal">
<div class="bg-white rounded-lg overflow-hidden shadow-md ">
<img class="w-full object-cover p-1 h-72 rounded-lg" src="./images/Rectangle10.webp" alt="Tesla Model X">
<ion-icon name="heart" class="absolute top-[-15px] left-[-15px] z-10 m-2 text-[#C10D10] bg-white rounded-full p-1 text-2xl"></ion-icon>
<div class="p-4 sm:p-6">
<h2 class="font-bold text-lg sm:text-xl mb-2 text-right ltr:text-left">
تسلا موديل اكس - بحالة جيدة جدا شامل الشاحن الاصلي ومحطة شحن
</h2>
<div class="flex flex-col sm:flex-row justify-between items-center mt-4 mb-4">
<p class="font-bold text-xl sm:text-2xl">د.إ 75,000</p>
<a href="#" id="popupToggle">
<button class="bg-transparent text-[#C10D10] font-semibold py-2 px-4 border border-[#C10D10] rounded-md mt-2 sm:mt-0">
مزيد التفاصيل
</button>
</a>
</div>
<hr class="my-4">
<div class="flex items-center text-[#837F7F] gap-1 text-sm sm:text-base font-bold">
<ion-icon name="location-outline"></ion-icon>
<p>دبي - القوز</p>
</div>
</div>
</div>
</div>
</div> -->
<div class="flex flex-col items-center justify-center gap-10 mt-20">
<img src="./images/Illustration.webp" alt="Empty">
<h2 class="sm:text-[39.19px] text-2xl font-medium text-[#111827]">قائمة المفضلة فارغة</h2>
</div>
</div>
<!-- End Section -->
<!-- Start Footer -->
<div id="footer"></div>
<!-- End Footer -->
<script>
const buttons = document.querySelectorAll('.filter-btn');
buttons.forEach(button => {
button.addEventListener('click', () => {
buttons.forEach(btn => btn.classList.remove('active'));
button.classList.add('active');
});
});
</script>
</body>
</html>