Skip to content

Commit a1d2f69

Browse files
authored
Merge pull request #49 from Jim-Hodapp-Coaching/48-mobile-breakpoint-css-updates
2 parents 26c9b99 + 6a91cec commit a1d2f69

File tree

6 files changed

+48
-373
lines changed

6 files changed

+48
-373
lines changed

src/app/coaching-sessions/[id]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ export default function CoachingSessionsPage() {
152152
};
153153

154154
return (
155-
<>
156-
<div className="flex-col h-full md:flex">
155+
<div className="max-w-screen-2xl">
156+
<div className="flex-col h-full md:flex ">
157157
<div className="flex flex-col items-start justify-between space-y-2 py-4 px-4 sm:flex-row sm:items-center sm:space-y-0 md:h-16">
158158
<CoachingSessionTitle
159159
locale={siteConfig.locale}
@@ -243,6 +243,6 @@ export default function CoachingSessionsPage() {
243243
</div>
244244
</div>
245245
</div>
246-
</>
246+
</div>
247247
);
248248
}

src/app/dashboard/page.tsx

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,10 @@ export default function DashboardPage() {
3535
const { userId } = useAuthStore((state) => state);
3636

3737
return (
38-
<>
39-
<div className="md:hidden">
40-
<Image
41-
src="/examples/cards-light.png"
42-
width={1280}
43-
height={1214}
44-
alt="Cards"
45-
className="block dark:hidden"
46-
/>
47-
<Image
48-
src="/examples/cards-dark.png"
49-
width={1280}
50-
height={1214}
51-
alt="Cards"
52-
className="hidden dark:block"
53-
/>
54-
</div>
55-
<div className="hidden items-start justify-center gap-6 rounded-lg p-8 md:grid lg:grid-cols-2 xl:grid-cols-3">
56-
<DashboardContainer>
57-
<SelectCoachingSession userId={userId} />
58-
</DashboardContainer>
59-
</div>
60-
</>
38+
<div className="items-start justify-center gap-6 rounded-lg p-8 md:grid lg:grid-cols-2 xl:grid-cols-3">
39+
<DashboardContainer>
40+
<SelectCoachingSession userId={userId} />
41+
</DashboardContainer>
42+
</div>
6143
);
6244
}

src/app/favicon.ico

226 KB
Binary file not shown.

src/app/login/page.tsx

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,12 @@ export const metadata: Metadata = {
1616
export default function AuthenticationPage() {
1717
return (
1818
<>
19-
<div className="md:hidden">
20-
<Image
21-
src="/examples/authentication-light.png"
22-
width={1280}
23-
height={843}
24-
alt="Authentication"
25-
className="block dark:hidden"
26-
/>
27-
<Image
28-
src="/examples/authentication-dark.png"
29-
width={1280}
30-
height={843}
31-
alt="Authentication"
32-
className="hidden dark:block"
33-
/>
34-
</div>
35-
<div className="container relative hidden h-[800px] flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0">
19+
<div className="container relative h-[800px] flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0">
3620
<Link
3721
href="#"
3822
className={cn(
3923
buttonVariants({ variant: "ghost" }),
40-
"absolute right-4 top-4 md:right-8 md:top-8"
24+
"hidden absolute right-4 top-4 md:right-8 md:top-8"
4125
)}
4226
>
4327
Sign Up
@@ -69,7 +53,7 @@ export default function AuthenticationPage() {
6953
</blockquote>
7054
</div>
7155
</div>
72-
<div className="lg:p-8">
56+
<div className="lg:p-8 sm:mt-8">
7357
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
7458
<div className="flex flex-col space-y-2 text-center">
7559
<h1 className="text-2xl font-semibold tracking-tight">

src/components/ui/mobile-nav.tsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
"use client"
1+
"use client";
22

3-
import * as React from "react"
4-
import Link, { LinkProps } from "next/link"
5-
import { useRouter } from "next/navigation"
6-
import { ViewVerticalIcon } from "@radix-ui/react-icons"
3+
import * as React from "react";
4+
import Link, { LinkProps } from "next/link";
5+
import { useRouter } from "next/navigation";
6+
import { ViewVerticalIcon } from "@radix-ui/react-icons";
77

8-
import { siteConfig, docsConfig } from "@/site.config.ts"
9-
import { cn } from "@/lib/utils"
10-
import { Icons } from "@/components/ui/icons"
11-
import { Button } from "@/components/ui/button"
12-
import { ScrollArea } from "@/components/ui/scroll-area"
13-
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet"
8+
import { siteConfig, docsConfig } from "@/site.config.ts";
9+
import { cn } from "@/lib/utils";
10+
import { Icons } from "@/components/ui/icons";
11+
import { Button } from "@/components/ui/button";
12+
import { ScrollArea } from "@/components/ui/scroll-area";
13+
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet";
1414

1515
export function MobileNav() {
16-
const [open, setOpen] = React.useState(false)
16+
const [open, setOpen] = React.useState(false);
1717

1818
return (
1919
<Sheet open={open} onOpenChange={setOpen}>
@@ -110,13 +110,13 @@ export function MobileNav() {
110110
</ScrollArea>
111111
</SheetContent>
112112
</Sheet>
113-
)
113+
);
114114
}
115115

116116
interface MobileLinkProps extends LinkProps {
117-
onOpenChange?: (open: boolean) => void
118-
children: React.ReactNode
119-
className?: string
117+
onOpenChange?: (open: boolean) => void;
118+
children: React.ReactNode;
119+
className?: string;
120120
}
121121

122122
function MobileLink({
@@ -126,18 +126,18 @@ function MobileLink({
126126
children,
127127
...props
128128
}: MobileLinkProps) {
129-
const router = useRouter()
129+
const router = useRouter();
130130
return (
131131
<Link
132132
href={href}
133133
onClick={() => {
134-
router.push(href.toString())
135-
onOpenChange?.(false)
134+
router.push(href.toString());
135+
onOpenChange?.(false);
136136
}}
137137
className={cn(className)}
138138
{...props}
139139
>
140140
{children}
141141
</Link>
142-
)
142+
);
143143
}

0 commit comments

Comments
 (0)