-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17a20f5
commit e8f4da4
Showing
12 changed files
with
105 additions
and
84 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,49 +1,48 @@ | ||
.customRectangle { | ||
width: 401px; | ||
height: 434px; | ||
border-radius: 10px; | ||
background-color: #694c97; | ||
position: relative; | ||
} | ||
|
||
.circleWhite { | ||
width: 146.35px; | ||
height: 147px; | ||
background-color: white; | ||
border-radius: 50%; | ||
position: relative; | ||
transform: translate(25%, 25%); | ||
overflow: hidden; | ||
} | ||
|
||
.centeredImage { | ||
position: relative; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
max-width: 100%; | ||
max-height: 100%; | ||
} | ||
|
||
.RectangleTitle { | ||
font-family: "Roboto Slab", sans-serif; | ||
font-size: 32px; | ||
font-weight: 480; | ||
line-height: 48px; | ||
letter-spacing: 3%; | ||
transform: translate(10%, 150%); | ||
color: white; | ||
} | ||
|
||
.BodytextInsideRectangle { | ||
text-align: left; | ||
font-family: "Open Sans"; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 24px; /* 133.333% */ | ||
width: 85%; | ||
transform: translate(12%, 78%); | ||
color: white; | ||
} | ||
|
||
width: 401px; | ||
height: 434px; | ||
border-radius: 10px; | ||
background-color: #694c97; | ||
position: relative; | ||
} | ||
|
||
.circleWhite { | ||
width: 146.35px; | ||
height: 147px; | ||
background-color: white; | ||
border-radius: 50%; | ||
position: relative; | ||
transform: translate(25%, 25%); | ||
overflow: hidden; | ||
} | ||
|
||
.centeredImage { | ||
position: relative; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
max-width: 100%; | ||
max-height: 100%; | ||
} | ||
|
||
.RectangleTitle { | ||
font-family: var(--font-small-subtitle); | ||
font-size: 32px; | ||
font-weight: 480; | ||
line-height: 48px; | ||
letter-spacing: 3%; | ||
transform: translate(10%, 150%); | ||
color: white; | ||
} | ||
|
||
.BodytextInsideRectangle { | ||
text-align: left; | ||
font-family: var(--font-body); | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 24px; /* 133.333% */ | ||
width: 85%; | ||
transform: translate(12%, 78%); | ||
color: white; | ||
} |
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 |
---|---|---|
@@ -1,25 +1,23 @@ | ||
import React from "react"; | ||
import styles from "./valueCard.module.css"; | ||
|
||
import styles from "./valueCard.module.css"; | ||
|
||
type ValueCardProps = { | ||
iconSrc: string; | ||
title: string; | ||
description: string; | ||
}; | ||
iconSrc: string; | ||
title: string; | ||
description: string; | ||
}; | ||
|
||
const ValueCard = ({ iconSrc, title, description }: ValueCardProps) => { | ||
return ( | ||
return ( | ||
<div className={styles.customRectangle}> | ||
<div className={styles.circleWhite}> | ||
<img src = {iconSrc} alt="Image 1" className={styles.centeredImage} /></div> | ||
<div className={styles.RectangleTitle}>{title}</div> | ||
<div className={styles.BodytextInsideRectangle}>{description}</div> | ||
<div className={styles.circleWhite}> | ||
<img src={iconSrc} alt="Image 1" className={styles.centeredImage} /> | ||
Check warning on line 15 in frontend/src/components/valueCard.tsx
|
||
</div> | ||
<div className={styles.RectangleTitle}>{title}</div> | ||
<div className={styles.BodytextInsideRectangle}>{description}</div> | ||
</div> | ||
|
||
); | ||
); | ||
}; | ||
|
||
|
||
|
||
export default ValueCard; |
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