-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
0b857a7
commit a660d39
Showing
8 changed files
with
288 additions
and
106 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,102 +1,17 @@ | ||
/* eslint-disable max-len */ | ||
|
||
import './App.scss'; | ||
// import moviesFromServer from './api/movies.json'; | ||
import moviesFromServer from './api/movies.json'; | ||
import { MovieList } from './components/MovieList/MovieList'; | ||
|
||
export const App = () => ( | ||
<div className="page"> | ||
<div className="page-content"> | ||
<div className="movies"> | ||
<div className="card" data-cy="Movie"> | ||
<div className="card-image"> | ||
<figure className="image is-4by3"> | ||
<img | ||
data-cy="MovieImage" | ||
src="https://m.media-amazon.com/images/M/MV5BMjAxMzY3NjcxNF5BMl5BanBnXkFtZTcwNTI5OTM0Mw@@._V1_SX300.jpg" | ||
alt="Film logo" | ||
/> | ||
</figure> | ||
</div> | ||
|
||
<div className="card-content"> | ||
<div className="media"> | ||
<div className="media-left"> | ||
<figure className="image is-48x48"> | ||
<img src="images/imdb-logo.jpeg" alt="imdb" /> | ||
</figure> | ||
</div> | ||
|
||
<div className="media-content"> | ||
<p className="title is-8" data-cy="MovieTitle"> | ||
Inception | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div className="content"> | ||
<p data-cy="MovieDescription"> | ||
Follows the lives of eight very different couples in dealing | ||
with their love lives in various loosely interrelated tales all | ||
set during a frantic month before Christmas in London, England. | ||
</p> | ||
|
||
<a | ||
href="https://www.imdb.com/title/tt1375666" | ||
data-cy="MovieLink" | ||
> | ||
IMDB | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="card" data-cy="Movie"> | ||
<div className="card-image"> | ||
<figure className="image is-4by3"> | ||
<img | ||
data-cy="MovieImage" | ||
src="https://m.media-amazon.com/images/M/MV5BMTY4NjQ5NDc0Nl5BMl5BanBnXkFtZTYwNjk5NDM3._V1_.jpg" | ||
alt="Film logo" | ||
/> | ||
</figure> | ||
</div> | ||
|
||
<div className="card-content"> | ||
<div className="media"> | ||
<div className="media-left"> | ||
<figure className="image is-48x48"> | ||
<img src="images/imdb-logo.jpeg" alt="imdb" /> | ||
</figure> | ||
</div> | ||
|
||
<div className="media-content"> | ||
<p className="title is-8" data-cy="MovieTitle"> | ||
Love Actually | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div className="content"> | ||
<p data-cy="MovieDescription"> | ||
A thief who steals corporate secrets through the use of | ||
dream-sharing technology is given the inverse task of planting | ||
an idea into the mind of a C.E.O. | ||
</p> | ||
|
||
<a | ||
href="https://www.imdb.com/title/tt0314331" | ||
data-cy="MovieLink" | ||
> | ||
IMDB | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<MovieList movies={moviesFromServer} /> | ||
</div> | ||
|
||
<div className="sidebar" data-cy="Sidebar"> | ||
Sidebar will be here | ||
</div> | ||
; | ||
</div> | ||
); |
Oops, something went wrong.