Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Add lectures
Browse files Browse the repository at this point in the history
  • Loading branch information
anli5005 committed Jan 9, 2024
1 parent e53afd1 commit a4bfb0a
Show file tree
Hide file tree
Showing 19 changed files with 63 additions and 5 deletions.
5 changes: 5 additions & 0 deletions app/api/lectures.json/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { allLectures } from "contentlayer/generated";

export function GET() {
return Response.json(allLectures)
}
5 changes: 4 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -22,7 +23,9 @@ export default function RootLayout({
<body>
<MenuContextProvider>
<div className="md:container mx-auto md:px-8 md:py-16">
<h1 className="hidden md:block md:text-8xl w-fit font-bold text-transparent bg-clip-text bg-gradient-to-br from-cyan-600 to-purple-600 dark:from-cyan-500 dark:to-purple-500">CIS 1951</h1>
<h1 className="hidden md:block md:text-8xl w-fit font-bold text-transparent bg-clip-text bg-gradient-to-br from-cyan-600 to-purple-600 dark:from-cyan-500 dark:to-purple-500">
<Link href="/">CIS 1951</Link>
</h1>
<div className="md:mt-8 md:flex flex-nowrap gap-4">
<div className="flex flex-col items-center bg-neutral-50 dark:bg-neutral-800 md:bg-transparent dark:md:bg-transparent pt-4 md:pt-0">
<h1 className="text-center mb-3 md:hidden text-3xl w-fit font-bold text-transparent bg-clip-text bg-gradient-to-br from-cyan-700 to-purple-700 dark:from-cyan-400 dark:to-purple-400">CIS 1951</h1>
Expand Down
2 changes: 1 addition & 1 deletion app/lectures/[slug]/[filename]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down
1 change: 0 additions & 1 deletion content/lectures/01-intro/a.txt

This file was deleted.

2 changes: 1 addition & 1 deletion content/lectures/01-intro/data.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion content/lectures/01-intro/slides.txt

This file was deleted.

4 changes: 4 additions & 0 deletions content/lectures/02-swift/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/03-swiftui-fundamentals/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/04-state-management/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/05-app-lifecycle-and-structure/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/06-custom-views-and-event-handling/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/07-sensors/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/08-networking/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/09-data-persistence/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/10-uikit/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/11-app-design-and-ux/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/12-app-distribution-and-app-store/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/13-bonus/data.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions content/lectures/14-final-presentations/data.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a4bfb0a

Please sign in to comment.