Skip to content

Commit

Permalink
front: add xmas logo
Browse files Browse the repository at this point in the history
  • Loading branch information
flomonster committed Jul 5, 2024
1 parent f910ae7 commit 3707b29
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 1 deletion.
54 changes: 54 additions & 0 deletions front/src/assets/xmas-logo-osrd-color-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion front/src/main/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,25 @@ import operationalStudiesImg from 'assets/pictures/home/operationalStudies.svg';
import rollingStockEditorImg from 'assets/pictures/home/rollingstockeditor.svg';
import stdcmImg from 'assets/pictures/home/stdcm.svg';
import proudLogo from 'assets/proud-logo-osrd-color-white.svg';
import xmasLogo from 'assets/xmas-logo-osrd-color-white.svg';
import Card from 'common/BootstrapSNCF/CardSNCF/CardSNCF';
import { ModalProvider } from 'common/BootstrapSNCF/ModalSNCF/ModalProvider';
import NavBarSNCF from 'common/BootstrapSNCF/NavBarSNCF';

export default function Home() {
const { t } = useTranslation('home/home');

const logo = new Date().getMonth() === 5 ? proudLogo : defaultLogo;
let logo = defaultLogo;
enum MONTH_VALUES {
JUNE: 5,
DECEMBER: 11
}

if (new Date().getMonth() === MONTH_VALUES.JUNE) {
logo = proudLogo;
} else if (new Date().getMonth() === MONTH_VALUES.DECEMBER) {
logo = xmasLogo;
}

return (
<ModalProvider>
Expand Down

0 comments on commit 3707b29

Please sign in to comment.