File tree 6 files changed +195
-28
lines changed
6 files changed +195
-28
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import styles from "../styles/VideoSection.module.css" ;
3
+ import Plyr from "plyr-react" ;
4
+ import "plyr-react/plyr.css" ;
3
5
4
6
export default function VideoSection ( ) {
5
7
return (
6
8
< 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
+ />
18
20
</ div >
19
21
) ;
20
22
}
Original file line number Diff line number Diff line change 20
20
"nextjs-cors" : " ^2.1.1" ,
21
21
"nextjs-progressbar" : " 0.0.14" ,
22
22
"photoswipe" : " ^5.3.0" ,
23
+ "plyr-react" : " ^5.1.0" ,
23
24
"react" : " 18.1.0" ,
24
25
"react-dom" : " 18.1.0" ,
25
26
"react-google-recaptcha" : " ^2.1.0" ,
Original file line number Diff line number Diff line change @@ -159,9 +159,7 @@ export default function Bosqich({
159
159
) : (
160
160
< >
161
161
< Marathon data = { camp . data } />
162
- < VideoSection />
163
162
</ >
164
-
165
163
) }
166
164
167
165
< BosqichPrizes title = { data [ 0 ] . contest_gifts } resGifts = { resGifts } />
@@ -176,6 +174,8 @@ export default function Bosqich({
176
174
false
177
175
)} */ }
178
176
177
+ { parseInt ( query . id ) === 2 ? < VideoSection /> : false }
178
+
179
179
< div className = { styles . rules } >
180
180
{ locale === "uz-UZ" ? (
181
181
< h2 > Konkurs qoidalari</ h2 >
@@ -195,7 +195,10 @@ export default function Bosqich({
195
195
</ div >
196
196
197
197
< Winners bosqich = { true } users = { users } userslist = { userslist } />
198
- < InitiativePartnersSteps HomeContent = { HomeContent } partners = { partners . data } />
198
+ < InitiativePartnersSteps
199
+ HomeContent = { HomeContent }
200
+ partners = { partners . data }
201
+ />
199
202
200
203
< Prizes
201
204
title = { data [ 0 ] . contest_award_ceremony }
@@ -205,7 +208,6 @@ export default function Bosqich({
205
208
206
209
{ parseInt ( query . id ) === 2 ? (
207
210
< div >
208
-
209
211
{ /* <PhotoAlbom data={photo.data}/> */ }
210
212
< Question data = { faq . data } HomeContent = { HomeContent } />
211
213
</ div >
Original file line number Diff line number Diff line change 1
1
.container {
2
2
position : relative;
3
-
3
+ margin-top : 50 px ;
4
4
margin-bottom : 50px ;
5
5
}
6
6
You can’t perform that action at this time.
0 commit comments