Skip to content

Commit 3d7d1de

Browse files
committed
Improve schedule experience
1 parent 1fe4946 commit 3d7d1de

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/app/(authenticated)/companies/[id]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default async function Company({ params }: { params: CompanyParams }) {
9797
key={s.date}
9898
href={`/venue?day=${s.date.split("T")[0]}&company=${companyID}`}
9999
>
100-
<EventDayButton date={s.date} selected={true} disabled={false} />
100+
<EventDayButton date={s.date} />
101101
</Link>
102102
))}
103103
</GridList>

src/app/(authenticated)/home/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { SPIN_WHEEL_MAXIMUM } from "@/constants";
1818
import { EventService } from "@/services/EventService";
1919

2020
const N_SESSION_TILES = 3;
21-
const N_COMPANY_TILES = 6;
22-
const N_SPEAKER_TILES = 6;
21+
const N_COMPANY_TILES = 15;
22+
const N_SPEAKER_TILES = 10;
2323

2424
export default async function Home() {
2525
const session = (await getServerSession(authOptions))!;

src/components/BottomNavbar/NavbarItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const navbarItems = {
2121
schedule: {
2222
title: "Schedule",
2323
icon: Calendar,
24-
route: "/schedule",
24+
route: "/schedule?day=today",
2525
isSelected: (currPath: string, _: User) => currPath === "/schedule",
2626
},
2727
profile: {

src/components/EventDayButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function EventDayButton({
2626
disabled={disabled}
2727
>
2828
<span
29-
className={`flex items-center justify-center font-mono rounded-full w-10 h-10 shadow-md focus:shadow-none ${selected ? "text-sinfo-primary outline outline-sinfo-primary hover:bg-slate-50" : "text-white bg-sinfo-primary"}`}
29+
className={`flex items-center justify-center font-mono rounded-full w-10 h-10 shadow-md focus:shadow-none outline outline-sinfo-primary ${!selected ? "text-sinfo-primary hover:bg-slate-50" : "text-white bg-sinfo-primary"}`}
3030
>
3131
{getEventDay(date)}
3232
</span>

src/components/Toolbar/Sidebar.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ export default function Sidebar({ show, onClose }: SidebarProps) {
3535
</Link>
3636
</div>
3737
<div className="flex flex-col gap-2">
38-
<Link href="/schedule?kind=keynote" onClick={onClose}>
38+
<Link href="/schedule?kind=keynote&day=today" onClick={onClose}>
3939
Keynotes
4040
</Link>
41-
<Link href="/schedule?kind=presentation" onClick={onClose}>
41+
<Link href="/schedule?kind=presentation&day=today" onClick={onClose}>
4242
Presentations
4343
</Link>
44-
<Link href="/schedule?kind=workshop" onClick={onClose}>
44+
<Link href="/schedule?kind=workshop&day=today" onClick={onClose}>
4545
Workshops
4646
</Link>
4747
</div>

0 commit comments

Comments
 (0)