diff --git a/frontend/src/pages/landing/Header.jsx b/frontend/src/pages/landing/Header.jsx index 17a8dbce..33e42eee 100644 --- a/frontend/src/pages/landing/Header.jsx +++ b/frontend/src/pages/landing/Header.jsx @@ -1,14 +1,9 @@ import { Link } from 'react-router-dom'; -import { - Container, - Navbar, - Image, - Nav, - Button, - Row, - Col, -} from 'react-bootstrap'; +import { Container, Navbar, Image, Nav, Button } from 'react-bootstrap'; import { useTranslation } from 'react-i18next'; +import { useTernaryDarkMode } from 'usehooks-ts'; +import LanguageSelector from '../../components/Navigation/LanguageSelector.jsx'; +import ThemeSelector from '../../components/Navigation/ThemeSelector.jsx'; import routes from '../../routes.js'; import RunItLogoLight from './assets/LogoHeaderLightTheme.svg'; @@ -21,120 +16,70 @@ import './custom-colors.scss'; function Header() { const { t } = useTranslation(); + const { ternaryDarkMode } = useTernaryDarkMode(); - const theme = document.documentElement.getAttribute('data-bs-theme'); - - const logo = theme === 'light' ? RunItLogoLight : RunItLogoDark; - + const logo = ternaryDarkMode === 'light' ? RunItLogoLight : RunItLogoDark; return (
- - - -
- - + + + + + + + + +
- - - - - - - + - - - - -
+ {t('profileActions.signUp')} + + +
diff --git a/frontend/src/pages/landing/assets/LogoHeaderDarkTheme.svg b/frontend/src/pages/landing/assets/LogoHeaderDarkTheme.svg index 11b9c2d1..61a7853d 100644 --- a/frontend/src/pages/landing/assets/LogoHeaderDarkTheme.svg +++ b/frontend/src/pages/landing/assets/LogoHeaderDarkTheme.svg @@ -1,4 +1,4 @@ - + diff --git a/frontend/src/pages/landing/assets/LogoHeaderLightTheme.svg b/frontend/src/pages/landing/assets/LogoHeaderLightTheme.svg index ef082d60..d8f210ee 100644 --- a/frontend/src/pages/landing/assets/LogoHeaderLightTheme.svg +++ b/frontend/src/pages/landing/assets/LogoHeaderLightTheme.svg @@ -1,4 +1,4 @@ - +