From 138ab7a6e3a01de736f7ed5bc6b5b1df24c5639a Mon Sep 17 00:00:00 2001 From: lanberb Date: Thu, 4 Jan 2024 16:39:48 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=E3=82=A4=E3=83=99=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=83=AA=E3=82=B9=E3=83=88=E3=81=AE=E3=83=AA=E3=83=B3?= =?UTF-8?q?=E3=82=AF=E4=BF=AE=E6=AD=A3=E3=81=A8=E3=83=9E=E3=83=BC=E3=82=AF?= =?UTF-8?q?=E3=82=A2=E3=83=83=E3=83=97=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/WantedSponsor.tsx | 6 ++-- src/pages/about/+Page.tsx | 4 +-- src/pages/guideline/+Page.tsx | 4 +-- src/pages/index/+Page.tsx | 53 +++++++++++++++++--------------- 4 files changed, 36 insertions(+), 31 deletions(-) diff --git a/src/components/WantedSponsor.tsx b/src/components/WantedSponsor.tsx index afc0845..79e4d22 100644 --- a/src/components/WantedSponsor.tsx +++ b/src/components/WantedSponsor.tsx @@ -41,10 +41,10 @@ export const WantedSponsor = ({ ], ); return ( -
+

{title}

-
-

+

+

diff --git a/src/pages/about/+Page.tsx b/src/pages/about/+Page.tsx index 658bcbd..0c34736 100644 --- a/src/pages/about/+Page.tsx +++ b/src/pages/about/+Page.tsx @@ -10,7 +10,7 @@ export function Page() { const wantedSponsor = context?.data?.wantedSponsor; return ( -
+

- + ); } diff --git a/src/pages/guideline/+Page.tsx b/src/pages/guideline/+Page.tsx index c5201ad..4c5da39 100644 --- a/src/pages/guideline/+Page.tsx +++ b/src/pages/guideline/+Page.tsx @@ -70,7 +70,7 @@ export default function Page() { ); return ( -
+
-
+ ); } diff --git a/src/pages/index/+Page.tsx b/src/pages/index/+Page.tsx index ac72cad..ffa7b99 100644 --- a/src/pages/index/+Page.tsx +++ b/src/pages/index/+Page.tsx @@ -179,19 +179,24 @@ export function Page() { sizes="large" className="mb-32" /> - - - {context?.data?.meetupList?.map((meetup, index) => { - const isComingSoon = day(meetup.fields.date).isSameOrAfter( - day(), - "milliseconds", - ); - return ( - + {context?.data?.meetupList?.map((meetup, index) => { + const isComingSoon = day(meetup.fields.date).isSameOrAfter( + day(), + "milliseconds", + ); + return ( +
  • + -
  • - - - - - ); - })} - -
    +

    {/* --- SPサイズの表示要素 --- */} -
    + +
    {day(meetup.fields.date).format("YYYY.MM.DD(dd)")} -
    + +
    {meetup.fields.title} -
    + +

    {meetup.fields.locationName}

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