Opinionated Kotlin Multiplatform preferences: share logic not UI by default, thin expect/actual, Ktor and SQLDelight in common code, coroutines and Flow, clean Swift interop and fast CI.
# Kotlin Multiplatform taste of a mobile developer who wants one codebase without fighting either platform - Share business logic, networking, persistence and validation first; keep native UI per platform unless the team explicitly chooses Compose Multiplatform. Confidence: 0.80 - Start from the official KMP wizard template and keep the module layout boring: shared, androidApp, iosApp. Confidence: 0.75 - Split a growing shared module into feature modules early instead of one giant shared module. Confidence: 0.70 - Keep expect/actual declarations tiny and few; prefer interfaces in common code with platform implementations injected at startup. Confidence: 0.85 - Use Ktor client in commonMain with the platform engines (OkHttp on Android, Darwin on iOS) and kotlinx.serialization for JSON. Confidence: 0.90 - Use SQLDelight or Room for KMP for local storage so schemas and queries live in shared code. Confidence: 0.80 - Use kotlinx-datetime instead of platform date APIs in shared code. Confidence: 0.85 - Expose suspend functions and Flow from shared code and use SKIE or KMP-NativeCoroutines so Swift gets async/await and AsyncSequence. Confidence: 0.80 - Never block the main thread in shared code; inject dispatchers so tests can swap them. Confidence: 0.85 - Keep shared ViewModels or presenters platform-neutral and expose immutable UI state as StateFlow. Confidence: 0.75 - Use Koin or manual constructor injection in common code; avoid DI frameworks that only work on Android. Confidence: 0.70 - Design the Swift-facing API on purpose: avoid generics-heavy, sealed-class-heavy or default-argument APIs that translate badly to Objective-C headers. Confidence: 0.80 - Ship the iOS framework through Swift Package Manager (XCFramework) or direct integration rather than CocoaPods for new projects. Confidence: 0.70 - Manage versions with a Gradle version catalog and keep Kotlin, Compose and AGP versions upgraded together. Confidence: 0.85 - Put build logic in convention plugins instead of copy-pasting Gradle blocks across modules. Confidence: 0.75 - Write most tests in commonTest with kotlin.test and run them on both JVM and iOS simulator targets. Confidence: 0.85 - Use Turbine for testing Flows and fakes over mocking libraries that do not support Kotlin/Native. Confidence: 0.75 - Handle errors with sealed result types at the shared boundary instead of letting Kotlin exceptions crash Swift callers. Confidence: 0.80 - Mark functions that can throw to Swift with @Throws so iOS sees real errors. Confidence: 0.85 - Keep secrets and API keys out of shared code; load them per platform from the build config or a backend. Confidence: 0.85 - Cache Gradle and Kotlin/Native artifacts in CI and run iOS builds only on macOS runners when shared or iOS code changes. Confidence: 0.75 - Let iOS developers review shared module API changes so Kotlin-first decisions do not surprise the Swift side. Confidence: 0.70
CrossNote is a cross-platform note-taking and knowledge-management application that runs on Android, iOS, Windows, and Linux, with installable executable files for desktop and mobile platforms.
PROJECT: CrossNote ROLE: Act as a senior software architect, cross-platform full-stack developer, UI/UX designer, desktop/mobile engineer, QA engineer, DevOps engineer, and security engineer. GOAL: Build a complete, production-ready cross-platform note-taking and knowledge-management application called CrossNote. TARGET USERS: Students, writers, developers, researchers, and professionals who need to capture notes, organize knowledge, sync content across devices, and access their notes offline on Android, iOS, Windows, and Linux. BUSINESS CONTEXT: CrossNote helps users capture ideas, organize notes into notebooks and tags, search content quickly, attach files, sync securely across devices, and work offline. It provides native-feeling applications for mobile and desktop with installable executable files. CORE FEATURES: 1. User registration, login, logout, password reset, profile management, and multi-device session management. 2. Create, edit, delete, restore, duplicate, archive, and pin notes. 3. Organize notes into notebooks, folders, tags, favorites, and trash. 4. Rich-text note editor with headings, lists, checkboxes, code blocks, tables, links, images, and file attachments. 5. Markdown support with live preview and Markdown import/export. 6. Full-text search across note titles, content, tags, and attachments. 7. Offline-first architecture: users can create and edit notes without an internet connection. 8. Secure cloud synchronization with conflict detection, merge resolution, and version history. 9. End-to-end encryption option for private notes. 10. File attachments including images, PDFs, documents, audio, and videos. 11. Note sharing through secure links with optional password protection and expiration date. 12. Collaboration on shared notebooks with role-based permissions. 13. Reminders, due dates, checklists, and task-style notes. 14. Dark mode, light mode, custom themes, and font-size accessibility settings. 15. Global keyboard shortcuts, command palette, and quick-capture window on desktop. 16. Import notes from Markdown, plain text, HTML, and Evernote-compatible export files. 17. Export notes to Markdown, PDF, HTML, plain text, and JSON. 18. Automatic backups and local encrypted backup export. 19. Cross-platform sync status indicator showing synced, pending, conflicted, and offline items. 20. Admin dashboard for user management, storage usage, subscription plans, and abuse monitoring. USER STORIES: - As a student, I want to organize notes into notebooks and tags so that I can find information quickly. - As a writer, I want to write notes offline so that I can continue working without an internet connection. - As a professional, I want to sync notes across Android, iOS, Windows, and Linux so that my content is always up to date. - As a privacy-focused user, I want to encrypt my private notes so that only I can read them. - As a team member, I want to collaborate on shared notebooks so that we can work together efficiently. - As a desktop user, I want an installable executable file so that I can install CrossNote on Windows or Linux. - As a mobile user, I want installable Android and iOS applications so that I can access my notes on my phone. TECH STACK: - Cross-platform application: Flutter + Dart - Desktop packaging: Flutter Windows executable and Linux AppImage, DEB, or RPM - Mobile packaging: Android APK/AAB and iOS IPA/App Store deployment package - Backend: Node.js + NestJS + TypeScript - Database: PostgreSQL with Prisma ORM - Local database: SQLite with Drift - Authentication: JWT authentication with refresh tokens - File storage: AWS S3 or Cloudinary - Real-time sync: WebSockets or Socket.IO - Background sync: WorkManager for Android, Background Tasks for iOS, and system scheduler for desktop - State management: Riverpod - Validation: Freezed and custom validators - Testing: Flutter test, integration_test, and Patrol - Deployment: GitHub Actions, Fastlane, Docker, and cloud platform such as Railway, Render, or AWS ARCHITECTURE: - Use a clean, modular, scalable architecture. - Separate UI, presentation logic, domain models, repositories, local data source, remote data source, sync engine, encryption layer, and external integrations. - Use offline-first design with local SQLite as the source of truth. - Use background synchronization with conflict detection and deterministic merge rules. - Use a repository pattern to abstract local and remote data sources. - Use versioned sync records and timestamps to prevent data loss. - Use dependency injection for testability and maintainability. - Make the application scalable, maintainable, and production-ready. USER INTERFACE: - Build a modern, clean, responsive, and platform-adaptive UI. - Create a mobile layout with bottom navigation, note list, note editor, search, and settings. - Create a desktop layout with sidebar navigation, multi-pane view, command palette, keyboard shortcuts, and resizable panels. - Build a notebook and tag management screen. - Build a rich-text editor with formatting toolbar, Markdown preview, attachments, checkboxes, and search within note. - Build a sync status screen showing pending changes, conflicts, last sync time, and sync errors. - Build a settings screen for account, appearance, sync, encryption, backups, storage, and shortcuts. - Include empty states, loading states, error states, and offline indicators. - Support dark mode, light mode, and system theme. - Ensure accessibility, large-text support, keyboard navigation, and screen-reader compatibility. SECURITY & PRIVACY: - Never hardcode API keys, passwords, tokens, encryption keys, or secrets. - Use secure environment configuration and provide a .env.example file. - Store sensitive data using platform secure storage: Android Keystore, iOS Keychain, Windows Credential Manager, and Linux Secret Service where available. - Encrypt local databases and sensitive files at rest. - Use end-to-end encryption for optional private notes. - Validate and sanitize all user input on client and server. - Protect against SQL injection, XSS, CSRF, insecure file uploads, and malicious attachment handling. - Hash passwords using bcrypt or Argon2. - Implement role-based access control and server-side authorization checks. - Require explicit confirmation before deleting notes, notebooks, attachments, backups, or account data. - Do not expose sensitive data, stack traces, tokens, encryption keys, or internal errors in logs or API responses. - Apply rate limiting to authentication and file-upload endpoints. - Use secure cookies, token expiration, refresh-token rotation, and device-session revocation. - Scan uploaded files for malicious content where applicable. DATA MODEL: - User: id, name, email, passwordHash, avatarUrl, plan, emailVerified, createdAt, updatedAt. - Device: id, userId, deviceName, platform, appVersion, lastSyncAt, isActive, createdAt. - Notebook: id, ownerId, title, description, color, icon, isShared, createdAt, updatedAt, deletedAt. - Note: id, ownerId, notebookId, title, content, contentType, isPinned, isArchived, isEncrypted, createdAt, updatedAt, deletedAt, lastModifiedDeviceId, syncVersion. - Tag: id, ownerId, name, color, createdAt, updatedAt. - NoteTag: id, noteId, tagId. - Attachment: id, noteId, uploaderId, fileUrl, localFilePath, fileName, fileSize, mimeType, checksum, createdAt. - NoteVersion: id, noteId, versionNumber, snapshotJson, createdBy, createdAt. - SharedNotebook: id, notebookId, userId, role, invitedBy, joinedAt. - ShareLink: id, noteId, notebookId, slug, passwordHash, expiresAt, viewCount, createdBy, createdAt. - Reminder: id, noteId, userId, remindAt, repeatRule, status, createdAt. - SyncConflict: id, userId, noteId, localSnapshot, remoteSnapshot, resolutionStatus, createdAt, resolvedAt. - Backup: id, userId, fileUrl, size, checksum, createdAt. - AuditLog: id, userId, action, resourceType, resourceId, metadata, ipAddress, createdAt. PLATFORM BUILD REQUIREMENTS: - Build a Windows executable installer for x64 and ARM64 where applicable. - Build a Linux AppImage, DEB package, and RPM package. - Build an Android APK for direct installation and an Android App Bundle for Google Play. - Build an iOS IPA package and provide App Store deployment instructions. - Ensure the application works on Android, iOS, Windows, and Linux. - Include platform-specific permissions, icons, splash screens, and app metadata. - Provide signed build instructions and release configuration. - Include automatic update support for desktop applications where feasible. - Ensure offline functionality works without requiring a backend connection. TESTING & QUALITY: - Write unit tests for note CRUD, sync logic, conflict resolution, encryption, Markdown parsing, search, and backup/export. - Write integration tests for authentication, notebooks, notes, attachments, sharing, reminders, and synchronization. - Write end-to-end tests for creating notes offline, editing notes, syncing across devices, sharing notes, restoring deleted notes, and exporting notes. - Include tests for invalid input, unauthorized access, sync conflicts, weak passwords, expired share links, corrupted attachments, and destructive actions. - Ensure the project passes linting, type checking, build, and all tests. DELIVERABLES: - Complete source code with no placeholders or unfinished features. - Flutter client source code for Android, iOS, Windows, and Linux. - Backend source code for authentication, synchronization, sharing, storage, and administration. - README with project overview, setup, environment variables, database setup, run commands, and deployment
Opinionated conventions for shipping iOS and Android apps: release trains, automated signing, staged rollouts, crash thresholds and remote kill switches.
# Mobile App Release taste of a developer who ships iOS and Android apps on a calm, regular train - Release on a fixed schedule (weekly or every two weeks) instead of shipping whenever a feature feels done. Confidence: 0.85 - Automate builds, signing and store uploads with fastlane or an equivalent CI pipeline; never upload from a laptop. Confidence: 0.95 - Keep signing keys and certificates in a secrets manager or match repository, never in the app repo. Confidence: 0.95 - Use Play App Signing on Android so a lost upload key is recoverable. Confidence: 0.90 - Use semantic version names for users and an automatically incremented build number from CI. Confidence: 0.85 - Cut a release branch at code freeze and only merge fixes into it after that. Confidence: 0.80 - Ship every build to internal testers first through TestFlight and the Play internal testing track. Confidence: 0.95 - Use staged rollouts: start at 1 to 5 percent on Google Play and use phased release on the App Store. Confidence: 0.90 - Define crash-free sessions and ANR thresholds up front and pause the rollout automatically when they are crossed. Confidence: 0.85 - Upload dSYMs and R8 mapping files on every build so crash reports are symbolicated. Confidence: 0.95 - Put risky features behind remote feature flags so they can be turned off without a new binary. Confidence: 0.90 - Support a minimum-version check that can show a soft or forced update prompt for broken old versions. Confidence: 0.85 - Keep the backend compatible with at least the last few app versions, since users update slowly. Confidence: 0.90 - Write short, human release notes for the store and avoid "bug fixes and improvements" every time. Confidence: 0.70 - Localize store listings and release notes for the main markets the app is sold in. Confidence: 0.70 - Generate store screenshots automatically from UI tests so they never go stale. Confidence: 0.70 - Run a short manual smoke test on a real low-end Android device and an older iPhone before promoting a build. Confidence: 0.80 - Keep the privacy nutrition label and the Data safety form in version control and update them with each SDK change. Confidence: 0.85 - Audit third-party SDKs before each release for size, permissions and privacy manifest requirements. Confidence: 0.80 - Track app size per build and fail CI when it grows past an agreed budget. Confidence: 0.70 - Keep a written checklist for store review rejections and expedited review requests. Confidence: 0.65 - Tag every released commit in git with the version and build number. Confidence: 0.90 - Use over-the-air JavaScript updates (for React Native or Expo) only for fixes that follow store rules, never to ship big features. Confidence: 0.75
Opinionated Kotlin coroutine conventions for Android and JVM backends with structured concurrency, clear dispatchers and testable flows.
# Kotlin Coroutines taste of an Android and JVM engineer who wants structured concurrency everywhere - Launch coroutines only from a scope tied to a lifecycle, such as `viewModelScope`, `lifecycleScope` or a scope owned by a service. Confidence: 0.95 - Never use `GlobalScope`; if work must outlive a screen, hand it to an application-level scope or WorkManager. Confidence: 0.95 - Make suspend functions main-safe: the function itself switches to `Dispatchers.IO` or `Default` with `withContext`, not the caller. Confidence: 0.90 - Inject dispatchers through the constructor so tests can replace them with a `TestDispatcher`. Confidence: 0.90 - Use `coroutineScope` for parallel work that should fail together, and `supervisorScope` only when children must fail independently. Confidence: 0.85 - Never swallow `CancellationException`; rethrow it from every broad `catch` block. Confidence: 0.95 - Prefer `async`/`await` only for real parallel decomposition, not as a replacement for a plain suspend call. Confidence: 0.80 - Expose UI state as `StateFlow` and one-off events through a `Channel` or a state field that the UI consumes. Confidence: 0.80 - Collect flows in the UI with `repeatOnLifecycle(Lifecycle.State.STARTED)` or `collectAsStateWithLifecycle`. Confidence: 0.90 - Use `stateIn` with `SharingStarted.WhileSubscribed(5_000)` so upstream work stops when nobody is watching. Confidence: 0.80 - Keep flows cold by default and convert to hot with `shareIn` or `stateIn` only at a clear boundary. Confidence: 0.80 - Apply `flowOn` to move upstream work off the main thread instead of wrapping collectors in `withContext`. Confidence: 0.80 - Wrap blocking Java APIs in `withContext(Dispatchers.IO)` and never call `runBlocking` in production code paths. Confidence: 0.90 - Add timeouts to network and database calls with `withTimeout` or `withTimeoutOrNull`, not hand-rolled delays. Confidence: 0.75 - Check `ensureActive()` or `yield()` inside long CPU loops so cancellation actually stops the work. Confidence: 0.80 - Protect shared mutable state with a `Mutex` or confine it to a single coroutine, never a plain `synchronized` block around a suspend call. Confidence: 0.85 - Install a `CoroutineExceptionHandler` at the root scope to log crashes, but handle expected errors with `Result` or sealed types. Confidence: 0.75 - Test coroutines with `runTest` and virtual time, and test flows with Turbine. Confidence: 0.85 - Name important coroutines with `CoroutineName` so logs and debugger output stay readable. Confidence: 0.65 - Keep suspend functions free of `launch` side effects; a function that starts background work should say so in its name. Confidence: 0.75
Opinionated conventions for building modern Android apps with Jetpack Compose and Kotlin.
# Jetpack Compose Android App taste of an Android engineer - Build new screens entirely in Jetpack Compose and keep Views only behind interop for legacy parts. Confidence: 0.90 - Write the whole app in Kotlin with coroutines and Flow; no new RxJava or Java code. Confidence: 0.90 - Follow unidirectional data flow: the ViewModel exposes one immutable UiState as StateFlow and receives events. Confidence: 0.90 - Collect flows in composables with collectAsStateWithLifecycle, not plain collectAsState. Confidence: 0.85 - Hoist state out of composables so most UI functions are stateless and previewable. Confidence: 0.90 - Pass a Modifier parameter as the first optional argument of every reusable composable. Confidence: 0.85 - Keep side effects in LaunchedEffect, DisposableEffect or the ViewModel, never directly in the composable body. Confidence: 0.90 - Mark UI models immutable and use stable collections so recomposition stays cheap. Confidence: 0.75 - Use Hilt for dependency injection and avoid service locators or global singletons. Confidence: 0.80 - Use the repository pattern with Room for local data and Retrofit or Ktor for the network, offline first where it matters. Confidence: 0.80 - Use type-safe Navigation Compose routes instead of string-built destinations. Confidence: 0.80 - Modularize by feature with a shared core module once the app grows past a handful of screens. Confidence: 0.70 - Manage dependencies with a Gradle version catalog and convention plugins instead of copy-pasted build files. Confidence: 0.85 - Use Material 3 with a custom theme and dynamic color, and never hardcode colors or text sizes in screens. Confidence: 0.85 - Write @Preview functions for every screen state: loading, empty, error, content, dark mode and large font. Confidence: 0.80 - Test ViewModels with Turbine and kotlinx-coroutines-test, and UI with the Compose testing APIs. Confidence: 0.85 - Add contentDescription or semantics to every meaningful image and icon button for TalkBack. Confidence: 0.90 - Use WorkManager for deferrable background work and never keep long tasks alive in a ViewModel. Confidence: 0.85 - Enable R8 with tested keep rules and ship Baseline Profiles for faster startup. Confidence: 0.80 - Run ktlint or detekt and Android Lint in CI and treat new warnings as errors. Confidence: 0.75 - Keep strings in resources from day one so localization never requires a refactor. Confidence: 0.85
Act as an Android AI App Security Specialist. Implement secure configurations to protect API keys, prevent misuse, and establish a sustainable pricing model for your application.
Act as an Android AI App Security Specialist. You are responsible for implementing secure configurations to protect API keys, prevent misuse, and establish a sustainable pricing model for your application. Your tasks include: 1. **Backend Proxy Configuration:** - Set up a minimal, secure proxy backend using services like Railway.app, Render.com, Vercel, or Firebase Cloud Functions. - Create a single endpoint to receive user messages and relay them to the AI API: POST/chat. - Ensure the API key is securely stored on the backend and never exposed in the client application. 2. **Android App Updates:** - Remove all API keys from the Android app codebase. - Use Retrofit or Ktor to connect directly to the backend proxy endpoint (e.g., https://albaroka.com/chat). - Ensure no hard-coded keys exist in BuildConfig or code. 3. **Pricing Model Implementation:** - Prefer a subscription model via Google Play over one-time payments for sustainability. - Integrate with Google Play Billing Library (com.android.billingclient:billing:7.0.0). - Manage user quotas and premium memberships from the backend. 4. **Security and Play Compliance:** - Apply strict Proguard rules to obfuscate API calls, keys, and sensitive information. - Ensure compliance with Play Store data policies and testing phases (Internal Testing, Beta). 5. **Configuration Files and Code:** - Abstract API calls within a network package. - Align configurations with MainActivity or ViewModel structures. - Optimize Gradle and Proguard rule files for enhanced security and performance. This setup ensures the privacy of your API key, prevents misuse, supports a subscription-based revenue model, and adheres to Google Play's highest standards. Ensure your backend proxy is scalable and reliable.
Create a professional, production-ready screenshots gallery for iOS/macOS/Android apps that looks like it was designed by the top 1% of app developers. Single HTML file, no build step required.
# App Store Screenshots Gallery Generator
**Create a professional, production-ready screenshots gallery for an iOS/macOS/Android app that looks like it was designed by the top 1% of app developers.**
## Context
You are building a screenshots gallery page for an app. The project has screenshots in a folder (typically `screenshots/`, `fastlane/screenshots/`, or similar). The gallery should be a single HTML file that can be deployed to Netlify, Vercel, or any static host.
## Requirements
### 1. Design System Foundation
Create CSS custom properties (design tokens) for:
- **Colors**: Primary palette (50-900 shades), secondary/accent palette, neutral grays (50-900)
- **Surfaces**: Three surface levels (surface-1, surface-2, surface-3)
- **Typography**: Two-font stack (mono for UI elements, sans for body)
- **Spacing**: Consistent scale (4px base)
- **Borders**: Radius scale (sm, md, lg, xl, 2xl, 3xl)
- **Shadows**: Five elevation levels (sm, md, lg, xl, 2xl)
- **Transitions**: Three speeds (fast: 150ms, normal: 300ms, smooth: 400ms with cubic-bezier)
### 2. Layout Architecture
- **Container**: Max-width 1600px, centered, with responsive padding
- **Grid**: Masonry-style responsive grid using `grid-template-columns: repeat(auto-fill, minmax(340px, 1fr))`
- **Gap**: 2rem on desktop, 1.5rem tablet, 1rem mobile
- **Card aspect ratio**: Maintain consistent screenshot presentation
### 3. Header Section
- **App badge**: Small pill-shaped badge with icon and "IOS APPLICATION" or platform text
- **Title**: Large, bold app name with gradient text treatment
- **Subtitle**: One-line description mentioning key technologies and features
- **Background**: Subtle grid pattern overlay for depth
- **Padding**: Reduced vertical padding (3rem top, 2rem bottom) for compact feel
### 4. Screenshot Cards
Each card should have:
- **Container**: White/off-white background, rounded corners (2xl), subtle shadow
- **Image container**: Gradient background, centered screenshot with white border (8px)
- **Hover effects**:
- Card lifts (-8px translateY) with enhanced shadow
- Screenshot scales (1.04) with slight rotation (0.5deg)
- Top border appears (gradient bar)
- Radial glow overlay fades in
- **Metadata bar**:
- Number badge (gradient background, 26px square)
- Device name (uppercase, small font, mono font)
- **Title**: Bold, mono font, 1rem
- **Description**: One-line caption, smaller font, subtle color
### 5. User Journey Ordering
Order screenshots by how users experience the app:
1. **Login/Onboarding** - First screen users see
2. **Dashboard/Home** - Main landing after login
3. **Primary feature views** - Core app functionality
4. **Settings/Configuration** - Customization screens
5. **Permissions/Integrations** - HealthKit, notifications, etc.
6. **Advanced features** - Sync, sharing, cloud features
7. **Analytics/Reports** - Data visualization screens
8. **Archive/History** - Historical data views
### 6. Animations
- **Entrance**: Staggered fade-in with translateY (0.1s delays between cards)
- **Hover**: Smooth cubic-bezier easing (0.16, 1, 0.3, 1)
- **Scroll**: IntersectionObserver to trigger animations when cards enter viewport
- **Performance**: Use `will-change` for transform and opacity
### 7. Footer
- **Background**: Dark (neutral-900) with subtle gradient overlay
- **Border radius**: Top corners only (2xl)
- **Content**: Minimal metadata (device, date, status) with icons
- **Spacing**: Compact (2rem padding)
### 8. Responsive Breakpoints
- **Desktop** (>1280px): 4-5 columns
- **Tablet** (768-1280px): 2-3 columns
- **Mobile** (<768px): 1 column, reduced padding throughout
### 9. Technical Requirements
- **Single HTML file**: All CSS inline in `<style>` tag
- **External dependencies only**:
- Pico.css (minimal CSS framework)
- Font Awesome (icons)
- Google Fonts (Inter + IBM Plex Mono)
- Animate.css (optional, for additional animations)
- **No build step**: Must work as static HTML
- **Performance**: Optimized animations, no layout shift
- **Accessibility**: Semantic HTML, alt text on images
### 10. Polish Details
- **Subtle gradients**: Background radials for depth (not overwhelming)
- **Border treatment**: 1px solid with alpha transparency
- **Shadow layering**: Multiple shadow values for depth
- **Typography**: Tight letter-spacing on headings (-0.03em)
- **Color consistency**: Use design tokens everywhere, no hardcoded values
- **Image presentation**: White border around screenshots for device frame illusion
## Output Format
Generate a single `index.html` file with:
1. Complete HTML structure
2. Inline CSS with design tokens
3. JavaScript for scroll animations (IntersectionObserver)
4. All screenshot cards with proper metadata
5. Responsive design for all screen sizes
## Example Screenshot Card Structure
```html
<div class="screenshot-card">
<div class="screenshot-img-container">
<img src="screenshot-name.png" alt="Description" class="screenshot-img">
</div>
<div class="screenshot-info">
<div class="screenshot-meta">
<div class="screenshot-number">1</div>
<div class="screenshot-device">iPhone 17 Pro Max</div>
</div>
<h3 class="screenshot-title">Screen Title</h3>
<p class="screenshot-desc">One-line caption</p>
</div>
</div>
```
## Key Differentiators from "AI-looking" Galleries
❌ **Avoid**:
- Excessive gradients and colors
- Large stat cards that waste space
- Verbose descriptions and feature lists
- Section dividers and category headers
- Overwhelming animations
- Inconsistent spacing
- Generic stock photography style
✅ **Emulate**:
- Apple App Store product pages
- Linear, Raycast, Superhuman marketing sites
- Minimalist, content-first design
- Subtle, refined interactions
- Consistent visual rhythm
- Typography-driven hierarchy
- White space as design element
## Deployment Notes
- Gallery should deploy to `project-root/screenshots-gallery/` or similar
- Include `.netlify` folder with `netlify.toml` for configuration
- All screenshots should be in the same folder as `index.html`
- No build process required - pure static HTML
---
**Usage**: Copy this prompt and provide it to an AI assistant along with:
1. The list of screenshot files in your project
2. Your app name and one-line description
3. The platform (iOS, macOS, Android, web)
4. Key technologies used (SwiftUI, React Native, Flutter, etc.)
The AI will generate a production-ready gallery that looks professionally designed.