diff --git a/src/pages/strom/akcie/[[...params]].tsx b/src/pages/strom/akcie/[[...params]].tsx index f2accbc3..c515fb43 100644 --- a/src/pages/strom/akcie/[[...params]].tsx +++ b/src/pages/strom/akcie/[[...params]].tsx @@ -29,33 +29,72 @@ const StaticPage: NextPage = ({competition, is_rules}) => {competition.who_can_participate &&

Pre koho? {competition.who_can_participate}

}

{competition.description}

- {competition.rules && ( -
-
+
+ {competition.upcoming_or_current_event ? ( +
+

+ Nadchádzajúci ročník: +

+ {competition.upcoming_or_current_event.start && ( +

Odkedy? {competition.upcoming_or_current_event.start}

+ )} + {competition.upcoming_or_current_event.end &&

Dokedy? {competition.upcoming_or_current_event.end}

} + {competition.upcoming_or_current_event.publication_set.length > 0 && ( +

+ Pozvánka +

+ )} + {competition.upcoming_or_current_event.registration_link && ( +
+

+ Registrácia prebieha do: + {competition.upcoming_or_current_event.registration_link.end} + Registračný formulár +

+ +

{competition.upcoming_or_current_event.registration_link.additional_info}

+
+ )} +
+ ) : ( +

+ Nadchádzajúci ročník: Pripravujeme +

+ )} +
+ +
+
+
- )} +
+

Archív:

{competition.competition_type.name === 'Tábor' ? ( -
+
{competition.history_events.map((event) => ( -
- {competition.name} {event.school_year} -
+ +
+ {competition.name + ' '} {event.school_year} +
+
))}
) : ( -
+
{competition.history_events.map((event) => (
{competition.name} {event.school_year}
{event.publication_set.map((publication) => ( -
{publication.name}
+ + {publication.name} + ))}
))} diff --git a/src/pages/strom/akcie/competition.module.scss b/src/pages/strom/akcie/competition.module.scss index 6a44d84d..fdf921d4 100644 --- a/src/pages/strom/akcie/competition.module.scss +++ b/src/pages/strom/akcie/competition.module.scss @@ -39,7 +39,7 @@ } } - .archive{ + .archiveWithPublications{ display: grid; width: 50%; grid-template-columns: 1fr max-content max-content; @@ -60,7 +60,7 @@ } } - .archiveCamp{ + .archiveWithoutPublications{ font-weight: bold; text-transform: uppercase; margin-top: 10px; diff --git a/src/pages/strom/akcie/competition.module.scss.d.ts b/src/pages/strom/akcie/competition.module.scss.d.ts index 350e5f5a..0409c32b 100644 --- a/src/pages/strom/akcie/competition.module.scss.d.ts +++ b/src/pages/strom/akcie/competition.module.scss.d.ts @@ -1,8 +1,8 @@ export type Styles = { actionButton: string actions: string - archive: string - archiveCamp: string + archiveWithoutPublications: string + archiveWithPublications: string commentActions: string container: string disabled: string