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:
15
client/app/components/embedded-youtube/embedded-youtube.scss
Normal file
15
client/app/components/embedded-youtube/embedded-youtube.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
16
client/app/components/embedded-youtube/embedded-youtube.tsx
Normal file
16
client/app/components/embedded-youtube/embedded-youtube.tsx
Normal 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>
|
||||
);
|
||||
};
|
||||
@@ -11,6 +11,7 @@
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-right: 20px;
|
||||
z-index: 100;
|
||||
|
||||
&__title-container {
|
||||
display: flex;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from './embedded-youtube/embedded-youtube';
|
||||
export * from './header/header';
|
||||
export * from './navbar/navbar';
|
||||
export * from './sound-list/sound-list';
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
overflow-y: auto;
|
||||
padding-bottom: 10px;
|
||||
transition: 0.2s left ease-in-out;
|
||||
z-index: 100;
|
||||
|
||||
&--open {
|
||||
left: 0;
|
||||
|
||||
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user