diff --git a/client/app/app.tsx b/client/app/app.tsx index eb1f83f..a4a755e 100644 --- a/client/app/app.tsx +++ b/client/app/app.tsx @@ -1,9 +1,9 @@ -import 'babel-polyfill'; +import './scss/index.scss'; import { Provider } from 'mobx-react'; import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; -import { Clips, Downloader, NotFound, Oauth, Soundboard, Stats } from './pages'; +import { Clips, Downloader, NotFound, Oauth, Soundboard, Stats, VideoArchive } from './pages'; import { rootStoreInstance } from './stores'; import { Wrapper } from './wrapper'; @@ -18,6 +18,7 @@ const App: any = (): any => { + diff --git a/client/app/components/embedded-youtube/embedded-youtube.scss b/client/app/components/embedded-youtube/embedded-youtube.scss new file mode 100644 index 0000000..5a5e64e --- /dev/null +++ b/client/app/components/embedded-youtube/embedded-youtube.scss @@ -0,0 +1,15 @@ +.embedded-youtube { + overflow: hidden; + padding-bottom: 56.25%; + position: relative; + height: 0; + + &__iframe { + left: 0; + top: 0; + height: 100%; + width: 100%; + position: absolute; + border: none; + } +} diff --git a/client/app/components/embedded-youtube/embedded-youtube.tsx b/client/app/components/embedded-youtube/embedded-youtube.tsx new file mode 100644 index 0000000..0f887a2 --- /dev/null +++ b/client/app/components/embedded-youtube/embedded-youtube.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import './embedded-youtube.scss'; + +interface IProps { + id: string; + className?: string; +} + +export const EmbeddedYoutube = ({ id, className }: IProps) => { + const src = `https://www.youtube.com/embed/${id}`; + return ( +
+