File manager - Edit - /home/webapp69.cm.in.th/u69319090048/shop69319090048/My prompt.txt
Back
You are an expert full-stack developer. Build a complete T-shirt e-commerce demo website with the following exact specifications. Deliver a working, self-contained project. Technical Constraints Backend: PHP 7.4 or lower — do not use any PHP 8+ only syntax (no union types, no match expressions, no enums, no constructor property promotion). Zero build tooling. No Node.js, no npm install, no webpack/vite, no composer install requiring internet access at setup. Plain HTML/CSS/JS + vanilla PHP only. The site must run by simply starting PHP's built-in server (php -S localhost:8000) or dropping the folder into any Apache/XAMPP htdocs — no terminal command chains, no .env setup steps. Use plain $_SESSION (or a flat JSON/file-based store) for the shopping bag — no database setup required. If persistence is needed, use flat file/JSON storage, not MySQL, to avoid extra setup steps. Product images: pull real t-shirt images via direct hotlinked URLs from any public source (e.g., Unsplash, placeholder image CDNs) — do not require local image uploads. Fully responsive — must work cleanly on both mobile and desktop breakpoints (flexbox/grid, no fixed pixel-only layouts). Visual Style Minimalist black-and-white aesthetic inspired by apple.com/store — generous white space, large clean typography, no flashy colors, no gradients, no loud banners. No promotional/FOMO elements anywhere — no countdown timers, no "limited stock," no flash sale badges, no urgency language. Keep tone calm and professional throughout. Dark/light mode toggle available site-wide (persist choice via localStorage), affecting all pages consistently. Typography: a clean sans-serif (e.g., system-ui / -apple-system / "Inter") for Latin text, and a "loopless" (ไม่มีหัว) Thai sans-serif (e.g., "Sarabun," "Prompt," "IBM Plex Sans Thai Looped" is NOT loopless — use "Prompt" or "Noto Sans Thai" configured for loopless style) for Thai text support. Pages Required 1. Home Page Combined homepage + product showcase, styled like Apple's store landing page. Products organized into three tiers: Basic, Pro, Luxury — each in its own clearly separated section, similar to how Apple splits iPhone/MacBook tiers. Each tier section links to that product's config page. 2. Product Configuration Page Apple product-config-page layout (image left/center, options right, sticky summary). Configurable options: Size: S, M, L, XL, XXL, Free Size Trade-in option (select an old t-shirt condition for a discount, like Apple Trade In) Extended Warranty add-on (like AppleCare+, with tiers/pricing) Live price calculator in the top-right that updates as options change, showing base price, trade-in discount, and warranty addition. Sticky "Add to Bag" button at the bottom. 3. Bag Page Styled like Apple Store's Bag page. Lists all items added across sessions/products, with running subtotal, shows selected size/trade-in/warranty per item, allows quantity/remove edits. "Checkout" button proceeds to checkout. 4. Checkout Page No login/signup — pure demo checkout. Fields: Contact info, shipping address, card number (dummy input, no real validation/processing). Payment method selector: PayPal / Google Pay / Apple Pay (as visual radio options only — clicking them must NOT redirect anywhere or trigger real payment flows). Single "Confirm Payment" button — no additional conditions or validations blocking it. 5. Payment Successful Page Large plain text confirmation (e.g., "Your Order Is Complete") — no checkmark icon, no success graphic, text-only. A top navigation bar button to return to Home or other sections. Deliverables Folder structure with index.php, product.php, bag.php, checkout.php, success.php, a shared header.php/footer.php, one global style.css (with CSS variables for dark/light theming), and one script.js. Comment the code clearly so it's easy to extend. Provide a short README explaining how to run it with zero setup (just php -S localhost:8000).
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.37 |
proxy
|
phpinfo
|
Settings