Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/app/contact/ContactForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';
import { useState } from 'react';
import { FaRegCircleCheck } from "react-icons/fa6";
import { Button } from '@/components/Button';

export default function ContactForm() {
const [formData, setFormData] = useState({
Expand Down Expand Up @@ -106,12 +107,11 @@ export default function ContactForm() {
</div>

<div className="mt-8">
<button
<Button
type="submit"
className="inline-flex items-center px-6 py-2.5 bg-color-01 text-white rounded-3xl hover:opacity-90 transition-opacity placeholder:text-neutral-02"
>
Submit
</button>
</Button>
</div>
</>
)}
Expand Down
14 changes: 6 additions & 8 deletions src/app/event/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,23 +125,21 @@ export default async function EventPage({
</div>
</div>
</section>
<section className="w-full pb-30">
{event.photos?.length && <section className="w-full pb-30">
<div className="container mx-auto px-4 sm:px-6 lg:px-8">
<div className="w-full flex flex-col gap-8">
<h3 className="text-neutral-04 text-3xl sm:text-5xl font-semibold leading-[130%] tracking-[-1.5px]">
Event photos and highlights
</h3>
<div className="grid grid-cols-2 md:grid-cols-3 gap-6">
{[1, 2, 3, 4, 5, 6].map((value) => (
{event.photos.map((src) => (
<div
key={value}
key={src}
className="relative w-full rounded-2xl overflow-hidden"
>
<Image
src={`/images/event-photo${value}.${
value === 5 ? "png" : "jpg"
}`}
alt="event photo"
src={src}
alt={`Photo from ${event.name}`}
width={410}
height={504}
className="w-full h-full object-cover rounded-2xl"
Expand All @@ -151,7 +149,7 @@ export default async function EventPage({
</div>
</div>
</div>
</section>
</section>}
</>
);
}
4 changes: 1 addition & 3 deletions src/app/events/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ export default async function EventsPage() {
<StructuredData key={event.id} type="event" data={event} />
))}
<Hero
title={
<span className="max-w-[538px] block">Past and Upcoming Events</span>
}
title="Past and Upcoming Events"
/>
<section className="w-full py-30 space-y-30">
<Suspense
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Button = ({
href,
...props
}: ButtonProps) => {
const baseClasses = 'inline-flex items-center justify-center px-6 py-2.5 rounded-3xl transition-opacity duration-300 disabled:opacity-50 disabled:cursor-not-allowed';
const baseClasses = 'inline-flex items-center justify-center px-6 py-2.5 rounded-3xl transition-opacity duration-300 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer';

const variantClasses = {
primary: 'bg-color-01 text-white hover:opacity-90 shadow-sm',
Expand Down