venues and ui changes

This commit is contained in:
2025-07-24 09:42:57 -04:00
parent 049def6886
commit 27590f9509
24 changed files with 757 additions and 164 deletions

View File

@@ -1,15 +1,22 @@
import Link from 'next/link'
import React from 'react'
import { Card, CardContent, CardFooter, CardHeader, CardTitle } from './ui/card'
export default function EventInfoQuickView(props: EventProps) {
export default function EventInfoQuickView(props: QucikEventProps) {
return (
<Link href={`/events/${props.id}`} >
<div className='hover:cursor-pointer rounded-lg p-2 bg-brand-primary-900 hover:bg-brand-primary-800 transition-colors duration-200'>
<h3 className='text-md font-semibold'>{props.name}</h3>
<p>Date: {props.date ? props.date.toDateString() : 'null'}</p>
<p>Location: {props.location ? props.location.name : 'null'}</p>
<p className='text-xs mt-2'>Created By: {props.creator.username}</p>
</div>
<Link href={`/events/${props.id}`}>
<Card className='bg-brand-primary-900 hover:bg-brand-primary-800 transition-colors duration-200'>
<CardHeader>
<CardTitle>{props.name}</CardTitle>
</CardHeader>
<CardContent>
<p>Date: {props.date ? props.date.toDateString() : 'null'}</p>
<p>Location: {props.venue ? props.venue.name : 'null'}</p>
</CardContent>
<CardFooter>
<p className='text-xs mt-2'>Created By: {props.creator.username}</p>
</CardFooter>
</Card>
</Link>
)
}