v0 prompt

v0: Settings and Profile Page

User settings page with tabbed sections for profile, account, notifications, and danger zone.

Build a settings and profile page for {{product_name}}.

## Settings Sections: {{sections}}
## Color scheme: {{colors}}

### Page Structure

**Layout**
Sidebar navigation (left, 240px) + Content area (right).
Mobile: sidebar collapses to horizontal tab bar at top.

**Sidebar Navigation**
Icon + label for each section: {{sections}}.
Active state with highlighted background and accent color.

**Profile Section**
Avatar upload (click to change + drag-and-drop). Show current avatar with edit overlay.
Form fields: Display name, Username/Handle (with availability check), Bio, Website URL, Location.
Save button (only enabled when changes exist).

**Account Section**
Email address change flow (requires verification).
Password change (current password + new + confirm).
Two-factor authentication toggle with setup flow.

**Notifications Section**
Toggle groups for: Email notifications, In-app notifications, Weekly digest.
Sub-options for each category. Save per-section.

**Billing Section (if applicable)**
Current plan display + "Manage billing" → Stripe portal redirect.

**Integrations Section**
Connected apps list. Connect/disconnect each. OAuth connection status.

**Danger Zone Section**
Outlined red card at bottom.
"Export my data" button.
"Delete account" — requires typing account name to confirm.

### Technical Requirements
React Hook Form for all form management.
Optimistic updates with toast notifications.
Unsaved changes warning on navigation away.

Fill in: {{product_name}}, {{sections}}, {{colors}}. In Loopy you fill these in a form and copy the finished prompt in one click.