diff --git a/frontend/app/[locale]/layout.js b/frontend/app/[locale]/layout.js index 2168e664..9cf171b5 100644 --- a/frontend/app/[locale]/layout.js +++ b/frontend/app/[locale]/layout.js @@ -9,7 +9,6 @@ import AppHeader from '@/components/AppHeader/AppHeader'; import AppFooter from '@/components/AppFooter/AppFooter'; import AnalyticsAuthorizer from '@/components/AnalyticsAuthorizer/AnalyticsAuthorizer'; import StatusMessage from '@/components/StatusMessage/StatusMessage'; -import { OneFullColumn } from '@/components/Layouts/Layouts'; // import MaintenanceWarning from '@/components/MaintenanceWarning/MaintenanceWarning'; /* * */ @@ -27,9 +26,7 @@ export default function Layout({ children, params: { locale } }) { - - - + {/* */} {children} diff --git a/frontend/components/Layouts/Layouts.module.css b/frontend/components/Layouts/Layouts.module.css index 77f475e1..c840a1ea 100644 --- a/frontend/components/Layouts/Layouts.module.css +++ b/frontend/components/Layouts/Layouts.module.css @@ -12,7 +12,6 @@ height: 100%; flex-grow: 1; position: relative; - width: 100%; margin: var(--size-lg) auto; padding: 0 var(--size-lg); } @@ -40,7 +39,6 @@ height: 100%; flex-grow: 1; position: relative; - width: 100%; } /* * */ diff --git a/frontend/components/StatusMessage/StatusMessage.js b/frontend/components/StatusMessage/StatusMessage.js index 69d03ec4..de539017 100644 --- a/frontend/components/StatusMessage/StatusMessage.js +++ b/frontend/components/StatusMessage/StatusMessage.js @@ -1,7 +1,12 @@ +'use client'; + /* * */ import styles from './StatusMessage.module.css'; import { useTranslations } from 'next-intl'; +import { useState } from 'react'; +import { ActionIcon } from '@mantine/core'; +import { IconChevronDown, IconChevronLeft } from '@tabler/icons-react'; /* * */ @@ -11,17 +16,35 @@ export default function StatusMessage() { // // A. Setup variables - const isVisible = true; const t = useTranslations('StatusMessage'); + const [isVisible, setIsVisible] = useState(true); // // B. Render components + const handleSetIsVisible = () => { + setIsVisible((prev) => !prev); + }; + + // + // C. Render components + return (
-

{t('title')}

-

{t('explanation')}

-

{t('solution')}

+
+
+

{t('title')}

+ + {isVisible ? : } + +
+ {isVisible && ( +
+

{t('explanation')}

+

{t('solution')}

+
+ )} +
); diff --git a/frontend/components/StatusMessage/StatusMessage.module.css b/frontend/components/StatusMessage/StatusMessage.module.css index 43a44fd5..a87490a7 100644 --- a/frontend/components/StatusMessage/StatusMessage.module.css +++ b/frontend/components/StatusMessage/StatusMessage.module.css @@ -1,18 +1,84 @@ +/* * */ +/* CONTAINER */ + .container { + display: flex; + flex-direction: column; + align-items: stretch; + justify-content: stretch; + gap: var(--size-sm); + width: 100%; + max-width: 1400px; + height: 100%; + margin: auto; + margin-top: var(--size-lg); + padding: 0 var(--size-lg); +} + +@media (max-width: 700px) { + .container { + padding: 0; + margin: 0; + } +} + +@media all and (display-mode: standalone) { + .container { + padding: 0; + margin: 0; + max-width: none; + } +} + +/* * */ +/* INNER WRAPPER */ + +.innerWrapper { + width: 100%; display: flex; flex-direction: column; gap: 10px; background: #ffeebe; - padding: 15px 20px; + padding: 15px 18px; border-radius: 10px; } @media (max-width: 700px) { - .container { + .innerWrapper { border-radius: 0; } } +@media all and (display-mode: standalone) { + .innerWrapper { + border-radius: 0; + } +} + +/* * */ +/* HEADER WRAPPER */ + +.headerWrapper { + display: flex; + flex-direction: row; + gap: 10px; + align-items: center; + justify-content: space-between; + cursor: pointer; +} + +/* * */ +/* CONTENT WRAPPER */ + +.contentWrapper { + display: flex; + flex-direction: column; + gap: 10px; +} + +/* * */ +/* TEXTS */ + .title, .explanation, .solution {