1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-12 10:02:48 +00:00

UI done for video archiving

This commit is contained in:
2018-08-23 00:07:08 -05:00
parent 5a542e0ffb
commit 94bac26903
30 changed files with 393 additions and 68 deletions

View File

@@ -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;
}
}

View File

@@ -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 (
<div className={`embedded-youtube ${className}`}>
<iframe src={src} className="embedded-youtube__iframe" allowFullScreen />
</div>
);
};

View File

@@ -11,6 +11,7 @@
align-items: center;
justify-content: space-between;
padding-right: 20px;
z-index: 100;
&__title-container {
display: flex;

View File

@@ -1,3 +1,4 @@
export * from './embedded-youtube/embedded-youtube';
export * from './header/header';
export * from './navbar/navbar';
export * from './sound-list/sound-list';

View File

@@ -13,6 +13,7 @@
overflow-y: auto;
padding-bottom: 10px;
transition: 0.2s left ease-in-out;
z-index: 100;
&--open {
left: 0;

View File

@@ -74,6 +74,7 @@ export class Navbar extends React.Component<Props, State> {
return (
<div className={'navbar ' + openClass}>
{this.renderNavLink('Soundboard', '/', { exact: true })}
{this.renderNavLink('Video Archive', '/video-archive')}
{this.renderNavLink('Youtube Downloader', '/downloader')}
{this.renderNavLink('Clips', '/clips')}
{this.renderNavLink('Stats', '/stats')}