-
Notifications
You must be signed in to change notification settings - Fork 11
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
Landing Page: Card implemented #176
base: fear/hov-107-landing-page-navbar
Are you sure you want to change the base?
Conversation
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
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.
added comments, pls check
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" | ||
} | ||
]; |
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
const CardDetails = (props) => { | ||
return ( | ||
<Card variant="outline" margin="small" className={cardBox}> | ||
<h3 className={cardTitle}> | ||
{props.icon} | ||
{props.title} | ||
</h3> | ||
<p>{props.details}</p> | ||
</Card> | ||
); | ||
}; |
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.
keep components in seperate files
<CardDetails | ||
title={object.title} | ||
details={object.data} | ||
icon={object.icon} | ||
/> |
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.
key prop
|
||
export const cardBox = style({ | ||
width: "300px", | ||
height: "209px", |
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.
no need of height and width here, let content dictate the height and width
@@ -1,15 +1,18 @@ | |||
import React from "react"; | |||
import { HoverProvider } from "@hover-design/react"; | |||
import { theme } from "../styles/theme/theme"; | |||
import { Card, Flex } from "@hover-design/react"; |
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.
unused import, remove
Description
Implemented Cards on the landing page
Motivation and Context
Issue : https://linear.app/antstack/issue/HOV-79/landing-page-design#comment-897059bd
Types of changes
Checklist:
Image with temporary background to show text and blur effect
How it looks without the temporary background