diff --git a/src/App.css b/src/App.css index c98e261..5afb373 100644 --- a/src/App.css +++ b/src/App.css @@ -13,6 +13,49 @@ stroke: #0366d6; } +.twitch .twitch-video { + padding-top: 56.25%; + position: relative; + height: 0; +} + +.twitch .twitch-video iframe { + position: absolute; + width: 100%; + height: 100%; + top: 0; +} + +.twitch .twitch-chat { + height: 400px; +} + +.twitch .twitch-chat iframe { + width: 100%; + height: 100%; +} + +@media screen and (min-width: 850px) { + .twitch { + position: relative; + } + + .twitch .twitch-video { + width: 75%; + padding-top: 42.1875%; + } + + .twitch .twitch-chat { + width: 25%; + height: auto; + position: absolute; + top: 0; + right: 0; + bottom: 0; + } +} + + a { text-decoration: none; } diff --git a/src/App.js b/src/App.js index 6512f61..4ccac35 100644 --- a/src/App.js +++ b/src/App.js @@ -123,33 +123,26 @@ function Header({gitHub, adminLinks}) { } function TwitchStream() { - const asyncHero = useAsync(channelStatus, []); - return ( -