import Image from 'next/image' import Link from 'next/link' import { Card } from '@/components/Card' import { Container } from '@/components/Container' import { CalendarDaysIcon } from '@heroicons/react/24/solid' import exteriorFrontImage from '@/images/photos/exterior-front.png' import { type BlogPostWithSlug, getAllBlogPosts } from '@/lib/articles' import { formatDate } from '@/lib/formatDate' import { getUpcomingEvents, Event } from './calendar/page' import dayjs from 'dayjs' function LinkButton({ href, children, }: { href: string children: React.ReactNode }) { return ( {children} ) } function Article({ article }: { article: BlogPostWithSlug }) { return ( {article.title} {formatDate(article.date)} {article.description} Read article ) } function EventListItem({ event }: { event: Event }) { const start = dayjs(event.start); const end = dayjs(event.end); const date = start.format('YYYY-MM-DD'); return (
  • Title
    {event.name}
    Date
    {date}
    Time
    {event.allDay ?
    All day
    : (event.end ? (
    {' '} {' '} {' '}
    ) : (
    {' '}
    ) ) }
  • ) } async function Events() { const events = await getUpcomingEvents(); return (

    Upcoming Events

      {events.map((event, idx) => ( ))}
    {/* */}
    ) } 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.

    Exterior front of the West Sound Hall
    Join or Renew your Membership Rent the Hall
    {articles.map((article) => (
    ))}
    ) }