Spaces:
Running

software-website / index.html

Commit History

  1. Fix the product pricing logic on the website so that the correct price is shown based on the selected validity option from the dropdown. Each product object contains Notion fields: - Price_1M - Price_3M - Price_6M Bind the selected validity from the dropdown to dynamically show the correct price. Use this logic in the code: ```js function getPriceByValidity(product, validity) { if (validity === "1 Month") return product.Price_1M; if (validity === "3 Months") return product.Price_3M; if (validity === "6 Months") return product.Price_6M; return "Not available"; } - Follow Up Deployment

    Verified signature
    ef9e54e
  2. 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

    Verified signature
    4c31fe4
  3. initial commit

    Verified signature
    5ecaf80