Skip to content

Commit

Permalink
Add typography to Banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl committed Dec 8, 2023
1 parent 7224c59 commit 64d4237
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/PageLayout/Banner/Banner.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.banner{
width: 100vw;
height: 2rem;
background-color: black;
color: white;
border: none;
Expand All @@ -9,6 +8,7 @@
padding: 0px;
z-index: 3;
margin-bottom: 0.5rem;
padding: 0.2rem;
}


Expand Down
5 changes: 4 additions & 1 deletion src/components/PageLayout/Banner/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Typography} from '@mui/material'
import {FC} from 'react'

import {Marquee} from '@/components/Marquee/Marquee'
Expand All @@ -10,7 +11,9 @@ export const Banner: FC = () => {
return (
<div className={styles.banner}>
<Marquee gradient={false} speed={100}>
<div className={styles.marqueeTextContainer}>{bannerText}</div>
<Typography variant="h2" component="span" className={styles.marqueeTextContainer}>
{bannerText}
</Typography>
</Marquee>
</div>
)
Expand Down

0 comments on commit 64d4237

Please sign in to comment.