Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize mobile #34

Merged
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
4 changes: 3 additions & 1 deletion apps/web/src/app/dash/schedule/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default async function Page() {
const userTimeZone = getClientTimeZone(userTimeZoneHeaderKey);
return (
<>
<h1 className="mx-auto my-8 w-3/4 text-8xl font-black">Schedule</h1>
<h1 className="mx-auto my-8 w-3/4 text-center text-5xl font-black md:text-left md:text-8xl">
Schedule
</h1>
<Suspense fallback={<Loading />}>
{/* <UserScheduleView /> */}
<ScheduleTimeline schedule={sched} timezone={userTimeZone} />
Expand Down
11 changes: 7 additions & 4 deletions apps/web/src/app/dash/schedule/schedule-timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,16 @@ export default function ScheduleTimeline({
timezone,
}: ScheduleTimelineProps) {
return (
<div className="mx-auto mt-5 w-3/4">
<div className="w-7/8 mx-auto mt-5 sm:w-3/4">
<table className="p-4">
<tbody>
{Array.from(splitByDay(schedule).entries()).map(
([dayName, arr]): ReactNode => (
<>
<tr key={dayName + " title"} className="py-8">
<tr
key={dayName + " title"}
className="py-16 sm:py-8"
>
<td></td>
<td
className="w-1"
Expand All @@ -55,7 +58,7 @@ export default function ScheduleTimeline({
}}
></td>
<td>
<h2 className="ml-16 w-full border-b py-4 text-6xl font-black">
<h2 className="ml-8 w-full border-b py-4 text-4xl font-black sm:ml-16 sm:text-6xl">
{dayName}
</h2>
</td>
Expand Down Expand Up @@ -102,7 +105,7 @@ export function EventRow({ event, userTimeZone }: EventRowProps) {
return (
<Link href={href} legacyBehavior>
<tr className="cursor-pointer text-center text-xl text-foreground">
<td className="pr-16">{`${startTimeFormatted} - ${endTimeFormatted}`}</td>
<td className="pr-8 sm:pr-16">{`${startTimeFormatted} - ${endTimeFormatted}`}</td>
<td
className={"relative h-20 w-1"}
style={{
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/sign-in/[[...sign-in]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default function Page() {
);
}

export const runtime = "edge";
export const runtime = "edge";
Loading