-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
frontendnextjsThe text stack being used for developmentThe text stack being used for developmentuidesign interfacedesign interface
Description
Description
Build a reusable component that displays the user's current streak count and flame icon. This appears at the top of the Streak screen.
Location:
frontend/components/StreakSummaryCard.tsx
Existing Components to Use: public/flame.png (flame icon asset)
Navigation: This component will be accessed when clicking the streak fire icon on the navbar, which navigates to /streak page.
Requirements:
Props
streakCount: numberisActive?: booleanclassName?: string
UI Behavior
- Shows streak number inside a rounded badge
- Shows "day streak!" text
- Flame icon changes color based on streak state: (adhere to figma/css colors)
- inactive → grey
- active → yellow
- Card background matches dark theme
- Fully responsive
Acceptance Criteria
- Component is reusable
- Supports active/inactive states
- Matches design spacing and typography
- Proper TypeScript typing
- Storybook (if available)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
frontendnextjsThe text stack being used for developmentThe text stack being used for developmentuidesign interfacedesign interface