-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(project): add playlist screen and container
- Loading branch information
1 parent
6c4832a
commit ccba942
Showing
5 changed files
with
55 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.playlist { | ||
color: var(--primary-color); | ||
font-family: var(--body-alt-font-family); | ||
} |
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,11 @@ | ||
import * as React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
|
||
import Playlist from './Playlist'; | ||
|
||
describe('<Playlist>', () => { | ||
it.skip('renders with heading', () => { | ||
const { getByText } = render(<Playlist playlistId="123" />); | ||
expect(getByText(/aa/i)).toBeTruthy(); | ||
}); | ||
}); |
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,21 @@ | ||
import React from 'react'; | ||
|
||
import styles from './Playlist.module.scss'; | ||
|
||
type PlaylistContainerProps = { | ||
playlistId: string; | ||
}; | ||
|
||
function Playlist({ playlistId }: PlaylistContainerProps): JSX.Element { | ||
return ( | ||
<div className={styles.playlist}> | ||
<header className={styles.playlistHeader}> | ||
<h2 className={styles.playlistTitle}>All films</h2> | ||
<div className={styles.playlistCategory} /> | ||
</header> | ||
<main className={styles.playlistGrid} /> | ||
</div> | ||
); | ||
} | ||
|
||
export default Playlist; |
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,3 @@ | ||
.playlist { | ||
padding-top: 20px; | ||
} |
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,16 @@ | ||
import React from 'react'; | ||
|
||
import PlaylistContainer from '../../containers/Playlist/Playlist' | ||
|
||
import styles from './Playlist.module.scss'; | ||
|
||
|
||
function Playlist() { | ||
return ( | ||
<div className={styles.playlist}> | ||
<PlaylistContainer playlistId="sR5VypYk" /> | ||
</div> | ||
); | ||
} | ||
|
||
export default Playlist; |