Skip to content

Commit

Permalink
fix window en navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
xtian7489 committed Dec 22, 2023
1 parent 9ca9f00 commit 8b550f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/_components/layout/navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function Navbar({ lang }) {
<nav className={`navbar-wrapper has-background-primary is-align-items-center ${navbarFixed ? 'navbar is-fixed-top' : ''}`}>
<div className='logo w-25 py-2'>
<Link href="/" className="is-flex is-align-items-center">
<Logo color='#FFFFFF' widthLogo={window.innerWidth < 768 ? '150' : '250'} />
<Logo color='#FFFFFF'/>
</Link>

</div>
Expand Down
2 changes: 0 additions & 2 deletions src/app/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export default function Page(){
}

// If the user hits the root path, redirect based on the browser's language

console.log(pathname);
if (pathname === '/') {
router.replace(`/${detectedLocale}`);
}
Expand Down
12 changes: 7 additions & 5 deletions src/static/scss/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
text-transform: uppercase;
display: flex;
align-items: center;

h1 {
font-size: 3rem;
color: $white;
font-weight: 800;
a{
svg{
width: 250px;
@include tablet{
width: 150px;
}
}
}
}

Expand Down

0 comments on commit 8b550f1

Please sign in to comment.