Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pblvrt committed Oct 16, 2023
1 parent ff339f8 commit e49129d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
36 changes: 18 additions & 18 deletions app/[organization]/[event]/(eventHome)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,24 @@ const EventHome = async ({ params }: { params: Params }) => {
<div className="flex flex-col w-full overflow-scroll h-full gap-4 ">
<HomePageLogoAndBanner event={event.toJson()} />
<div className="p-4">
<div className="flex-col mt-0 flex max-w-4xl mx-auto space-y-4 shadow bg-white p-4 rounded m-4 box-content">
<div className=" flex-col flex space-y-2 md:flex-row items-center">
<h1 className="font-bold text-xl py-2">{event.name}</h1>
<Link
className="bg-accent font-bold h-8 border-2 hover:text-accent hover:bg-white animate-bounce text-white border-accent px-2 mx-2 rounded"
href={
'https://calendar.google.com/calendar/event?action=TEMPLATE&tmeid=NmFqZGU4dmVxcGgzanNxYjlzYjV1MXB0MGEgY19mZDE2YjdhZTIxZDA2NWI4OTUxYTU0MzM3NDQ1MTQ3MjEyYWI1OThhMjAzNzFlZjEzMjBjZWQ5ZWUzOWNhNTc0QGc&tmsrc=c_fd16b7ae21d065b8951a54337445147212ab598a20371ef1320ced9ee39ca574%40group.calendar.google.com'
}>
add this event to your calendar
</Link>
</div>
<p>{event.description}</p>
<div className="flex flex-row flex-wrap justify-center items-center p-4">
<StageModalButton stages={stages} />
<Button link={`/${params.organization}/${params.event}/schedule`}>Schedule</Button>
<Button link={`/${params.organization}/${params.event}/speakers`}>Speakers</Button>
{/* <Button link={`/${params.organization}/${params.event}/archive`}>Archive</Button> */}
</div>
<div className="flex-col mt-0 flex max-w-4xl mx-auto space-y-4 shadow bg-white p-4 rounded m-4 box-content">
<div className=" flex-col flex space-y-2 md:flex-row items-center">
<h1 className="font-bold text-xl py-2">{event.name}</h1>
<Link
className="bg-accent font-bold h-8 border-2 hover:text-accent hover:bg-white animate-bounce text-white border-accent px-2 mx-2 rounded"
href={
'https://calendar.google.com/calendar/event?action=TEMPLATE&tmeid=NmFqZGU4dmVxcGgzanNxYjlzYjV1MXB0MGEgY19mZDE2YjdhZTIxZDA2NWI4OTUxYTU0MzM3NDQ1MTQ3MjEyYWI1OThhMjAzNzFlZjEzMjBjZWQ5ZWUzOWNhNTc0QGc&tmsrc=c_fd16b7ae21d065b8951a54337445147212ab598a20371ef1320ced9ee39ca574%40group.calendar.google.com'
}>
add this event to your calendar
</Link>
</div>
<p>{event.description}</p>
<div className="flex flex-row flex-wrap justify-center items-center p-4">
<StageModalButton stages={stages} />
<Button link={`/${params.organization}/${params.event}/schedule`}>Schedule</Button>
<Button link={`/${params.organization}/${params.event}/speakers`}>Speakers</Button>
{/* <Button link={`/${params.organization}/${params.event}/archive`}>Archive</Button> */}
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const DateSelect = ({ dates }: { dates: number[] }) => {
setDate(numericValue)
}


return (
<div className=" flex flex-row space-x-4 justify-center w-full">
{isMobile ? (
Expand All @@ -26,7 +25,9 @@ const DateSelect = ({ dates }: { dates: number[] }) => {
) : (
dates.map((dateNum, index) => (
<div
className={`ml-auto w-[calc(100%-6rem)] p-4 text-center text-xl font-bold ${date !== dateNum ? 'text-black cursor-pointer' : 'text-accent'}`}
className={`ml-auto w-[calc(100%-6rem)] p-4 text-center text-xl font-bold ${
date !== dateNum ? 'text-black cursor-pointer' : 'text-accent'
}`}
onClick={() => setDate(dateNum)}
key={index}>
{new Date(dateNum).toDateString().slice(0, 10)}
Expand Down
2 changes: 1 addition & 1 deletion app/[organization]/[event]/(eventHome)/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const CELL_HEIGHT = 6

export const sessionsSchedulePosition = (sessions: ISession[]) => {
if (sessions.length === 0) {
return 0
return 0
}

const min = Math.min(
Expand Down
1 change: 0 additions & 1 deletion components/Layout/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export default function Navbar({
setLogo('/events/' + event.logo)
}, [event])


if (archiveMode) {
return <></>
}
Expand Down
2 changes: 1 addition & 1 deletion components/Layout/NavbarTop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Navbar() {
<ColorComponent accentColor={colors.accent}>
<header className="sticky z-50 flex flex-row bg-base border-b border-primary w-full ml-auto p-4 py-2 top-0 h-16 lg:h-20">
<div className=" flex items-center w-20">
<Link href={homePath ? homePath : "/"} className="">
<Link href={homePath ? homePath : '/'} className="">
<span className="sr-only">Logo</span>
<Image
src={logo}
Expand Down

0 comments on commit e49129d

Please sign in to comment.