Spaces:
Running

krish95 commited on
Commit
4c31fe4
Β·
verified Β·
1 Parent(s): 5ecaf80

Design a fully responsive and futuristic e-commerce website for a brand called Qubit, which sells software licenses at discounted prices. The website must: Fetch all product data dynamically from a live Notion database Redirect buyers to WhatsApp with a pre-filled message when they click "Buy" Show product details in a modern, animated popup modal Look elegant, clean, and visually appealing using the following custom color palette: 🩡 Light Slate Blue: #5A96E3 (primary accent) βšͺ Off-White: #F9FAFB (background) ⚫ Charcoal Black: #1F1F1F (text & contrast) πŸ’  Cool Gray: #9CA3AF (subtext and shadows) 🎨 Design Guidelines Font: Inter or Poppins (rounded, friendly sans-serif) Layout: Centered container (max-w-7xl), gap-6, p-6, responsive grid Use smooth card shadows (shadow-xl) and hover effects Rounded corners: rounded-2xl Subtle transitions (transition-all, duration-300) No glassmorphism, no purple, no harsh shadows πŸ“¦ Product Structure from Notion Fetch products from this live Notion database endpoint: bash Copy Edit https://notion-api.splitbee.io/v1/table/22e3b1395b1380bfa27ccf729d087255?v=22e3b1395b138018b955000cea8ee8f8 Use these exact properties: Column Name Type Description Name Title Product name Description Text Product description Image URL URL Direct image URL Category Text E.g., Antivirus, Editing, Office Price - 1 Month Number Price in INR Price - 3 Months Number Price in INR Price - 1 Year Number Price in INR Trending Checkbox Optional tag badge 🧩 Notion Fetch Logic (React-style) jsx Copy Edit const [products, setProducts] = useState([]); useEffect(() => { fetch("https://notion-api.splitbee.io/v1/table/22e3b1395b1380bfa27ccf729d087255?v=22e3b1395b138018b955000cea8ee8f8") .then((res) => res.json()) .then((data) => setProducts(data)); }, []); Use product["Image URL"], product["Price - 1 Month"], etc., to dynamically show details. πŸ›οΈ Product Cards Layout Each card should include: Product image (Image URL) Product name Subtext from category Validity selector (1M, 3M, 1Y) Dynamic pricing (based on selection) Button: "Buy on WhatsApp" If Trending is βœ… β†’ show badge on top-left Hovering the card adds subtle scale-105 and shadow change. πŸ”— WhatsApp Redirect Logic On β€œBuy” button click: Open this URL: pgsql Copy Edit https://wa.me/919855990775?text=Hi! I want to purchase [Product Name] with [Selected Validity]. Please send more details. The values should update based on selection Use a function to dynamically insert product name and validity 🧊 Product Popup Modal (Not Full Page) On clicking a product: Show centered modal popup with: Large product image at top Full description Validity dropdown Auto-calculated price Buy on WhatsApp button Close button (top-right) Style of the modal: Width: 90% on mobile, 60% on desktop Rounded-2xl Soft backdrop blur behind Appears with scale/slide transition Use z-50, fixed, backdrop-blur, shadow-2xl πŸ”Ž Filtering & Sorting Add a search input to filter by product name Category filter (optional chips below search bar) Sort dropdown (Price ↑↓, Name A–Z) πŸ“ž Contact Section Link from navbar β†’ scroll to contact section WhatsApp: +91 9855990775 Email: app.qubit@gmail.com Optional: message form (Name + message box) πŸ–₯️ Responsiveness Mobile: 1-column product layout Tablet: 2-column grid Desktop: 3–4 column grid All buttons and dropdowns must be touch-friendly πŸ”š Footer Qubit Β© 2025 – All rights reserved Icons: WhatsApp, Mail Optional: links to Terms, Privacy βœ… Features Checklist βœ… Live Notion data fetch βœ… Dynamic WhatsApp redirection with custom message βœ… Smooth product modal popup (not small, not full page) βœ… Modern, stylish color palette (light blue + off-white + black) βœ… Search + sort + optional category filters βœ… Fully responsive for all screen sizes βœ… Easy to edit by updating Notion ❌ Do NOT Include: No dummy/static data No star ratings or fake reviews No 3D or purple neon No full-page product detail view - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +705 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Software Website
3
- emoji: πŸš€
4
- colorFrom: gray
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: software-website
3
+ emoji: 🐳
4
+ colorFrom: green
5
+ colorTo: red
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,705 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Qubit - Premium Software Licenses</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
9
+ <link rel="preconnect" href="https://fonts.googleapis.com">
10
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
12
+ <style>
13
+ body {
14
+ font-family: 'Poppins', sans-serif;
15
+ background-color: #F9FAFB;
16
+ color: #1F1F1F;
17
+ }
18
+
19
+ .modal-enter {
20
+ opacity: 0;
21
+ transform: scale(0.9);
22
+ }
23
+ .modal-enter-active {
24
+ opacity: 1;
25
+ transform: scale(1);
26
+ transition: all 0.3s ease;
27
+ }
28
+ .modal-exit {
29
+ opacity: 1;
30
+ }
31
+ .modal-exit-active {
32
+ opacity: 0;
33
+ transform: scale(0.9);
34
+ transition: all 0.3s ease;
35
+ }
36
+
37
+ .fade-in {
38
+ animation: fadeIn 0.5s ease-in-out;
39
+ }
40
+
41
+ @keyframes fadeIn {
42
+ from { opacity: 0; }
43
+ to { opacity: 1; }
44
+ }
45
+
46
+ .slide-up {
47
+ animation: slideUp 0.5s ease-out;
48
+ }
49
+
50
+ @keyframes slideUp {
51
+ from { transform: translateY(20px); opacity: 0; }
52
+ to { transform: translateY(0); opacity: 1; }
53
+ }
54
+ </style>
55
+ </head>
56
+ <body class="min-h-screen">
57
+ <!-- Navigation -->
58
+ <nav class="bg-white shadow-sm sticky top-0 z-40">
59
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
60
+ <div class="flex justify-between h-16">
61
+ <div class="flex items-center">
62
+ <div class="flex-shrink-0 flex items-center">
63
+ <span class="text-xl font-bold text-[#1F1F1F]">Qubit</span>
64
+ </div>
65
+ </div>
66
+ <div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
67
+ <a href="#products" class="text-[#1F1F1F] hover:text-[#5A96E3] px-3 py-2 text-sm font-medium transition-colors duration-300">Products</a>
68
+ <a href="#contact" class="text-[#1F1F1F] hover:text-[#5A96E3] px-3 py-2 text-sm font-medium transition-colors duration-300">Contact</a>
69
+ </div>
70
+ <div class="-mr-2 flex items-center md:hidden">
71
+ <button type="button" id="mobile-menu-button" class="inline-flex items-center justify-center p-2 rounded-md text-[#1F1F1F] hover:text-[#5A96E3] focus:outline-none">
72
+ <i data-feather="menu"></i>
73
+ </button>
74
+ </div>
75
+ </div>
76
+ </div>
77
+
78
+ <!-- Mobile menu -->
79
+ <div id="mobile-menu" class="hidden md:hidden bg-white shadow-lg">
80
+ <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
81
+ <a href="#products" class="block px-3 py-2 text-base font-medium text-[#1F1F1F] hover:text-[#5A96E3]">Products</a>
82
+ <a href="#contact" class="block px-3 py-2 text-base font-medium text-[#1F1F1F] hover:text-[#5A96E3]">Contact</a>
83
+ </div>
84
+ </div>
85
+ </nav>
86
+
87
+ <!-- Hero Section -->
88
+ <div class="bg-white">
89
+ <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8 lg:py-20">
90
+ <div class="lg:text-center">
91
+ <h1 class="text-4xl tracking-tight font-extrabold text-[#1F1F1F] sm:text-5xl md:text-6xl">
92
+ <span class="block">Premium Software</span>
93
+ <span class="block text-[#5A96E3]">At Unbeatable Prices</span>
94
+ </h1>
95
+ <p class="mt-3 max-w-md mx-auto text-base text-[#9CA3AF] sm:text-lg md:mt-5 md:text-xl md:max-w-3xl">
96
+ Get genuine software licenses for your business at discounted rates. Instant delivery, lifetime support.
97
+ </p>
98
+ <div class="mt-8 flex justify-center">
99
+ <a href="#products" class="inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-2xl shadow-sm text-white bg-[#5A96E3] hover:bg-[#4a7dc2] transition-colors duration-300">
100
+ Browse Products
101
+ </a>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ </div>
106
+
107
+ <!-- Products Section -->
108
+ <section id="products" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
109
+ <div class="flex flex-col md:flex-row justify-between items-center mb-8">
110
+ <h2 class="text-3xl font-bold text-[#1F1F1F] mb-4 md:mb-0">Our Software Collection</h2>
111
+
112
+ <div class="w-full md:w-auto flex flex-col space-y-3 md:flex-row md:space-y-0 md:space-x-3">
113
+ <div class="relative">
114
+ <input type="text" id="search" placeholder="Search products..." class="w-full md:w-64 px-4 py-2 rounded-2xl border border-[#9CA3AF] focus:outline-none focus:ring-2 focus:ring-[#5A96E3] focus:border-transparent">
115
+ <i data-feather="search" class="absolute right-3 top-2.5 text-[#9CA3AF]"></i>
116
+ </div>
117
+ <select id="sort" class="px-4 py-2 rounded-2xl border border-[#9CA3AF] focus:outline-none focus:ring-2 focus:ring-[#5A96E3] focus:border-transparent">
118
+ <option value="name-asc">Name (A-Z)</option>
119
+ <option value="name-desc">Name (Z-A)</option>
120
+ <option value="price-asc">Price (Low to High)</option>
121
+ <option value="price-desc">Price (High to Low)</option>
122
+ </select>
123
+ </div>
124
+ </div>
125
+
126
+ <!-- Category Chips -->
127
+ <div class="flex flex-wrap gap-2 mb-8" id="category-filters">
128
+ <button class="category-chip px-4 py-1 rounded-full bg-[#5A96E3] text-white text-sm font-medium" data-category="all">All</button>
129
+ <!-- Categories will be added dynamically -->
130
+ </div>
131
+
132
+ <!-- Products Grid -->
133
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6" id="products-grid">
134
+ <!-- Products will be loaded here -->
135
+ <div class="text-center py-8">
136
+ <div class="animate-pulse flex space-x-4">
137
+ <div class="flex-1 space-y-4 py-1">
138
+ <div class="h-4 bg-[#9CA3AF] rounded w-3/4 mx-auto"></div>
139
+ <div class="space-y-2">
140
+ <div class="h-4 bg-[#9CA3AF] rounded"></div>
141
+ <div class="h-4 bg-[#9CA3AF] rounded w-5/6"></div>
142
+ </div>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </section>
148
+
149
+ <!-- Contact Section -->
150
+ <section id="contact" class="bg-white py-12">
151
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
152
+ <div class="lg:text-center mb-12">
153
+ <h2 class="text-3xl font-bold text-[#1F1F1F]">Get In Touch</h2>
154
+ <p class="mt-2 max-w-2xl text-lg text-[#9CA3AF] lg:mx-auto">
155
+ Have questions? Reach out to us anytime.
156
+ </p>
157
+ </div>
158
+
159
+ <div class="mt-10 sm:mt-20">
160
+ <div class="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3">
161
+ <div class="bg-[#F9FAFB] p-6 rounded-2xl shadow-sm hover:shadow-md transition-shadow duration-300">
162
+ <div class="flex items-center">
163
+ <div class="flex-shrink-0 bg-[#5A96E3] p-3 rounded-full text-white">
164
+ <i data-feather="mail"></i>
165
+ </div>
166
+ <div class="ml-4">
167
+ <h3 class="text-lg font-medium text-[#1F1F1F]">Email</h3>
168
+ <p class="mt-1 text-sm text-[#9CA3AF]">We'll respond within 24 hours</p>
169
+ <p class="mt-2 text-sm text-[#5A96E3]">app.qubit@gmail.com</p>
170
+ </div>
171
+ </div>
172
+ </div>
173
+
174
+ <div class="bg-[#F9FAFB] p-6 rounded-2xl shadow-sm hover:shadow-md transition-shadow duration-300">
175
+ <div class="flex items-center">
176
+ <div class="flex-shrink-0 bg-[#5A96E3] p-3 rounded-full text-white">
177
+ <i data-feather="message-square"></i>
178
+ </div>
179
+ <div class="ml-4">
180
+ <h3 class="text-lg font-medium text-[#1F1F1F]">WhatsApp</h3>
181
+ <p class="mt-1 text-sm text-[#9CA3AF]">Instant response during business hours</p>
182
+ <p class="mt-2 text-sm text-[#5A96E3]">+91 9855990775</p>
183
+ </div>
184
+ </div>
185
+ </div>
186
+
187
+ <div class="bg-[#F9FAFB] p-6 rounded-2xl shadow-sm hover:shadow-md transition-shadow duration-300">
188
+ <div class="flex items-center">
189
+ <div class="flex-shrink-0 bg-[#5A96E3] p-3 rounded-full text-white">
190
+ <i data-feather="clock"></i>
191
+ </div>
192
+ <div class="ml-4">
193
+ <h3 class="text-lg font-medium text-[#1F1F1F]">Business Hours</h3>
194
+ <p class="mt-1 text-sm text-[#9CA3AF]">Monday - Friday</p>
195
+ <p class="mt-2 text-sm text-[#5A96E3]">10:00 AM - 7:00 PM IST</p>
196
+ </div>
197
+ </div>
198
+ </div>
199
+ </div>
200
+ </div>
201
+
202
+ <!-- Contact Form -->
203
+ <div class="mt-16 bg-[#F9FAFB] p-6 sm:p-8 rounded-2xl shadow-sm">
204
+ <h3 class="text-xl font-medium text-[#1F1F1F] mb-6">Send us a message</h3>
205
+ <form class="space-y-6">
206
+ <div>
207
+ <label for="name" class="block text-sm font-medium text-[#1F1F1F]">Your Name</label>
208
+ <input type="text" id="name" name="name" class="mt-1 block w-full px-4 py-2 rounded-2xl border border-[#9CA3AF] focus:outline-none focus:ring-2 focus:ring-[#5A96E3] focus:border-transparent">
209
+ </div>
210
+
211
+ <div>
212
+ <label for="email" class="block text-sm font-medium text-[#1F1F1F]">Email Address</label>
213
+ <input type="email" id="email" name="email" class="mt-1 block w-full px-4 py-2 rounded-2xl border border-[#9CA3AF] focus:outline-none focus:ring-2 focus:ring-[#5A96E3] focus:border-transparent">
214
+ </div>
215
+
216
+ <div>
217
+ <label for="message" class="block text-sm font-medium text-[#1F1F1F]">Message</label>
218
+ <textarea id="message" name="message" rows="4" class="mt-1 block w-full px-4 py-2 rounded-2xl border border-[#9CA3AF] focus:outline-none focus:ring-2 focus:ring-[#5A96E3] focus:border-transparent"></textarea>
219
+ </div>
220
+
221
+ <div>
222
+ <button type="submit" class="w-full flex justify-center items-center px-6 py-3 border border-transparent text-base font-medium rounded-2xl shadow-sm text-white bg-[#5A96E3] hover:bg-[#4a7dc2] transition-colors duration-300">
223
+ Send Message
224
+ </button>
225
+ </div>
226
+ </form>
227
+ </div>
228
+ </div>
229
+ </section>
230
+
231
+ <!-- Footer -->
232
+ <footer class="bg-[#1F1F1F] text-white py-8">
233
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
234
+ <div class="flex flex-col md:flex-row justify-between items-center">
235
+ <div class="mb-4 md:mb-0">
236
+ <span class="text-xl font-bold">Qubit</span>
237
+ <p class="text-sm text-[#9CA3AF] mt-1">Premium software at discounted prices</p>
238
+ </div>
239
+
240
+ <div class="flex space-x-6">
241
+ <a href="#" class="text-[#9CA3AF] hover:text-white transition-colors duration-300">
242
+ <i data-feather="message-square"></i>
243
+ </a>
244
+ <a href="#" class="text-[#9CA3AF] hover:text-white transition-colors duration-300">
245
+ <i data-feather="mail"></i>
246
+ </a>
247
+ </div>
248
+ </div>
249
+
250
+ <div class="mt-8 pt-8 border-t border-[#9CA3AF]/10">
251
+ <p class="text-sm text-[#9CA3AF] text-center">Β© 2025 Qubit. All rights reserved.</p>
252
+ </div>
253
+ </div>
254
+ </footer>
255
+
256
+ <!-- Product Modal -->
257
+ <div id="product-modal" class="hidden fixed inset-0 z-50 overflow-y-auto">
258
+ <div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
259
+ <div class="fixed inset-0 transition-opacity" aria-hidden="true">
260
+ <div class="absolute inset-0 bg-[#1F1F1F] opacity-75 backdrop-blur-sm"></div>
261
+ </div>
262
+
263
+ <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
264
+
265
+ <div class="inline-block align-bottom bg-white rounded-2xl text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full w-full max-w-md">
266
+ <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
267
+ <div class="flex justify-between items-start">
268
+ <div>
269
+ <h3 id="modal-title" class="text-xl font-bold text-[#1F1F1F]"></h3>
270
+ <p id="modal-category" class="text-sm text-[#9CA3AF] mt-1"></p>
271
+ </div>
272
+ <button type="button" id="close-modal" class="text-[#9CA3AF] hover:text-[#1F1F1F] focus:outline-none">
273
+ <i data-feather="x"></i>
274
+ </button>
275
+ </div>
276
+
277
+ <div class="mt-4">
278
+ <img id="modal-image" src="" alt="" class="w-full h-48 object-contain rounded-lg">
279
+ <p id="modal-description" class="mt-4 text-sm text-[#1F1F1F]"></p>
280
+
281
+ <div class="mt-6">
282
+ <label for="modal-validity" class="block text-sm font-medium text-[#1F1F1F]">Select Validity</label>
283
+ <select id="modal-validity" class="mt-1 block w-full px-4 py-2 rounded-2xl border border-[#9CA3AF] focus:outline-none focus:ring-2 focus:ring-[#5A96E3] focus:border-transparent">
284
+ <option value="1">1 Month</option>
285
+ <option value="3">3 Months</option>
286
+ <option value="12">1 Year</option>
287
+ </select>
288
+ </div>
289
+
290
+ <div class="mt-4">
291
+ <p class="text-sm font-medium text-[#1F1F1F]">Price</p>
292
+ <p id="modal-price" class="text-2xl font-bold text-[#5A96E3] mt-1"></p>
293
+ </div>
294
+ </div>
295
+ </div>
296
+
297
+ <div class="bg-[#F9FAFB] px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
298
+ <button type="button" id="modal-buy-button" class="w-full inline-flex justify-center rounded-2xl border border-transparent shadow-sm px-4 py-2 bg-[#5A96E3] text-base font-medium text-white hover:bg-[#4a7dc2] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#5A96E3] sm:ml-3 sm:w-auto sm:text-sm transition-colors duration-300">
299
+ Buy on WhatsApp
300
+ </button>
301
+ <button type="button" id="modal-cancel-button" class="mt-3 w-full inline-flex justify-center rounded-2xl border border-[#9CA3AF] shadow-sm px-4 py-2 bg-white text-base font-medium text-[#1F1F1F] hover:bg-[#F9FAFB] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#5A96E3] sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm transition-colors duration-300">
302
+ Cancel
303
+ </button>
304
+ </div>
305
+ </div>
306
+ </div>
307
+ </div>
308
+
309
+ <script>
310
+ document.addEventListener('DOMContentLoaded', function() {
311
+ // Initialize Feather Icons
312
+ feather.replace();
313
+
314
+ // Mobile menu toggle
315
+ const mobileMenuButton = document.getElementById('mobile-menu-button');
316
+ const mobileMenu = document.getElementById('mobile-menu');
317
+
318
+ mobileMenuButton.addEventListener('click', function() {
319
+ mobileMenu.classList.toggle('hidden');
320
+ const icon = mobileMenuButton.querySelector('i');
321
+ if (mobileMenu.classList.contains('hidden')) {
322
+ icon.setAttribute('data-feather', 'menu');
323
+ } else {
324
+ icon.setAttribute('data-feather', 'x');
325
+ }
326
+ feather.replace();
327
+ });
328
+
329
+ // Fetch products from Notion
330
+ const productsGrid = document.getElementById('products-grid');
331
+ const categoryFilters = document.getElementById('category-filters');
332
+ const searchInput = document.getElementById('search');
333
+ const sortSelect = document.getElementById('sort');
334
+
335
+ let products = [];
336
+ let categories = new Set();
337
+
338
+ fetchProducts();
339
+
340
+ async function fetchProducts() {
341
+ try {
342
+ const response = await fetch('https://notion-api.splitbee.io/v1/table/22e3b1395b1380bfa27ccf729d087255?v=22e3b1395b138018b955000cea8ee8f8');
343
+ products = await response.json();
344
+
345
+ // Process products
346
+ products.forEach(product => {
347
+ if (product.Category) {
348
+ categories.add(product.Category);
349
+ }
350
+ });
351
+
352
+ // Add category filters
353
+ categories.forEach(category => {
354
+ const chip = document.createElement('button');
355
+ chip.className = 'category-chip px-4 py-1 rounded-full bg-white text-[#1F1F1F] border border-[#9CA3AF] text-sm font-medium hover:bg-[#5A96E3] hover:text-white transition-colors duration-300';
356
+ chip.textContent = category;
357
+ chip.dataset.category = category;
358
+ categoryFilters.appendChild(chip);
359
+ });
360
+
361
+ renderProducts(products);
362
+ setupEventListeners();
363
+ } catch (error) {
364
+ console.error('Error fetching products:', error);
365
+ productsGrid.innerHTML = `
366
+ <div class="col-span-full text-center py-12">
367
+ <i data-feather="alert-triangle" class="w-12 h-12 text-[#9CA3AF] mx-auto"></i>
368
+ <p class="mt-4 text-[#9CA3AF]">Failed to load products. Please try again later.</p>
369
+ <button onclick="fetchProducts()" class="mt-4 px-4 py-2 bg-[#5A96E3] text-white rounded-2xl hover:bg-[#4a7dc2] transition-colors duration-300">
370
+ Retry
371
+ </button>
372
+ </div>
373
+ `;
374
+ feather.replace();
375
+ }
376
+ }
377
+
378
+ function renderProducts(productsToRender) {
379
+ productsGrid.innerHTML = '';
380
+
381
+ if (productsToRender.length === 0) {
382
+ productsGrid.innerHTML = `
383
+ <div class="col-span-full text-center py-12">
384
+ <i data-feather="search" class="w-12 h-12 text-[#9CA3AF] mx-auto"></i>
385
+ <p class="mt-4 text-[#9CA3AF]">No products found matching your criteria.</p>
386
+ </div>
387
+ `;
388
+ feather.replace();
389
+ return;
390
+ }
391
+
392
+ productsToRender.forEach(product => {
393
+ const productCard = document.createElement('div');
394
+ productCard.className = 'bg-white rounded-2xl shadow-sm hover:shadow-md overflow-hidden transition-all duration-300 hover:scale-[1.02] slide-up';
395
+ productCard.innerHTML = `
396
+ <div class="relative">
397
+ ${product.Trending ? '<span class="absolute top-2 left-2 bg-[#5A96E3] text-white text-xs font-bold px-2 py-1 rounded-full">Trending</span>' : ''}
398
+ <img src="${product['Image URL'] || 'https://via.placeholder.com/300x150?text=No+Image'}" alt="${product.Name}" class="w-full h-40 object-contain p-4">
399
+ </div>
400
+ <div class="p-4">
401
+ <h3 class="text-lg font-bold text-[#1F1F1F] truncate">${product.Name}</h3>
402
+ <p class="text-sm text-[#9CA3AF] mt-1">${product.Category || 'Software'}</p>
403
+
404
+ <div class="mt-4">
405
+ <label for="validity-${product.id}" class="block text-sm font-medium text-[#1F1F1F]">Validity</label>
406
+ <select id="validity-${product.id}" class="product-validity mt-1 block w-full px-3 py-1.5 text-sm rounded-2xl border border-[#9CA3AF] focus:outline-none focus:ring-2 focus:ring-[#5A96E3] focus:border-transparent">
407
+ <option value="1">1 Month</option>
408
+ <option value="3">3 Months</option>
409
+ <option value="12">1 Year</option>
410
+ </select>
411
+ </div>
412
+
413
+ <div class="mt-3 flex justify-between items-center">
414
+ <p class="text-sm font-medium text-[#1F1F1F]">Price:</p>
415
+ <p class="product-price text-lg font-bold text-[#5A96E3]" data-price-1="${product['Price - 1 Month']}" data-price-3="${product['Price - 3 Months']}" data-price-12="${product['Price - 1 Year']}">
416
+ β‚Ή${product['Price - 1 Month']}
417
+ </p>
418
+ </div>
419
+
420
+ <div class="mt-4 flex space-x-2">
421
+ <button class="view-details-btn w-full px-4 py-2 border border-transparent text-sm font-medium rounded-2xl text-[#5A96E3] bg-[#5A96E3]/10 hover:bg-[#5A96E3]/20 transition-colors duration-300" data-product-id="${product.id}">
422
+ Details
423
+ </button>
424
+ <button class="buy-btn w-full px-4 py-2 border border-transparent text-sm font-medium rounded-2xl shadow-sm text-white bg-[#5A96E3] hover:bg-[#4a7dc2] transition-colors duration-300" data-product-id="${product.id}">
425
+ Buy
426
+ </button>
427
+ </div>
428
+ </div>
429
+ `;
430
+ productsGrid.appendChild(productCard);
431
+ });
432
+
433
+ feather.replace();
434
+ }
435
+
436
+ function setupEventListeners() {
437
+ // Validity change handlers
438
+ document.querySelectorAll('.product-validity').forEach(select => {
439
+ select.addEventListener('change', function() {
440
+ const priceElement = this.closest('.bg-white').querySelector('.product-price');
441
+ const price1 = priceElement.dataset.price1;
442
+ const price3 = priceElement.dataset.price3;
443
+ const price12 = priceElement.dataset.price12;
444
+
445
+ switch(this.value) {
446
+ case '1':
447
+ priceElement.textContent = `β‚Ή${price1}`;
448
+ break;
449
+ case '3':
450
+ priceElement.textContent = `β‚Ή${price3}`;
451
+ break;
452
+ case '12':
453
+ priceElement.textContent = `β‚Ή${price12}`;
454
+ break;
455
+ }
456
+ });
457
+ });
458
+
459
+ // Buy button handlers
460
+ document.querySelectorAll('.buy-btn').forEach(button => {
461
+ button.addEventListener('click', function() {
462
+ const productId = this.dataset.productId;
463
+ const product = products.find(p => p.id === productId);
464
+ const validitySelect = document.getElementById(`validity-${productId}`);
465
+ const validity = validitySelect.value;
466
+
467
+ let validityText = '';
468
+ let price = '';
469
+
470
+ switch(validity) {
471
+ case '1':
472
+ validityText = '1 Month';
473
+ price = product['Price - 1 Month'];
474
+ break;
475
+ case '3':
476
+ validityText = '3 Months';
477
+ price = product['Price - 3 Months'];
478
+ break;
479
+ case '12':
480
+ validityText = '1 Year';
481
+ price = product['Price - 1 Year'];
482
+ break;
483
+ }
484
+
485
+ const message = `Hi! I want to purchase ${product.Name} with ${validityText} validity for β‚Ή${price}. Please send more details.`;
486
+ const encodedMessage = encodeURIComponent(message);
487
+ window.open(`https://wa.me/919855990775?text=${encodedMessage}`, '_blank');
488
+ });
489
+ });
490
+
491
+ // View details button handlers
492
+ document.querySelectorAll('.view-details-btn').forEach(button => {
493
+ button.addEventListener('click', function() {
494
+ const productId = this.dataset.productId;
495
+ const product = products.find(p => p.id === productId);
496
+ openProductModal(product);
497
+ });
498
+ });
499
+
500
+ // Category filter handlers
501
+ document.querySelectorAll('.category-chip').forEach(chip => {
502
+ chip.addEventListener('click', function() {
503
+ // Update active chip
504
+ document.querySelectorAll('.category-chip').forEach(c => {
505
+ if (c.dataset.category === 'all') {
506
+ c.classList.remove('bg-[#5A96E3]', 'text-white');
507
+ c.classList.add('bg-white', 'text-[#1F1F1F]', 'border', 'border-[#9CA3AF]');
508
+ } else {
509
+ c.classList.remove('bg-[#5A96E3]', 'text-white');
510
+ c.classList.add('bg-white', 'text-[#1F1F1F]', 'border', 'border-[#9CA3AF]');
511
+ }
512
+ });
513
+
514
+ this.classList.remove('bg-white', 'text-[#1F1F1F]', 'border', 'border-[#9CA3AF]');
515
+ this.classList.add('bg-[#5A96E3]', 'text-white');
516
+
517
+ // Filter products
518
+ const category = this.dataset.category;
519
+ let filteredProducts = [...products];
520
+
521
+ if (category !== 'all') {
522
+ filteredProducts = products.filter(product => product.Category === category);
523
+ }
524
+
525
+ // Apply search and sort
526
+ filteredProducts = filterAndSortProducts(filteredProducts);
527
+ renderProducts(filteredProducts);
528
+ setupEventListeners();
529
+ });
530
+ });
531
+
532
+ // Search input handler
533
+ searchInput.addEventListener('input', function() {
534
+ const searchTerm = this.value.toLowerCase();
535
+ let filteredProducts = [...products];
536
+
537
+ // Apply category filter
538
+ const activeCategory = document.querySelector('.category-chip.bg-[#5A96E3]');
539
+ if (activeCategory && activeCategory.dataset.category !== 'all') {
540
+ filteredProducts = products.filter(product => product.Category === activeCategory.dataset.category);
541
+ }
542
+
543
+ // Apply search
544
+ if (searchTerm) {
545
+ filteredProducts = filteredProducts.filter(product =>
546
+ product.Name.toLowerCase().includes(searchTerm) ||
547
+ (product.Description && product.Description.toLowerCase().includes(searchTerm))
548
+ );
549
+ }
550
+
551
+ // Apply sort
552
+ filteredProducts = sortProducts(filteredProducts, sortSelect.value);
553
+
554
+ renderProducts(filteredProducts);
555
+ setupEventListeners();
556
+ });
557
+
558
+ // Sort select handler
559
+ sortSelect.addEventListener('change', function() {
560
+ let filteredProducts = [...products];
561
+
562
+ // Apply category filter
563
+ const activeCategory = document.querySelector('.category-chip.bg-[#5A96E3]');
564
+ if (activeCategory && activeCategory.dataset.category !== 'all') {
565
+ filteredProducts = products.filter(product => product.Category === activeCategory.dataset.category);
566
+ }
567
+
568
+ // Apply search
569
+ const searchTerm = searchInput.value.toLowerCase();
570
+ if (searchTerm) {
571
+ filteredProducts = filteredProducts.filter(product =>
572
+ product.Name.toLowerCase().includes(searchTerm) ||
573
+ (product.Description && product.Description.toLowerCase().includes(searchTerm))
574
+ );
575
+ }
576
+
577
+ // Apply sort
578
+ filteredProducts = sortProducts(filteredProducts, this.value);
579
+
580
+ renderProducts(filteredProducts);
581
+ setupEventListeners();
582
+ });
583
+ }
584
+
585
+ function filterAndSortProducts(productsToFilter) {
586
+ // Apply search
587
+ const searchTerm = searchInput.value.toLowerCase();
588
+ let filteredProducts = [...productsToFilter];
589
+
590
+ if (searchTerm) {
591
+ filteredProducts = filteredProducts.filter(product =>
592
+ product.Name.toLowerCase().includes(searchTerm) ||
593
+ (product.Description && product.Description.toLowerCase().includes(searchTerm))
594
+ );
595
+ }
596
+
597
+ // Apply sort
598
+ return sortProducts(filteredProducts, sortSelect.value);
599
+ }
600
+
601
+ function sortProducts(productsToSort, sortOption) {
602
+ return [...productsToSort].sort((a, b) => {
603
+ switch(sortOption) {
604
+ case 'name-asc':
605
+ return a.Name.localeCompare(b.Name);
606
+ case 'name-desc':
607
+ return b.Name.localeCompare(a.Name);
608
+ case 'price-asc':
609
+ return (a['Price - 1 Month'] || 0) - (b['Price - 1 Month'] || 0);
610
+ case 'price-desc':
611
+ return (b['Price - 1 Month'] || 0) - (a['Price - 1 Month'] || 0);
612
+ default:
613
+ return 0;
614
+ }
615
+ });
616
+ }
617
+
618
+ // Product modal functions
619
+ function openProductModal(product) {
620
+ const modal = document.getElementById('product-modal');
621
+ const modalTitle = document.getElementById('modal-title');
622
+ const modalCategory = document.getElementById('modal-category');
623
+ const modalImage = document.getElementById('modal-image');
624
+ const modalDescription = document.getElementById('modal-description');
625
+ const modalPrice = document.getElementById('modal-price');
626
+ const modalBuyButton = document.getElementById('modal-buy-button');
627
+
628
+ modalTitle.textContent = product.Name;
629
+ modalCategory.textContent = product.Category || 'Software';
630
+ modalImage.src = product['Image URL'] || 'https://via.placeholder.com/300x150?text=No+Image';
631
+ modalImage.alt = product.Name;
632
+ modalDescription.textContent = product.Description || 'No description available.';
633
+ modalPrice.textContent = `β‚Ή${product['Price - 1 Month']}`;
634
+
635
+ // Set up validity selector
636
+ const validitySelect = document.getElementById('modal-validity');
637
+ validitySelect.value = '1';
638
+ validitySelect.addEventListener('change', function() {
639
+ switch(this.value) {
640
+ case '1':
641
+ modalPrice.textContent = `β‚Ή${product['Price - 1 Month']}`;
642
+ break;
643
+ case '3':
644
+ modalPrice.textContent = `β‚Ή${product['Price - 3 Months']}`;
645
+ break;
646
+ case '12':
647
+ modalPrice.textContent = `β‚Ή${product['Price - 1 Year']}`;
648
+ break;
649
+ }
650
+ });
651
+
652
+ // Set up buy button
653
+ modalBuyButton.onclick = function() {
654
+ let validityText = '';
655
+ let price = '';
656
+
657
+ switch(validitySelect.value) {
658
+ case '1':
659
+ validityText = '1 Month';
660
+ price = product['Price - 1 Month'];
661
+ break;
662
+ case '3':
663
+ validityText = '3 Months';
664
+ price = product['Price - 3 Months'];
665
+ break;
666
+ case '12':
667
+ validityText = '1 Year';
668
+ price = product['Price - 1 Year'];
669
+ break;
670
+ }
671
+
672
+ const message = `Hi! I want to purchase ${product.Name} with ${validityText} validity for β‚Ή${price}. Please send more details.`;
673
+ const encodedMessage = encodeURIComponent(message);
674
+ window.open(`https://wa.me/919855990775?text=${encodedMessage}`, '_blank');
675
+ };
676
+
677
+ // Show modal
678
+ modal.classList.remove('hidden');
679
+ modal.classList.add('fade-in');
680
+
681
+ // Close modal handlers
682
+ document.getElementById('close-modal').onclick = function() {
683
+ modal.classList.add('hidden');
684
+ modal.classList.remove('fade-in');
685
+ };
686
+
687
+ document.getElementById('modal-cancel-button').onclick = function() {
688
+ modal.classList.add('hidden');
689
+ modal.classList.remove('fade-in');
690
+ };
691
+
692
+ // Close when clicking outside modal
693
+ modal.addEventListener('click', function(e) {
694
+ if (e.target === modal) {
695
+ modal.classList.add('hidden');
696
+ modal.classList.remove('fade-in');
697
+ }
698
+ });
699
+
700
+ feather.replace();
701
+ }
702
+ });
703
+ </script>
704
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=krish95/software-website" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
705
+ </html>