-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbbb02c
commit 2825681
Showing
17 changed files
with
203 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
body { | ||
background-color:rgb(12, 15, 22); | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
height: 100%; | ||
width: 100%; | ||
margin: 0px; | ||
margin-top: 4%; | ||
margin-bottom: 4%; | ||
-webkit-user-select: none; /* Safari */ | ||
-ms-user-select: none; /* IE 10 and IE 11 */ | ||
user-select: none; /* Standard syntax */ | ||
} | ||
|
||
|
||
.background { | ||
display: table-cell; | ||
vertical-align: middle; | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
color: #ffffffea; | ||
} | ||
|
||
::-webkit-scrollbar { | ||
|
||
width: 8px; | ||
|
||
height: 10px; | ||
|
||
} | ||
|
||
::-webkit-scrollbar-thumb { | ||
border-radius: 8px; | ||
background: #c2c9d2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { useState } from "react"; | ||
import './style.css' | ||
|
||
const movieList = (props) => { | ||
const movies = props.movies; | ||
const user = props.user; | ||
const handlePlayClick = (movie) => { | ||
props.onSetMovie(movie); | ||
}; | ||
|
||
return ( | ||
<div style={{ height: "100vh", width: "100vw" }} className="row movie_list"> | ||
<h1>Bonjour, {user.username}</h1> | ||
<h2>Voici les films à la une:</h2> | ||
{movies.map((movie) => ( | ||
<div onClick={() => handlePlayClick(movie)} key={movie.id} className="card movie_card"> | ||
<img src={movie.img_url} className="card-img-top" alt="..."/> | ||
<div className="card-body"> | ||
<h3 className="card-title">{movie.title}</h3> | ||
<h6 className="card-description">{movie.description}</h6> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default movieList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const movieSingle = (props) => { | ||
const movie = props.movie; | ||
|
||
const handleBackClick = () => { | ||
props.onSetMovie(null); | ||
}; | ||
|
||
return ( | ||
<div style={{ height: "100vh", width: "100vw" }}> | ||
<div id="button-back"> | ||
<button onClick={() => handleBackClick()} class="btn btn-lg btn-dark"><span class="fa fa-back"></span> RETOUR</button> | ||
</div> | ||
<h1 className="text-center">{ movie.title }</h1> | ||
<h1 className="text-center">{ movie.description }</h1> | ||
<div class="video-wrapper"> | ||
<iframe src={ movie.stream_url } frameborder="0" width="90%" height="90%" align="center" ></iframe> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default movieSingle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
img { | ||
-webkit-user-drag: none; | ||
-moz-user-drag: none; | ||
-o-user-drag: none; | ||
} | ||
.movie_list{ | ||
padding-right: 8%; | ||
padding-left: 8%; | ||
padding-bottom: 5%; | ||
} | ||
.movie_card{ | ||
padding: 0 !important; | ||
background-color:rgba(0, 0, 0, 0.2); | ||
width: 20%; | ||
margin: 2%; | ||
border-radius: 10px; | ||
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.2), 0 4px 15px 0 rgba(0, 0, 0, 0.19); | ||
cursor:pointer; | ||
transition: transform .2s ease; | ||
} | ||
.movie_card:hover { | ||
transform: scale(1.1); | ||
} | ||
.movie_card img{ | ||
border-top-left-radius: 10px; | ||
border-top-right-radius: 10px; | ||
height: 60%; | ||
} | ||
.card-title{ | ||
width: 90%; | ||
height: 20%; | ||
} | ||
.card-description{ | ||
width: 90%; | ||
height: 10%; | ||
} | ||
|
||
.video-wrapper { | ||
position: relative; | ||
padding-bottom: 56.25%; | ||
padding-top: 25px; | ||
height: 0; | ||
} | ||
.video-wrapper iframe { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
#bouton-back { | ||
height: 50px; | ||
width: 500px; | ||
background-color: #686de0; | ||
position: fixed; | ||
top: 100px; | ||
} |
Oops, something went wrong.