Skip to content

Commit 9e61824

Browse files
committed
add youtube to portable text
1 parent 7d54335 commit 9e61824

123 files changed

Lines changed: 7233 additions & 5663 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gemini/settings.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"mcpServers": {
3-
"sanity": {
4-
"url": "https://mcp.sanity.io/developer",
5-
"type": "http"
6-
}
7-
}
8-
}
2+
"mcpServers": {
3+
"sanity": {
4+
"url": "https://mcp.sanity.io/developer",
5+
"type": "http"
6+
}
7+
}
8+
}

.vscode/mcp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
}
77
},
88
"inputs": []
9-
}
9+
}

app/(main)/(course)/course/[courseSlug]/lesson/[lessonSlug]/lesson-complete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
export default function LessonComplete() {
44
return <></>;
5-
}
5+
}

app/(main)/(course)/course/[courseSlug]/lesson/[lessonSlug]/lesson-panel.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323

2424
import { useLocalStorage } from "@uidotdev/usehooks";
2525

26-
2726
export default function LessonPanel({
2827
lesson,
2928
course,
@@ -70,7 +69,6 @@ export default function LessonPanel({
7069
/>
7170
</main>
7271
<footer className="grid grid-cols-3 h-14 lg:h-[60px] gap-1 sm:gap-4 border-b px-6 dark:bg-gray-800/40">
73-
7472
<div className="flex justify-center items-center">
7573
{lessonIndex > 0 && (
7674
<Button variant="ghost" asChild>
@@ -92,7 +90,6 @@ export default function LessonPanel({
9290
</Button>
9391
)}
9492
</div>
95-
9693
</footer>
9794
</div>
9895
);

app/(main)/(course)/course/[courseSlug]/lesson/[lessonSlug]/nav-lesson.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { useActivePath } from "@/lib/hooks";
77
import { Separator } from "@/components/ui/separator";
88
import BadgePro from "@/components/badge-pro";
99

10-
1110
interface Props {
1211
course: LessonsInCourseQueryResult | undefined;
1312
}
@@ -30,8 +29,6 @@ export default function NavLesson({ course }: Props) {
3029
className="flex gap-2 justify-center align-middle items-center"
3130
key={l._id}
3231
>
33-
34-
3532
<Link
3633
href={`/course/${course.slug}/lesson/${l.slug}`}
3734
className={`flex-1 ${

app/(main)/(course)/course/[courseSlug]/lesson/[lessonSlug]/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import type { PortableTextBlock } from "next-sanity";
1919
import { cookies } from "next/headers";
2020
import { jwtDecode } from "jwt-decode";
2121

22-
2322
type Params = Promise<{ lessonSlug: string; courseSlug: string }>;
2423

2524
export async function generateMetadata(
@@ -69,7 +68,9 @@ export default async function LessonPage({ params }: { params: Params }) {
6968
//First check if user session is valid
7069
const cookieStore = await cookies();
7170
const sessionCookie = cookieStore.get("app.at");
72-
if (!sessionCookie){ return redirect(`/course/${course?.slug}?showPro=true`);}
71+
if (!sessionCookie) {
72+
return redirect(`/course/${course?.slug}?showPro=true`);
73+
}
7374
}
7475

7576
return (

app/(main)/(course)/course/[courseSlug]/lessons.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import {
1111
CardHeader,
1212
} from "@/components/ui/card";
1313

14-
15-
1614
export default async function Lessons(params: { courseSlug: string }) {
1715
const { courseSlug } = await params;
1816
const course = (
@@ -77,9 +75,7 @@ export default async function Lessons(params: { courseSlug: string }) {
7775
</CardContent>
7876
<CardFooter className="flex flex-col items-start gap-2">
7977
{locked && course?.stripeProduct && course?.title && (
80-
<section className="flex flex-wrap gap-2">
81-
82-
</section>
78+
<section className="flex flex-wrap gap-2"></section>
8379
)}
8480
</CardFooter>
8581
</Card>

app/(main)/(course)/course/[courseSlug]/page.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { BreadcrumbLinks } from "@/components/breadrumb-links";
1919
import Link from "next/link";
2020
import ShowPro from "./show-pro";
2121

22-
2322
type Params = Promise<{ courseSlug: string }>;
2423

2524
export async function generateMetadata(
@@ -102,9 +101,7 @@ export default async function CoursePage({ params }: { params: Params }) {
102101
</div>
103102
</div>
104103
{course?.stripeProduct && course?.title && (
105-
<section className="flex gap-2">
106-
107-
</section>
104+
<section className="flex gap-2"></section>
108105
)}
109106
</div>
110107
</div>
@@ -114,9 +111,7 @@ export default async function CoursePage({ params }: { params: Params }) {
114111
value={course.content as PortableTextBlock[]}
115112
/>
116113
)}
117-
<div className="p-8 flex justify-end">
118-
119-
</div>
114+
<div className="p-8 flex justify-end"></div>
120115
</article>
121116
<Suspense>
122117
<Lessons courseSlug={courseSlug} />
@@ -129,4 +124,4 @@ export default async function CoursePage({ params }: { params: Params }) {
129124
</aside>
130125
</div>
131126
);
132-
}
127+
}

app/(main)/(course)/courses/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { sanityFetch } from "@/sanity/lib/live";
1212
import { coursesQuery } from "@/sanity/lib/queries";
1313
import MoreHeader from "@/components/more-header";
1414

15-
1615
function HeroCourse({
1716
title,
1817
slug,
@@ -83,7 +82,7 @@ export default async function Page() {
8382
) : (
8483
<Onboarding />
8584
)}
86-
85+
8786
{heroPost?._id && (
8887
<aside>
8988
<MoreHeader title="Latest Courses" href="/courses/page/1" />

0 commit comments

Comments
 (0)