Skip to content

Commit 0b738d6

Browse files
committed
video plyr added
1 parent cda04b9 commit 0b738d6

File tree

6 files changed

+195
-28
lines changed

6 files changed

+195
-28
lines changed

component/VideoSection.js

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
import React from "react";
22
import styles from "../styles/VideoSection.module.css";
3+
import Plyr from "plyr-react";
4+
import "plyr-react/plyr.css";
35

46
export default function VideoSection() {
57
return (
68
<div className={styles.container}>
7-
8-
<video
9-
// poster="/oromgoh.jfif"
10-
src="/oromgoh.MP4"
11-
controls
12-
muted
13-
loop
14-
15-
// autoPlay
16-
></video>
17-
9+
<Plyr
10+
source={{
11+
type: "video",
12+
sources: [
13+
{
14+
src: "tRufat-LWpU",
15+
provider: "youtube",
16+
},
17+
],
18+
}}
19+
/>
1820
</div>
1921
);
2022
}

package-lock.json

+126-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"nextjs-cors": "^2.1.1",
2121
"nextjs-progressbar": "0.0.14",
2222
"photoswipe": "^5.3.0",
23+
"plyr-react": "^5.1.0",
2324
"react": "18.1.0",
2425
"react-dom": "18.1.0",
2526
"react-google-recaptcha": "^2.1.0",

pages/bosqich/[id]/index.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ export default function Bosqich({
159159
) : (
160160
<>
161161
<Marathon data={camp.data} />
162-
<VideoSection />
163162
</>
164-
165163
)}
166164

167165
<BosqichPrizes title={data[0].contest_gifts} resGifts={resGifts} />
@@ -176,6 +174,8 @@ export default function Bosqich({
176174
false
177175
)} */}
178176

177+
{parseInt(query.id) === 2 ? <VideoSection /> : false}
178+
179179
<div className={styles.rules}>
180180
{locale === "uz-UZ" ? (
181181
<h2>Konkurs qoidalari</h2>
@@ -195,7 +195,10 @@ export default function Bosqich({
195195
</div>
196196

197197
<Winners bosqich={true} users={users} userslist={userslist} />
198-
<InitiativePartnersSteps HomeContent={HomeContent} partners={partners.data} />
198+
<InitiativePartnersSteps
199+
HomeContent={HomeContent}
200+
partners={partners.data}
201+
/>
199202

200203
<Prizes
201204
title={data[0].contest_award_ceremony}
@@ -205,7 +208,6 @@ export default function Bosqich({
205208

206209
{parseInt(query.id) === 2 ? (
207210
<div>
208-
209211
{/* <PhotoAlbom data={photo.data}/> */}
210212
<Question data={faq.data} HomeContent={HomeContent} />
211213
</div>

styles/VideoSection.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.container{
22
position: relative;
3-
3+
margin-top: 50px;
44
margin-bottom: 50px;
55
}
66

0 commit comments

Comments
 (0)