-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTopicContent.tsx
More file actions
51 lines (45 loc) · 1.63 KB
/
Copy pathTopicContent.tsx
File metadata and controls
51 lines (45 loc) · 1.63 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
39
40
41
42
43
44
45
46
47
48
49
50
51
// "use client";
// import { useRef, useState } from "react";
import { VideoRenderer } from "../Common/VideoPlayer";
import clsx from "clsx";
import ClassTextContent from "./Topic/TextContent";
// export default async function TopicContent() {
// // const [hideVideo, setHideVideo] = useState(false);
// // const contentRef = useRef<HTMLDivElement>(null);
// // const observerRef = useRef<IntersectionObserver>(null);
// return (
// // <section className="pb-[120px] ">
// <main className="w-full scroll-smooth pt-[80px]">
// {/* <div
// className={clsx(
// "h-screen snap-y snap-mandatory snap-center overflow-y-scroll",
// {
// hidden: hideVideo,
// },
// )}
// >
// <ClassVideoContent />
// </div> */}
// <section className={clsx(
// "snap-start py-12",
// // {
// // "pt-[30vh]": hideVideo
// // }
// )}>
// <div className="container space-y-10">
// <ClassTextContent />
// </div>
// </section>
// </main>
// );
// }
function ClassVideoContent() {
return (
<section className="relative h-screen w-full snap-start">
<VideoRenderer
url="https://www.youtube.com/embed/NpEaa2P7qZI?si=thAmeYrbyvTowjXN?autoplay=0&rel=0&showinfo=0&modestbranding=1"
title="Probify Intro Video"
/>
</section>
);
}