-
Notifications
You must be signed in to change notification settings - Fork 0
Miguel Created mission component #32
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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> | ||
| </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> | ||
| ); | ||
| } | ||
| 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 { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| } | ||
There was a problem hiding this comment.
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