Skip to content
Open
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
189 changes: 189 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"@ant-design/icons": "^5.5.1",
"@supabase/supabase-js": "^2.45.4",
"agora-rtc-sdk-ng": "latest",
"antd": "^5.21.2",
"next": "14.2.14",
"pinata": "^1.5.0",
Expand Down
46 changes: 41 additions & 5 deletions src/app/(protected)/(create-podcasts)/create/page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
export default function CreatePodcast(){
return (
<div>Create Podcast</div>
)
}
"use client"
import { Form, Switch, Input, Button } from "antd";
import { useRouter } from "next/navigation";

export default function CreatePodcast() {
const router = useRouter();

function handleSubmit(values){
router.push(`/livestream?role=${values.host ? "host" : "audience"}&channelName=${values.channelName}`)
}

return (
<div className="w-full h-screen flex items-center justify-center">
<Form
onFinish={handleSubmit}
labelCol={{ span: 16 }}
wrapperCol={{ span: 16 }}
layout={"vertical"}
style={{ maxWidth: 450 }}
>
<Form.Item
label="Channel Name"
name="channelName"
layout="vertical"
>
<Input />
</Form.Item>
<Form.Item
label="Host"
name="host"
layout="vertical"
>
<Switch />
</Form.Item>
<Button type="primary" htmlType="submit">
{"Create"}
</Button>
</Form>
</div>
);
}

This file was deleted.

Loading