Skip to content
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

Open
wants to merge 1 commit into
base: fear/hov-107-landing-page-navbar
Choose a base branch
from

Conversation

smashbrick
Copy link
Contributor

@smashbrick smashbrick commented Mar 13, 2023

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Screenshot 2023-03-13 at 8 21 52 PM

Image with temporary background to show text and blur effect

Screenshot 2023-03-13 at 8 21 59 PM

How it looks without the temporary background

@smashbrick smashbrick requested a review from pruthvi2103 March 13, 2023 14:49
@smashbrick smashbrick self-assigned this Mar 13, 2023
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@pruthvi2103 pruthvi2103 left a 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

Comment on lines +9 to +30
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"
}
];
Copy link
Contributor

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

Comment on lines +32 to +42
const CardDetails = (props) => {
return (
<Card variant="outline" margin="small" className={cardBox}>
<h3 className={cardTitle}>
{props.icon}
{props.title}
</h3>
<p>{props.details}</p>
</Card>
);
};
Copy link
Contributor

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

Comment on lines +48 to +52
<CardDetails
title={object.title}
details={object.data}
icon={object.icon}
/>
Copy link
Contributor

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",
Copy link
Contributor

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";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import, remove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants