Skip to content

Commit

Permalink
Fonts, images, image placement
Browse files Browse the repository at this point in the history
  • Loading branch information
katelynpdn committed Feb 20, 2024
1 parent 17a20f5 commit e8f4da4
Show file tree
Hide file tree
Showing 12 changed files with 105 additions and 84 deletions.
Binary file removed frontend/public/handheart.png
Binary file not shown.
4 changes: 4 additions & 0 deletions frontend/public/handheart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed frontend/public/puzzle.png
Binary file not shown.
3 changes: 3 additions & 0 deletions frontend/public/puzzle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed frontend/public/threepeople.png
Binary file not shown.
8 changes: 8 additions & 0 deletions frontend/public/threepeople.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions frontend/src/app/mission/page.module.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto+Slab:wght@100..900&display=swap");

.description {
text-align: left;
font-family: "Open Sans";
font-family: var(--font-body);
font-size: 24px;
font-style: normal;
font-weight: 400;
line-height: 32px; /* 133.333% */
width: 52%;

}

.titlelarge {
font-family: "Roboto Slab";
font-family: var(--font-small-subtitle);
font-size: 32px;
font-weight: 700;
line-height: 48px;
Expand All @@ -38,15 +35,16 @@
width: 37%;
position: relative;
bottom: 500px;
left: 900px;
left: 800px;
margin-bottom: -300px;

display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
justify-content: flex-end;
align-items: flex-end;
row-gap: 32px;
column-gap: 32px;
}

/*For the Value Cards*/
Expand Down
26 changes: 18 additions & 8 deletions frontend/src/app/mission/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,24 @@ export default function Mission() {
<div className={styles.text}>
<div className={styles.titlelarge}>We Pay It Forward With...</div>
<div className={styles.rectangleContainer}>
<ValueCard title="Service" iconSrc="/threepeople.png" description="Lorem ipsum dolor sit amet consectetur. Et vestibulum enim nunc ultrices. Donec
blandit sollicitudin vitae integer mauris sed. Mattis duis id viverra suscipit morbi."></ValueCard>
<ValueCard title="Compassion" iconSrc="/handheart.png" description="Lorem ipsum dolor sit amet consectetur. Et vestibulum enim nunc ultrices. Donec
blandit sollicitudin vitae integer mauris sed. Mattis duis id viverra suscipit morbi."></ValueCard>
<ValueCard title="Community" iconSrc="/puzzle.png" description="Lorem ipsum dolor sit amet consectetur. Et vestibulum enim nunc ultrices. Donec
blandit sollicitudin vitae integer mauris sed. Mattis duis id viverra suscipit morbi."></ValueCard>


<ValueCard
title="Service"
iconSrc="/threepeople.svg"
description="Lorem ipsum dolor sit amet consectetur. Et vestibulum enim nunc ultrices. Donec
blandit sollicitudin vitae integer mauris sed. Mattis duis id viverra suscipit morbi."
></ValueCard>
<ValueCard
title="Compassion"
iconSrc="/handheart.svg"
description="Lorem ipsum dolor sit amet consectetur. Et vestibulum enim nunc ultrices. Donec
blandit sollicitudin vitae integer mauris sed. Mattis duis id viverra suscipit morbi."
></ValueCard>
<ValueCard
title="Community"
iconSrc="/puzzle.svg"
description="Lorem ipsum dolor sit amet consectetur. Et vestibulum enim nunc ultrices. Donec
blandit sollicitudin vitae integer mauris sed. Mattis duis id viverra suscipit morbi."
></ValueCard>
</div>
</div>

Expand Down
5 changes: 3 additions & 2 deletions frontend/src/components/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@

/* Body/Medium (Bold) */
.buttonBody {
font-family: "Open Sans", sans-serif;
font-family: var(--font-body);
font-style: normal;
font-weight: 550;
font-weight: 700;
font-size: 20px;
letter-spacing: 1px;
text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
/* Center align text */
text-align: center;

Expand Down
95 changes: 47 additions & 48 deletions frontend/src/components/valueCard.module.css
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;
}
26 changes: 12 additions & 14 deletions frontend/src/components/valueCard.tsx
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

View workflow job for this annotation

GitHub Actions / Frontend check

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
</div>
<div className={styles.RectangleTitle}>{title}</div>
<div className={styles.BodytextInsideRectangle}>{description}</div>
</div>

);
);
};



export default ValueCard;
10 changes: 5 additions & 5 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"incremental": true,
"plugins": [
{
"name": "next",
},
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"],
},
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"],
"exclude": ["node_modules"]
}

0 comments on commit e8f4da4

Please sign in to comment.