test

test

Prompt

Role & Objective: Act as a Staff Frontend Engineer and Product Designer. Build a complete, production-ready web application for a photo-sharing social network called "Aperture" (modeled after Instagram Web) inside a single, self-contained index.html file. Technical Constraints: 1. Single-File Output: Deliver everything in one valid HTML5 file with embedded CSS and vanilla JavaScript. Do not use external frameworks (no React, Vue, Tailwind CDN) or icon libraries (no FontAwesome/Lucide CDNs). Render all UI icons (Home, Search, Explore, Reels, Messages, Notifications, Create, Heart, Comment, Share, Bookmark, Verified Badge) as crisp inline <svg> elements. 2. Zero-Placeholder Policy: Do not write // TODO, ..., or abbreviated arrays. Every button, modal, tab, and form must be 100% functional out of the box. 3. Zero Broken Images: Do not use external placeholder URLs (no Unsplash or ://placeholder.com links that could fail or rate-limit). Instead, write a JavaScript helper that generates rich, high-resolution procedural artwork onto <canvas> elements (converting them to dataURLs) or multi-layered geometric <svg> illustrations so every avatar, story ring, and post image renders reliably offline. 4. Persistence: Store posts, likes, bookmarks, and comments in localStorage, and include a "Reset Feed" button in the sidebar/settings menu to restore default demo data. Layout & Responsive Architecture: 1. Theme System: Support both Light Mode (#FFFFFF background, #FAFAFA secondary surface, #DBDBDB 1px hairlines) and Dark Mode (#000000 background, #121212 elevated cards, #262626 1px hairlines) via a working theme toggle. 2. Desktop (1440px): Three-column layout: • Left Navigation Rail (245px fixed): Brand wordmark, navigation items with active states, and theme toggle. • Center Feed Column (max-width: 470px centered): Horizontal scrollable Stories tray (66px circular avatars with gradient unread rings) above a vertical stream of post cards. • Right Context Sidebar (319px fixed): Current user profile switcher, "Suggested for you" list with working Follow / Following toggle buttons, and subtle footer metadata. 3. Tablet (768px): Hide the right sidebar; collapse the left navigation rail into an icon-only narrow rail (72px wide). 4. Mobile (375px): Convert the left rail into a sticky top header (Logo + Notifications/Messages icons) and a sticky bottom navigation bar (48px height). Ensure zero horizontal page overflow. Core Interactive Features (Must All Work): 1. Pre-loaded Dataset: Initialize with 6 distinct user profiles, 8 active Stories, and 5 rich feed posts (including at least two multi-image carousel posts with 3 slides each, realistic captions with clickable #hashtags, timestamps, and 2–3 starter comments per post). 2. Interactive Stories Viewer: Clicking any story opens a full-screen dark overlay modal featuring a segmented top progress bar that auto-advances every 4 seconds, pause-on-hold (mousedown/touchstart), left/right tap zones to skip slides or users, and a working "Reply to story" input that triggers a subtle toast notification. 3. Post Interactions & Carousels: • Multi-Photo Carousel: Posts with multiple slides must have working Previous/Next hover chevrons and bottom pagination dots. • Double-Tap to Like: Double-clicking/tapping a post image triggers an animated white heart burst over the photo and toggles the Like state. • Like, Comment & Bookmark: Clicking the Heart toggles red fill and increments/decrements the exact like count. Clicking Bookmark saves the post to a filterable "Saved" view. Inline comment inputs ("Add a comment...") must submit on Enter or clicking "Post" and append immediately to the post. 4. Post Detail Lightbox Modal: Clicking "View all comments" or the comment icon opens a two-column desktop modal (media on left, scrollable comments thread + action bar on right) that closes via Escape, backdrop click, or X button. 5. Create New Post Modal: Clicking "Create" in the nav opens a modal allowing the user to pick from 4 generated art presets (or upload a local image file via <input type="file">), choose a CSS filter (Normal, Clarendon, Juno, Noir), write a caption and location, and publish it directly to the top of the feed. 6. Working View Tabs: Switching between Home (main feed), Explore (3-column square photo grid with hover overlay showing like/comment counts), and Profile (user header stats, post count updating dynamically, and tabbed grid for Posts vs. Saved) must work seamlessly without page reloads.

A system prompt was added to support web rendering

Response not available

Drag to resize
Drag to resize
Drag to resize