diff --git a/frontend/src/app.js b/frontend/src/app.js index 7d57654..6ca61e1 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -51,6 +51,10 @@ app.get( '/showcase.css', ( req, res ) => { res.sendFile( path.join( __dirname + '/client/showcase.css' ) ); } ); +app.get( '/backgroundAnim.css', ( req, res ) => { + res.sendFile( path.join( __dirname + '/client/backgroundAnim.css' ) ); +} ); + app.get( '/clientDisplayNotifier', ( req, res ) => { res.writeHead( 200, { 'Content-Type': 'text/event-stream', diff --git a/frontend/src/client/backgroundAnim.css b/frontend/src/client/backgroundAnim.css new file mode 100644 index 0000000..0b2d7e4 --- /dev/null +++ b/frontend/src/client/backgroundAnim.css @@ -0,0 +1,37 @@ +.background { + position: fixed; + left: -50vw; + width: 200vw; + height: 200vw; + top: -50vw; + z-index: -1; + filter: blur(10px); + background: conic-gradient( blue, green, red, blue ); + animation: gradientAnim 10s infinite linear; + background-position: center; +} + +.beat { + height: 100%; + width: 100%; + background-color: rgba( 0, 0, 0, 0.2 ); + animation: beatAnim 0.6s infinite linear; +} + +@keyframes beatAnim { + 0% { + background-color: rgba( 0, 0, 0, 0.2 ); + } + 50% { + background-color: rgba( 0, 0, 0, 0 ); + } +} + +@keyframes gradientAnim { + from { + transform: rotate( 0deg ); + } + to { + transform: rotate( 360deg ); + } +} \ No newline at end of file diff --git a/frontend/src/client/showcase.css b/frontend/src/client/showcase.css index b3fe7a5..26796ed 100644 --- a/frontend/src/client/showcase.css +++ b/frontend/src/client/showcase.css @@ -188,4 +188,12 @@ body { object-position: center; margin-bottom: 20px; font-size: 30vh !important; +} + +#canvas { + display: none; +} + +#app { + background-color: rgba( 0, 0, 0, 0 ); } \ No newline at end of file diff --git a/frontend/src/client/showcase.html b/frontend/src/client/showcase.html index be80008..d59337c 100644 --- a/frontend/src/client/showcase.html +++ b/frontend/src/client/showcase.html @@ -7,6 +7,7 @@