-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [FB-325] Add new card components (#49) * [FB-328] Add new hero (#52) * [FB-328] Add new footer, favicon, font, final changes (#53)
- Loading branch information
Showing
95 changed files
with
1,846 additions
and
1,409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import React from 'react'; | ||
|
||
import { ReactNode } from "react"; | ||
import styled from 'styled-components'; | ||
import { BOX_BORDER_RADIUS } from '../../globalStyles/sharedStyles/box'; | ||
|
||
const CardComponent = styled.div` | ||
width: 100%; | ||
padding: 36px 48px; | ||
text-align: center; | ||
background-color: #eee; | ||
${BOX_BORDER_RADIUS}; | ||
`; | ||
|
||
const TitleComponent = styled.div` | ||
font-weight: 700; | ||
margin: 20px 0px; | ||
font-size: 20px; | ||
line-height: 30px; | ||
`; | ||
|
||
const IconComponent = styled.div` | ||
width: 40px; | ||
margin: auto; | ||
& svg { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
`; | ||
|
||
const DescriptionComponent = styled.div` | ||
line-height: 24px; | ||
`; | ||
|
||
type CardProps = { | ||
icon: ReactNode; | ||
title: string; | ||
description: string; | ||
}; | ||
|
||
export const Card = ({ icon, title, description }: CardProps) => { | ||
return ( | ||
<CardComponent> | ||
<IconComponent>{icon}</IconComponent> | ||
<TitleComponent>{title}</TitleComponent> | ||
<DescriptionComponent> | ||
{description} | ||
</DescriptionComponent> | ||
</CardComponent> | ||
); | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React, { ReactElement } from 'react'; | ||
import styled from 'styled-components'; | ||
import { Card } from '../../components/Card'; | ||
import media from '../../globalStyles/media'; | ||
|
||
const CardWrapperComponent = styled.div` | ||
display: grid; | ||
grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: 40px; | ||
width: 100%; | ||
margin: auto; | ||
${media.lessThan('lg')` | ||
gap: 20px; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
`} | ||
${media.lessThan('md')` | ||
grid-template-columns: 1fr; | ||
`} | ||
`; | ||
|
||
type CardElement = { | ||
icon: ReactElement; | ||
title: string; | ||
description: string; | ||
}; | ||
|
||
type CardGridProps = { | ||
cards: CardElement[]; | ||
}; | ||
|
||
export const CardGrid = ({ cards }: CardGridProps) => ( | ||
<CardWrapperComponent> | ||
{cards.map(c => ( | ||
<Card icon={c.icon} title={c.title} description={c.description} key={c.title} /> | ||
))} | ||
</CardWrapperComponent> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './CardGrid'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import React from 'react'; | ||
import { BOX_BORDER_RADIUS } from '../../globalStyles/sharedStyles/box'; | ||
import styled from 'styled-components'; | ||
import media from '../../globalStyles/media'; | ||
import CheckmarkIcon from '../../images/svg/checkmark.svg'; | ||
|
||
type ListCardProps = { | ||
title: string; | ||
points: string[]; | ||
}; | ||
|
||
const CardComponent = styled.div` | ||
width: 100%; | ||
padding: 36px 48px; | ||
background-color: #eee; | ||
${BOX_BORDER_RADIUS}; | ||
${media.lessThan('md')` | ||
padding: 24px; | ||
`} | ||
`; | ||
|
||
const TitleComponent = styled.div` | ||
text-align: center; | ||
font-weight: 900; | ||
font-size: 18px; | ||
margin-bottom: 24px; | ||
`; | ||
|
||
const BulletsWrapComponent = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 20px; | ||
`; | ||
|
||
const BulletpointWrapComponent = styled.div` | ||
display: flex; | ||
align-items: center; | ||
gap: 10px; | ||
`; | ||
|
||
const BulletPointComponent = styled.div` | ||
color: ${({ theme }) => theme.color.black}; | ||
width: 20px; | ||
height: 20px; | ||
flex-shrink: 0; | ||
& svg { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
`; | ||
|
||
export const ListCard = ({ title, points }: ListCardProps) => { | ||
return ( | ||
<CardComponent> | ||
<TitleComponent>{title}</TitleComponent> | ||
<BulletsWrapComponent> | ||
{points.map(point => ( | ||
<BulletpointWrapComponent key={point}> | ||
<BulletPointComponent> | ||
<CheckmarkIcon /> | ||
</BulletPointComponent> | ||
<div>{point}</div> | ||
</BulletpointWrapComponent> | ||
))} | ||
</BulletsWrapComponent> | ||
</CardComponent> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './ListCard'; |
Oops, something went wrong.