From 0b8839f6fcc2be73288cd50b385de0c0164662ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Tue, 3 Mar 2026 15:47:58 +0100 Subject: [PATCH] nicolium: migrate event information to scss MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .../src/pages/statuses/event-information.tsx | 79 +++++++++---------- packages/nicolium/src/styles/new/events.scss | 36 +++++++++ 2 files changed, 75 insertions(+), 40 deletions(-) diff --git a/packages/nicolium/src/pages/statuses/event-information.tsx b/packages/nicolium/src/pages/statuses/event-information.tsx index 0e6519e67..02b00ed3d 100644 --- a/packages/nicolium/src/pages/statuses/event-information.tsx +++ b/packages/nicolium/src/pages/statuses/event-information.tsx @@ -3,10 +3,7 @@ import { FormattedDate, FormattedMessage } from 'react-intl'; import MissingIndicator from '@/components/missing-indicator'; import StatusContent from '@/components/statuses/status-content'; -import HStack from '@/components/ui/hstack'; import Icon from '@/components/ui/icon'; -import Stack from '@/components/ui/stack'; -import Text from '@/components/ui/text'; import { eventInformationRoute } from '@/features/ui/router'; import { useFrontendConfig } from '@/hooks/use-frontend-config'; import { useStatus } from '@/queries/statuses/use-status'; @@ -74,15 +71,15 @@ const EventInformationPage: React.FC = () => { return ( event.location && ( - - +
+

- - +

+
- {text} - - +

{text}

+
+
) ); }, [status]); @@ -102,13 +99,13 @@ const EventInformationPage: React.FC = () => { startDate.getFullYear() === endDate.getFullYear(); return ( - - +
+

- - +

+
- +

{ /> )} - - - +

+
+
); }, [status]); @@ -142,24 +139,26 @@ const EventInformationPage: React.FC = () => { if (!status?.event?.links?.length) return null; return ( - - +
+

- +

- {status.event.links.map((link) => ( - - - - {(link.remote_url ?? link.url).replace(/^https?:\/\//, '')} - - - ))} - + +
); }, [status]); @@ -168,15 +167,15 @@ const EventInformationPage: React.FC = () => { } else if (!status) return null; return ( - +
{!!status.content.trim() && ( - - +
+

- +

- +
)} {renderEventLocation()} @@ -184,7 +183,7 @@ const EventInformationPage: React.FC = () => { {renderEventDate()} {renderLinks()} -
+
); }; diff --git a/packages/nicolium/src/styles/new/events.scss b/packages/nicolium/src/styles/new/events.scss index 8e7494f8a..e938c551c 100644 --- a/packages/nicolium/src/styles/new/events.scss +++ b/packages/nicolium/src/styles/new/events.scss @@ -1,5 +1,41 @@ @use 'mixins'; +.⁂-event-information { + @apply flex flex-col mt-4 sm:p-3 gap-2; + + &__content, + &__location, + &__date, + &__links { + @apply flex flex-col gap-1; + + h2 { + @include mixins.text($size: xl, $weight: bold); + } + } + + &__location, + &__date { + &__body { + @apply flex gap-2 items-center; + + p { + @include mixins.text; + } + } + } + + &__links { + ul li { + @apply flex gap-2 items-center; + + a { + @apply text-primary-600 hover:underline dark:text-primary-400; + } + } + } +} + .⁂-edit-event { .⁂-content-type-button { position: absolute;