WebsiteStyle type defines the available layout styles for user websites.
Type definition
/hooks/stores/useResumeStore.ts:9
Values
Traditional single-column layout with sections stacked vertically. Best for straightforward, professional presentations.
Modern grid-based layout inspired by bento box design. Features a dynamic card-based layout with visual variety.
Usage
TheWebsiteStyle type is used throughout the application to manage user website appearance:
In the resume store
In components
/app/(user)/[slug]/page.tsx:20
In the database
Thestyle field in the users table stores the selected website style as a string:
Default value
The default website style is"simple", as defined in the store initialization:
/hooks/stores/useResumeStore.ts:115
Changing the style
Users can change their website style through theWebsiteStyleSelector component, which updates both the Zustand store and the database:
/hooks/stores/useResumeStore.ts:116-119
Related documentation
- Website styles - User-facing guide to choosing styles
- Update user data - API endpoint for updating style