From 6ccc6082ecd6bcab4d6dd5019e12a85455886403 Mon Sep 17 00:00:00 2001 From: elisejakob Date: Mon, 10 Jun 2024 14:07:48 +0200 Subject: [PATCH] update date list, change news list grid --- web/src/app/arrangementer/[slug]/page.tsx | 3 +- web/src/components/events/DateList.tsx | 59 ++----------------- .../components/events/dateList.module.scss | 16 +++++ web/src/components/news/newsList.module.scss | 6 +- 4 files changed, 28 insertions(+), 56 deletions(-) diff --git a/web/src/app/arrangementer/[slug]/page.tsx b/web/src/app/arrangementer/[slug]/page.tsx index 26312a9..9f581fe 100644 --- a/web/src/app/arrangementer/[slug]/page.tsx +++ b/web/src/app/arrangementer/[slug]/page.tsx @@ -1,6 +1,6 @@ import { getClient } from "@/app/client"; import { Blocks } from "@/components/blocks/Blocks"; -import { DateList, DateListDemo } from "@/components/events/DateList"; +import { DateList } from "@/components/events/DateList"; import { DateListOld } from "@/components/events/DateListOld"; import { EventHeader } from "@/components/events/EventHeader"; import { BgPig } from "@/components/general/BgPig"; @@ -57,7 +57,6 @@ export default async function Page({ params }: { params: { slug: string } }) {
-
diff --git a/web/src/components/events/DateList.tsx b/web/src/components/events/DateList.tsx index 86cf380..a0dd332 100644 --- a/web/src/components/events/DateList.tsx +++ b/web/src/components/events/DateList.tsx @@ -13,8 +13,12 @@ const DateListItem = ({ occurrence }: { occurrence: EventOccurrence }) => { return (
  • - {formatDate(occurrence.start, dateFormat)}  - {formatDate(occurrence.start, timeFormat)} + + {formatDate(occurrence.start, dateFormat)} + + + {formatDate(occurrence.start, timeFormat)} +
    @@ -82,54 +86,3 @@ export const DateList = ({ event }: { event: EventFragment }) => {
    ); }; - -export const DateListDemo = () => { - return ( -
    -

    - - - Kommende datoer{" "} - (4) -

    -
      -
    • -
      - 27/05/2024  - 18.00 -
      -
      - Storsalen -
      -
    • -
    • -
      - Mandag 27. mai 2024  - kl. 18.00 -
      - i Storsalen -
      -
      -
    • -
    • -
      - 27. mai 2024  - kl. 18.00 -
      -
      - Storsalen -
      -
    • -
    • -
      - Storsalen -
      -
      - 27.05.2024  - 18.00 -
      -
    • -
    -
    - ); -}; diff --git a/web/src/components/events/dateList.module.scss b/web/src/components/events/dateList.module.scss index 6a31489..a54b87f 100644 --- a/web/src/components/events/dateList.module.scss +++ b/web/src/components/events/dateList.module.scss @@ -13,12 +13,28 @@ line-height: 1.2; border-right: var(--border); padding-right: 1rem; + + &:last-child { + border: none; + } } .time { width: 100%; } +.day { + display: block; + + &:first-letter { + text-transform: capitalize; + } +} + +.hour { + display: block; +} + .venue { font-style: italic; } \ No newline at end of file diff --git a/web/src/components/news/newsList.module.scss b/web/src/components/news/newsList.module.scss index d8a974f..7315977 100644 --- a/web/src/components/news/newsList.module.scss +++ b/web/src/components/news/newsList.module.scss @@ -48,7 +48,11 @@ &:nth-child(3), &:nth-child(4), &:nth-child(5) { - grid-column: span 4; + grid-column: span 3; + + h2 { + font-size: 1.4rem; + } } } }