-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathindex.js
More file actions
38 lines (35 loc) · 1.02 KB
/
index.js
File metadata and controls
38 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import Layout from "@/components/Layout";
import Banner from "@/components/Banner";
import { Config } from "../services/metadata/home";
import MediaLayout from "@/components/MediaLayout";
import EventSection from "@/components/event/EventSection";
export default function Home() {
const reactPlayLive = [
{ id: 0, src: "https://www.youtube.com/embed/1qfDkmtuWqg" },
{ id: 1, src: "https://www.youtube.com/embed/b0eas9xxD-E" },
{ id: 2, src: "https://www.youtube.com/embed/w0nd4ASTDdg" },
];
const EventLayout = () => {
return (
<div className="w-full">
<Banner />
<EventSection events={Config.events} />
<MediaLayout
reactPlayLive={reactPlayLive}
title="ReactPlay Live"
id="live"
/>
<MediaLayout
twitterSpaces={Config.twitterSpaces}
title="Twitter Spaces"
id="spaces"
/>
</div>
);
};
return (
<Layout title="The Hustle Home page" metainfo={Config}>
<EventLayout />
</Layout>
);
}