diff --git a/app/api/lectures.json/route.ts b/app/api/lectures.json/route.ts new file mode 100644 index 0000000..ac82dbc --- /dev/null +++ b/app/api/lectures.json/route.ts @@ -0,0 +1,5 @@ +import { allLectures } from "contentlayer/generated"; + +export function GET() { + return Response.json(allLectures) +} \ No newline at end of file diff --git a/app/layout.tsx b/app/layout.tsx index a71c900..8c2c8ea 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -3,6 +3,7 @@ import "prism-themes/themes/prism-atom-dark.css" import { Menu, MenuContextProvider } from "./menu" import { TimezoneNotice } from "@/components/TimezoneNotice" import { Metadata } from "next" +import Link from "next/link" export const metadata: Metadata = { title: { @@ -22,7 +23,9 @@ export default function RootLayout({
-

CIS 1951

+

+ CIS 1951 +

CIS 1951

diff --git a/app/lectures/[slug]/[filename]/route.ts b/app/lectures/[slug]/[filename]/route.ts index fd6813d..7aa9eec 100644 --- a/app/lectures/[slug]/[filename]/route.ts +++ b/app/lectures/[slug]/[filename]/route.ts @@ -23,7 +23,7 @@ const contentTypes = { pdf: "application/pdf", } -export async function GET(_request: NextRequest, { params }: { params: { slug: string, filename: string } }) { +export function GET(_request: NextRequest, { params }: { params: { slug: string, filename: string } }) { const lecture = allLectures.find(lecture => lecture.slug === params.slug) if (!lecture) return new Response("Not found", { status: 404 }) diff --git a/content/lectures/01-intro/a.txt b/content/lectures/01-intro/a.txt deleted file mode 100644 index 3a2eb43..0000000 --- a/content/lectures/01-intro/a.txt +++ /dev/null @@ -1 +0,0 @@ -qwer \ No newline at end of file diff --git a/content/lectures/01-intro/data.yaml b/content/lectures/01-intro/data.yaml index e72d871..c378a55 100644 --- a/content/lectures/01-intro/data.yaml +++ b/content/lectures/01-intro/data.yaml @@ -1,4 +1,4 @@ -title: "Lecture 1: Intro to iOS & Xcode" +title: "Lecture 1: Intro to iOS Dev & Xcode" dates: "201": 2024-01-18T19:00:00-05:00 "202": 2024-01-22T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/01-intro/slides.txt b/content/lectures/01-intro/slides.txt deleted file mode 100644 index 5e40c08..0000000 --- a/content/lectures/01-intro/slides.txt +++ /dev/null @@ -1 +0,0 @@ -asdf \ No newline at end of file diff --git a/content/lectures/02-swift/data.yaml b/content/lectures/02-swift/data.yaml new file mode 100644 index 0000000..152519d --- /dev/null +++ b/content/lectures/02-swift/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 2: Swift Basics" +dates: + "201": 2024-01-25T19:00:00-05:00 + "202": 2024-01-29T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/03-swiftui-fundamentals/data.yaml b/content/lectures/03-swiftui-fundamentals/data.yaml new file mode 100644 index 0000000..347c6d2 --- /dev/null +++ b/content/lectures/03-swiftui-fundamentals/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 3: SwiftUI Fundamentals" +dates: + "201": 2024-02-01T19:00:00-05:00 + "202": 2024-02-05T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/04-state-management/data.yaml b/content/lectures/04-state-management/data.yaml new file mode 100644 index 0000000..36aabf5 --- /dev/null +++ b/content/lectures/04-state-management/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 4: SwiftUI State Management" +dates: + "201": 2024-02-08T19:00:00-05:00 + "202": 2024-02-12T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/05-app-lifecycle-and-structure/data.yaml b/content/lectures/05-app-lifecycle-and-structure/data.yaml new file mode 100644 index 0000000..9eb1be9 --- /dev/null +++ b/content/lectures/05-app-lifecycle-and-structure/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 5: App Lifecycle & Structure" +dates: + "201": 2024-02-15T19:00:00-05:00 + "202": 2024-02-19T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/06-custom-views-and-event-handling/data.yaml b/content/lectures/06-custom-views-and-event-handling/data.yaml new file mode 100644 index 0000000..f3828d8 --- /dev/null +++ b/content/lectures/06-custom-views-and-event-handling/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 6: Custom Views & Event Handlings" +dates: + "201": 2024-02-22T19:00:00-05:00 + "202": 2024-02-26T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/07-sensors/data.yaml b/content/lectures/07-sensors/data.yaml new file mode 100644 index 0000000..38bf82e --- /dev/null +++ b/content/lectures/07-sensors/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 7: Sensors" +dates: + "201": 2024-02-29T19:00:00-05:00 + "202": 2024-03-11T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/08-networking/data.yaml b/content/lectures/08-networking/data.yaml new file mode 100644 index 0000000..2c4b2b5 --- /dev/null +++ b/content/lectures/08-networking/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 8: Networking" +dates: + "201": 2024-03-14T19:00:00-05:00 + "202": 2024-03-18T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/09-data-persistence/data.yaml b/content/lectures/09-data-persistence/data.yaml new file mode 100644 index 0000000..63d6b34 --- /dev/null +++ b/content/lectures/09-data-persistence/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 9: Data Persistence" +dates: + "201": 2024-03-21T19:00:00-05:00 + "202": 2024-03-25T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/10-uikit/data.yaml b/content/lectures/10-uikit/data.yaml new file mode 100644 index 0000000..a0ce1c0 --- /dev/null +++ b/content/lectures/10-uikit/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 10: UIKit" +dates: + "201": 2024-03-28T19:00:00-05:00 + "202": 2024-04-01T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/11-app-design-and-ux/data.yaml b/content/lectures/11-app-design-and-ux/data.yaml new file mode 100644 index 0000000..68cbd0a --- /dev/null +++ b/content/lectures/11-app-design-and-ux/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 11: App Design & UX" +dates: + "201": 2024-04-04T19:00:00-05:00 + "202": 2024-04-08T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/12-app-distribution-and-app-store/data.yaml b/content/lectures/12-app-distribution-and-app-store/data.yaml new file mode 100644 index 0000000..ee014e3 --- /dev/null +++ b/content/lectures/12-app-distribution-and-app-store/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 12: App Distribution & App Store" +dates: + "201": 2024-04-11T19:00:00-05:00 + "202": 2024-04-15T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/13-bonus/data.yaml b/content/lectures/13-bonus/data.yaml new file mode 100644 index 0000000..7a7c092 --- /dev/null +++ b/content/lectures/13-bonus/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 13: Bonus (TBD)" +dates: + "201": 2024-04-18T19:00:00-05:00 + "202": 2024-04-22T17:15:00-05:00 \ No newline at end of file diff --git a/content/lectures/14-final-presentations/data.yaml b/content/lectures/14-final-presentations/data.yaml new file mode 100644 index 0000000..57983cd --- /dev/null +++ b/content/lectures/14-final-presentations/data.yaml @@ -0,0 +1,4 @@ +title: "Lecture 14: Final Presentations" +dates: + "201": 2024-04-25T19:00:00-05:00 + "202": 2024-04-29T17:15:00-05:00 \ No newline at end of file