-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4 frontend statscard component #10
Conversation
src/components/StatsCard.tsx
Outdated
|
||
const StatsCard = ({ heading, value, icon, date }: StatsCardProps) => { | ||
return ( | ||
<div className="w-[360px] h-[160px] h-40 px-6 py-4 bg-white rounded-lg shadow border border-[#e4e7ec] flex-col justify-start items-start gap-4 inline-flex"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: h-[160px] and h-40 do the same thing so you can remove one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good guys great work! I left one small comment but after that feel free to merge with main
src/app/page.tsx
Outdated
|
||
export default function Home() { | ||
return ( | ||
<div className="flex items-center justify-center h-screen"> | ||
{/* Example Button (ExampleButton.tsx in components folder) */} | ||
<ExampleButton buttonText="Add User" /> | ||
<StatsCard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I forgot but can you remove the components from this file before you merge?
Co-authored-by: Conrad Hsu <[email protected]>
Description
Created the statscard which has 4 variables, a title, a number value, a date and an icon.
Issues
#4
Screenshots
The user won't be doing any tasks with the card besides reading it
Test
Compare to figma using npm run dev
Possible Downsides
The sizing may not be perfect compared to the figma but we tried to make it as close as possible. It is a bit difficult to tell when the fonts are not the same yet.
Additional Documentations
For icons: https://iconify.design/