From 49751bb4331511dabe73a59b0f9c850866790cb9 Mon Sep 17 00:00:00 2001 From: Tony Grosinger Date: Sun, 28 Jan 2024 10:04:24 -0800 Subject: [PATCH] Reorganize homepage layout Switch from 5 small photos to one larger photo on the right --- src/app/page.tsx | 99 +++++++++++++++++------------------------------- 1 file changed, 34 insertions(+), 65 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 1c1aecf..ac6e7f1 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,19 +1,15 @@ import Image from 'next/image' -import clsx from 'clsx' import Link from 'next/link' import { Card } from '@/components/Card' import { Container } from '@/components/Container' -import { CalendarDaysIcon, EnvelopeIcon } from '@heroicons/react/24/solid' +import { CalendarDaysIcon } from '@heroicons/react/24/solid' import exteriorFrontImage from '@/images/photos/exterior-front.png' -import stageImage from '@/images/photos/stage.jpg' -import exteriorSoutheastImage from '@/images/photos/exterior-southeast.jpg' -import interorEmptyImage from '@/images/photos/interior-empty.jpg' -import kitchenImage from '@/images/photos/kitchen.jpg' import { type BlogPostWithSlug, getAllBlogPosts } from '@/lib/articles' import { formatDate } from '@/lib/formatDate' import { promises as fs } from 'fs'; + function LinkButton({ href, children, @@ -24,9 +20,7 @@ function LinkButton({ return ( {children} @@ -48,17 +42,6 @@ function Article({ article }: { article: BlogPostWithSlug }) { ) } -function Newsletter() { - return ( -
-
- Join or Renew your Membership - Rent the Hall -
-
- ) -} - interface Meeting { title: string date: string @@ -152,55 +135,42 @@ async function Events() { ) } -function Photos() { - let rotations = ['rotate-2', '-rotate-2', 'rotate-2', 'rotate-2', '-rotate-2'] - - return ( -
-
- {[exteriorSoutheastImage, stageImage, exteriorFrontImage, interorEmptyImage, kitchenImage].map((image, imageIndex) => ( -
- -
- ))} -
-
- ) -} - export default async function Home() { let articles = (await getAllBlogPosts()).slice(0, 4) return ( <> - -
-

- West Sound Community Hall -

-

- The West Sound Community Hall is located in the hamlet of West Sound - on Orcas Island, about 10 minutes from the ferry landing and - Eastsound. It has served as a public assembly hall since it was - built by volunteers in 1902. -

-

- Facing West Sound, the Hall is at the heart of the West Sound community. -

+
+
+
+

+ West Sound Community Hall +

+
+

+ The West Sound Community Hall is located in the hamlet of West Sound + on Orcas Island, about 10 minutes from the ferry landing and + Eastsound. It has served as a public assembly hall since it was + built by volunteers in 1902. +

+

+ Facing West Sound, the Hall is at the heart of the West Sound community. +

+
+ Exterior front of the West Sound Hall +
+
+ Join or Renew your Membership + Rent the Hall +
+
+
- - +
@@ -208,8 +178,7 @@ export default async function Home() {
))}
-
- +