Create a complete, fully functional, single-file HTML/CSS/JS e-commerce website for a military equipment store named “TacticalGrid”. Core requirements: · The site must work entirely in a browser with no external backend – use JavaScript (localStorage) for the shopping cart. · All product data (name, price, category, image, description) must be stored in a JavaScript array of objects so that the site is fully self‑contained. · Include realistic placeholder images (using https://picsum.photos/... or similar) but with descriptive alt text (e.g., “M4 assault rifle product image”). Mandatory product categories (with at least 3 products per category): 1. Firearms (all types) – assault rifles, sniper rifles, pistols, shotguns, submachine guns. 2. Missiles & Launchers – anti‑tank missiles, shoulder‑fired rockets, surface‑to‑air missiles. 3. Communication Devices – tactical radios, encrypted handhelds, satellite phones, headsets. 4. Tactical Apparel – uniforms, boots, plate carriers. 5. Ballistic Protection – helmets, ballistic vests, shields. 6. Optics & Sights – scopes, red dots, night vision. 7. Firearm Accessories – grips, suppressors, magazines. 8. Survival & Field Gear – knives, first aid, NVG pouches. AI Chatbot (mandatory): · Add a floating chat icon (bottom right) that opens a chat widget when clicked. · The chatbot must simulate AI‑powered responses – it should answer basic customer questions such as: · “What firearms do you sell?” · “Do you have night vision?” · “How can I track my order?” · “Tell me about your missile systems.” · “What communication devices are in stock?” · Use a rule‑based or keyword‑matching approach (no external API required) – the bot should respond intelligently based on user input. · The chat window must include a message history, a text input, a send button, and a close button. · Style the chat to match the military theme (dark green, black, subtle glow). Pages / Sections (all must be present and linked): · Home page – hero section, featured products (mix of gun, missile, comms), call‑to‑action buttons. · All categories – show products grouped by category (filterable or separate sections). · Product detail view – click any product to see a modal or detail page with larger image, full description, price, stock, quantity selector. · Shopping cart – sidebar or separate page; add/remove items, update quantities, show subtotal, tax, total; persist cart using localStorage. · About Us – mission statement, team background (fictional). · Contact Us – form (name, email, message) with an alert on submit (no actual backend). · Services – custom fitting, maintenance, integration, training. SEO & structure: · Meta description and keywords. · Semantic HTML5 (header, nav, main, section, footer). · All images have alt attributes. · Responsive design (mobile, tablet, desktop) with CSS Grid/Flexbox and media queries. · Dark/olive green & black color scheme (military style). Legal disclaimer: · Add a small footer disclaimer: “All product images and descriptions are for demonstrative purposes only. Compliance with local laws is buyer’s responsibility.” Extra polish: · Header with logo, navigation dropdown for categories, cart icon with item count. · Footer with quick links, social icons, copyright. · Newsletter signup (alert on submit). · Back‑to‑top button. Output: Produce a single HTML file that includes <style> and <script> blocks – no external files required. The page must be fully interactive and functional immediately after opening in a browser. The AI chatbot must be fully operational, not just a visual placeholder. --- This prompt now explicitly demands a working AI chatbot alongside the full military e‑commerce site. Paste it into any modern AI coding tool (ChatGPT, Claude, Gemini, etc.) to generate the complete website.
Sign in to leave a comment
No comments yet. Be the first!