diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-24 19:35:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-24 19:35:12 +0200 |
| commit | c85ab5ad43ccf52881ee224672c41ec30021cf48 (patch) | |
| tree | 8058808d9bfca19383f120c46b34d99ff2f89f63 /src/components/Header | |
| parent | 52404177c07a2aab7fc894362fb3060dff2431a0 (diff) | |
| parent | 11b9de44a4b2f305a6a484187805e429b2767118 (diff) | |
refactor: use storybook and atomic design (#16)
BREAKING CHANGE: rewrite most of the Typescript types, so the content format (the meta in particular) needs to be updated.
Diffstat (limited to 'src/components/Header')
| -rw-r--r-- | src/components/Header/Header.module.scss | 22 | ||||
| -rw-r--r-- | src/components/Header/Header.tsx | 16 |
2 files changed, 0 insertions, 38 deletions
diff --git a/src/components/Header/Header.module.scss b/src/components/Header/Header.module.scss deleted file mode 100644 index aa0d8cf..0000000 --- a/src/components/Header/Header.module.scss +++ /dev/null @@ -1,22 +0,0 @@ -@use "@styles/abstracts/functions" as fun; - -.wrapper { - display: grid; - grid-template-columns: - minmax(0, 1fr) min(calc(100vw - calc(var(--spacing-md) * 2)), 100ch) - minmax(0, 1fr); - align-items: center; - padding: var(--spacing-sm) 0 var(--spacing-md); - position: relative; - background: var(--color-bg); - border-bottom: fun.convert-px(3) solid var(--color-border-light); -} - -.body { - grid-column: 2; - display: flex; - flex-flow: row wrap; - align-items: center; - justify-content: space-between; - gap: var(--spacing-md); -} diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx deleted file mode 100644 index 0b773e9..0000000 --- a/src/components/Header/Header.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import Branding from '@components/Branding/Branding'; -import Toolbar from '@components/Toolbar/Toolbar'; -import styles from './Header.module.scss'; - -const Header = ({ isHome }: { isHome: boolean }) => { - return ( - <header id="top" className={styles.wrapper}> - <div className={styles.body}> - <Branding isHome={isHome} /> - <Toolbar /> - </div> - </header> - ); -}; - -export default Header; |
