Act as an expert Frontend Developer and UI/UX Designer. Create a clean, modern, and…
Private research annotation
Sign in to add a private research label or note.
- User
Act as an expert Frontend Developer and UI/UX Designer. Create a clean, modern, and FULLY INTERACTIVE single-page e-commerce website for "NUTTYVIET" (a premium healthy nut & snack brand).
Please implement the following specifications with HTML, Tailwind CSS, and vanilla JavaScript (for interactive elements):
- Brand Identity & Colors:
- Concept: Minimalist, organic, friendly ("Good nut - Good mood").
- Colors: Pastel Green (primary/nature), Soft Pastel Yellow (accent/energy/warmth), and a lot of white/light cream space.
- Font: Clean sans-serif (e.g., Inter or Poppins).
- Navigation Bar (Sticky Header):
- Left: Logo "NUTTYVIET"
- Center: Links to sections (Home, Products, Gift Box, About, Contact).
- Right: A Cart Icon with a red/green numeric badge (initially showing "0").
- INTERACTIVE FEATURES TO IMPLEMENT (Crucial):
A. Interactive Shopping Cart:
- Each product card must have an "Add to Cart" (Mua ngay) button.
- Action: Clicking this button must play a subtle animation, increase the cart badge count by 1 in the header, and temporarily display a toast notification: "Đã thêm [Tên sản phẩm] vào giỏ hàng!/[Product Name] has been added to the cart!"
B. Category Filter:
- On the [Products] page, add tab buttons: "All", "Bột ngũ cốc", "Cốm", "Cơm Lứt", "Bánh thuyền".
- Action: Clicking a tab must instantly filter and display only the products belonging to that category with a smooth fade-in effect.
C. Mock Checkout Pop-up (Viettel Post Integration):
- Clicking the Cart Icon in the header should open a checkout summary modal showing the items, standard price (competitive under 140,000 VND), and a "Place Order" (Đặt hàng ngay) button.
- Action: Clicking "Place Order" must trigger a beautiful, success modal saying: "Đặt hàng thành công! Đơn hàng Nutty Việt của bạn đang được chuyển giao cho đơn vị vận chuyển Viettel Post để đóng gói và giao đến bạn sớm nhất/Order successful! Your Nutty Việt order is being handed over to Viettel Post for packaging and delivery to you as soon as possible." (Show a cute delivery truck icon if possible).
D. Interactive Contact Form:
- Submitting the contact form should clear the inputs and show a success message: "Cảm ơn bạn đã liên hệ NUTTYVIET! Chúng tôi sẽ phản hồi sớm nhất/Thank you for contacting NUTTYVIET! We will get back to you as soon as possible.."
- Product Catalog to include (for filtering):
- [Bột ngũ cốc] Bột ngũ cốc dinh dưỡng/ Nutritional Multigrain Powder (75,000 VND)
- Assistant
Implemented the full interactive NUTTYVIET single-page e-commerce site.
What changed
- Replaced
src/App.tsxwith a complete responsive shopping experience. - Updated
src/index.csswith Inter font loading, smooth scrolling, and custom animations. - Added sticky navigation, product filtering, cart badge updates, toast notifications, checkout modal, Viettel Post success modal, and contact form success behavior.
- Included the full requested product catalog with category tabs and cart quantity controls.
Verified
- Production build completed successfully with
npm run buildvia the provided build tool.
- Replaced
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.