-
Notifications
You must be signed in to change notification settings - Fork 11
Landing Page: Card implemented #176
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
base: fear/hov-107-landing-page-navbar
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import React from "react"; | ||
import { Card, Flex } from "@hover-design/react"; | ||
import { cardBox, cardTitle } from "./card-details.styles.css"; | ||
import EasyToUse from "./icons/easytouse.svg"; | ||
import FocusOnWhatMatters from "./icons/focusonwhatmatters.svg"; | ||
import PlatformAgnostic from "./icons/platformagnostic.svg"; | ||
import Themeing from "./icons/themeing.svg"; | ||
|
||
const CardData = [ | ||
{ | ||
icon: <EasyToUse />, | ||
title: "Easy To Use", | ||
data: "Hover focuses on easy to use betteries included method, so use it as you would use a native element, no need to learn fancy complex apis to do simple things" | ||
}, | ||
{ | ||
icon: <FocusOnWhatMatters />, | ||
title: "Focus On What Matters", | ||
data: "Easily extend the components and use it to conform to your brand identity." | ||
}, | ||
{ | ||
icon: <PlatformAgnostic />, | ||
title: "Platform agnostic", | ||
data: "Hover focuses on easy to use betteries included method, so use it as you would use a native element, no need to learn fancy complex apis to do simple things" | ||
}, | ||
{ | ||
icon: <Themeing />, | ||
title: "Themeing", | ||
data: "Hover focuses on easy to use betteries included method, so use it as you would use a native element, no need to learn fancy complex apis to do simple things" | ||
} | ||
]; | ||
|
||
const CardDetails = (props) => { | ||
return ( | ||
<Card variant="outline" margin="small" className={cardBox}> | ||
<h3 className={cardTitle}> | ||
{props.icon} | ||
{props.title} | ||
</h3> | ||
<p>{props.details}</p> | ||
</Card> | ||
); | ||
}; | ||
Comment on lines
+32
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. keep components in seperate files |
||
|
||
const CardRow = () => { | ||
return ( | ||
<Flex justifyContent={"center"}> | ||
{CardData.map((object, i) => ( | ||
<CardDetails | ||
title={object.title} | ||
details={object.data} | ||
icon={object.icon} | ||
/> | ||
Comment on lines
+48
to
+52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. key prop |
||
))} | ||
</Flex> | ||
); | ||
}; | ||
|
||
export { CardRow }; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
|
||
export const cardBox = style({ | ||
width: "300px", | ||
height: "209px", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no need of height and width here, let content dictate the height and width |
||
color: "white", | ||
backdropFilter: "blur(3px)" | ||
}); | ||
|
||
export const cardTitle = style({ | ||
margin: 0, | ||
display: "flex", | ||
alignItems: "center" | ||
}); |
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.
seperate this into a seperate
cardDetails.data.ts
file