Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions app/(pages)/_components/mission/mission.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import styles from "./mission.module.scss";

export default function Mission({ title, subtitle, paragraphs }) {
return (
<section className={styles.container}>
<div className={styles.inner}>
<div className={styles.header}>
<h2 className={styles.title}>{title}</h2>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why is h2 wrapped in a div

</div>
<div className={styles.divider} />
<div className={styles.content}>
<div className={styles.textBlock}>
<p className={styles.subtitle}>{subtitle}</p>
{paragraphs.map((text, i) => (
<p key={i} className={styles.body}>{text}</p>
))}
</div>
</div>
</div>
</section>
);
}
81 changes: 81 additions & 0 deletions app/(pages)/_components/mission/mission.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
@use "@/app/(pages)/_globals/mixins.scss";

.container {
display: flex;
padding: 5.5625rem 5.625rem;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 0.625rem;
background: linear-gradient(180deg, var(--midnight) 0%, var(--space-blue) 100%);
box-shadow: 0 5px 50px 0 rgba(0, 0, 0, 0.1);
}

.inner {
display: flex;
width: 78.125rem;
align-items: center;
gap: 5rem;
}

.header {
display: flex;
padding: 0.625rem;
align-items: flex-start;
gap: 0.625rem;
}

.title {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you make this near the top like on figma, could be like margin bottom or something

color: var(--off-white);
font-family: "Oxanium";
font-size: 2rem;
font-style: normal;
font-weight: 500;
line-height: normal;
}

.divider {
width: 0.0625rem;
height: 16.3175rem;
flex-shrink: 0;
background: var(--off-white);
}

.content {
display: flex;
padding: 0.625rem;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 0.625rem;
flex-shrink: 0;
}

.textBlock {
display: flex;
max-width: 59.75rem;
flex-direction: column;
align-items: flex-start;
gap: 1.5rem;
align-self: stretch;
}

.subtitle {
align-self: stretch;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i beleive align-self: stretch is also default behavior, it's not doing anything if u remove it

color: var(--off-white);
font-family: "Space Grotesk";
font-size: 1.25rem;
font-style: normal;
font-weight: 500;
line-height: normal;
}

.body {
align-self: stretch;
color: var(--off-white);
font-family: "Space Grotesk";
font-size: 1.25rem;
font-style: normal;
font-weight: 400;
line-height: normal;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can u remove things like line-height normal, font-weight 400, font-style: normal this is default behavior and unnecessary clutter

}