-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): layout of the footer component (#1036)
- Loading branch information
Showing
7 changed files
with
121 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ column-layout: | |
value: "{size-px.m}" | ||
l: | ||
value: "{size-px.l}" | ||
xl: | ||
value: "{size-px.xl}" |
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
11 changes: 11 additions & 0 deletions
11
packages/docs/src/app/_components/layout/Footer/components/FooterSection.module.scss
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,11 @@ | ||
.footerSection { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--size-px--s); | ||
font-size: var(--font-size-text--s); | ||
} | ||
|
||
.footerSectionContent { | ||
display: grid; | ||
gap: var(--size-px--xs); | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/docs/src/app/_components/layout/Footer/components/FooterSection.tsx
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,15 @@ | ||
import styles from "./FooterSection.module.scss"; | ||
import type { FC, PropsWithChildren } from "react"; | ||
import React from "react"; | ||
import { Heading } from "@mittwald/flow-react-components/Heading"; | ||
|
||
export interface FooterSectionProps extends PropsWithChildren { | ||
title: string; | ||
} | ||
|
||
export const FooterSection: FC<FooterSectionProps> = ({ children, title }) => ( | ||
<div className={styles.footerSection}> | ||
<Heading level={3}>{title}</Heading> | ||
<div className={styles.footerSectionContent}>{children}</div> | ||
</div> | ||
); |
47 changes: 41 additions & 6 deletions
47
packages/docs/src/app/_components/layout/Footer/footer.module.scss
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,15 +1,50 @@ | ||
.footer { | ||
container-type: inline-size; | ||
background-color: var(--color--hosting-blue--200); | ||
margin: 0; | ||
padding: var(--size-px--xxl); | ||
} | ||
|
||
& > * { | ||
max-width: 1500px; | ||
margin: 0 auto; | ||
} | ||
.footerColumnLayout { | ||
width: 100%; | ||
} | ||
|
||
.footerWrapper { | ||
display: flex; | ||
gap: var(--size-px--xxl); | ||
max-width: 1500px; | ||
margin: 0 auto; | ||
} | ||
|
||
.mittwaldLogo { | ||
display: grid; | ||
grid-column: span 3 / span 3; | ||
gap: var(--size-px--s); | ||
} | ||
|
||
@container (max-width: 850px) { | ||
.feedbackPicture { | ||
display: none; | ||
.footer { | ||
.feedbackPicture { | ||
display: none; | ||
} | ||
|
||
.mittwaldLogo { | ||
grid-column: span 3 / span 3; | ||
} | ||
} | ||
} | ||
|
||
@container (max-width: 550px) { | ||
.footer { | ||
padding: var(--size-px--xl); | ||
|
||
.footerWrapper { | ||
flex-direction: column; | ||
gap: var(--size-px--xl); | ||
} | ||
|
||
.mittwaldLogo { | ||
grid-column: auto; | ||
} | ||
} | ||
} |