diff options
Diffstat (limited to 'src/components/Toolbar')
| -rw-r--r-- | src/components/Toolbar/Toolbar.module.scss | 39 | ||||
| -rw-r--r-- | src/components/Toolbar/Toolbar.tsx | 12 |
2 files changed, 51 insertions, 0 deletions
diff --git a/src/components/Toolbar/Toolbar.module.scss b/src/components/Toolbar/Toolbar.module.scss new file mode 100644 index 0000000..df1ad7e --- /dev/null +++ b/src/components/Toolbar/Toolbar.module.scss @@ -0,0 +1,39 @@ +@use "@styles/abstracts/functions" as fun; +@use "@styles/abstracts/mixins" as mix; + +.wrapper { + --toolbar-size: #{fun.convert-px(60)}; + --btn-size: #{fun.convert-px(50)}; + + display: flex; + flex-flow: row wrap; + align-items: center; + justify-content: space-around; + width: 100%; + height: var(--toolbar-size); + position: fixed; + bottom: 0; + left: 0; + z-index: 5; + background: var(--color-bg); + box-shadow: 0 fun.convert-px(-1) fun.convert-px(3) 0 var(--color-shadow); + + @include mix.media("screen") { + @include mix.dimensions(null, "2xs", "height") { + --toolbar-size: #{fun.convert-px(50)}; + --btn-size: #{fun.convert-px(42)}; + } + + @include mix.dimensions("sm") { + justify-content: flex-end; + gap: var(--spacing-md); + width: auto; + background: inherit; + box-shadow: none; + position: relative; + left: unset; + margin-right: unset; + transform: unset; + } + } +} diff --git a/src/components/Toolbar/Toolbar.tsx b/src/components/Toolbar/Toolbar.tsx new file mode 100644 index 0000000..b7acce9 --- /dev/null +++ b/src/components/Toolbar/Toolbar.tsx @@ -0,0 +1,12 @@ +import MainNav from '@components/MainNav/MainNav'; +import styles from './Toolbar.module.scss'; + +const Toolbar = () => { + return ( + <div className={styles.wrapper}> + <MainNav /> + </div> + ); +}; + +export default Toolbar; |
