testing docker compse

This commit is contained in:
briannelson95
2025-06-30 17:20:27 -04:00
parent 6efc29c669
commit 079fecc7c0
11 changed files with 678 additions and 240 deletions

View File

@@ -1,33 +0,0 @@
'use client'
import { useState } from 'react';
export default function GuestManager({ params }: { params: { eventId: string } }) {
const [guests, setGuests] = useState<{ name: string; email: string }[]>([]);
const [name, setName] = useState('');
const [email, setEmail] = useState('');
async function addGuest() {
const res = await fetch(`/api/events/${params.eventId}/guests`, {
method: 'POST',
body: JSON.stringify({ name, email }),
});
const newGuest = await res.json();
setGuests([...guests, newGuest]);
setName('');
setEmail('');
}
return (
<div className="space-y-4">
<h2 className="text-lg font-semibold">Guest List</h2>
<ul className="space-y-1">
{guests.map((g, i) => (
<li key={i}>{g.name} - {g.email}</li>
))}
</ul>
<input placeholder="Name" value={name} onChange={e => setName(e.target.value)} />
<input placeholder="Email" value={email} onChange={e => setEmail(e.target.value)} />
<button onClick={addGuest}>Add Guest</button>
</div>
);
}

View File

@@ -1,5 +1,5 @@
import LoginForm from '@/components/LoginForm';
import React, { useState } from 'react'
import React from 'react'
export default function LoginPage() {
return (

View File

@@ -1,5 +1,4 @@
import { isFirstSetup } from "@/lib/setup";
import Image from "next/image";
import { redirect } from "next/navigation";
export default async function Home() {