From 0f47854746e93a02e713ddd16cae1b5d694a801e Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 28 Mar 2023 23:35:49 -0500 Subject: [PATCH] New UI --- frontend/src/components/FileUpload.jsx | 4 ++-- frontend/src/components/TextUpload.jsx | 2 +- frontend/src/components/UrlShortener.jsx | 2 +- frontend/src/components/modules/NavBar.jsx | 2 +- frontend/src/css/App.css | 25 ++++++++++++++++------ 5 files changed, 23 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/FileUpload.jsx b/frontend/src/components/FileUpload.jsx index 6b273e2..4613138 100644 --- a/frontend/src/components/FileUpload.jsx +++ b/frontend/src/components/FileUpload.jsx @@ -49,9 +49,9 @@ export default () => { height: '85%', }} > - +

Upload a File

-
+ { return ( - + {/* Syntax Selection */} diff --git a/frontend/src/components/UrlShortener.jsx b/frontend/src/components/UrlShortener.jsx index 8a3ee83..fce220f 100644 --- a/frontend/src/components/UrlShortener.jsx +++ b/frontend/src/components/UrlShortener.jsx @@ -60,7 +60,7 @@ export default () => { height: '85%', }} > - +

Shorten a URL

diff --git a/frontend/src/components/modules/NavBar.jsx b/frontend/src/components/modules/NavBar.jsx index d671cee..27d94ea 100644 --- a/frontend/src/components/modules/NavBar.jsx +++ b/frontend/src/components/modules/NavBar.jsx @@ -4,7 +4,7 @@ import { Nav, Navbar } from 'react-bootstrap'; import NavLinkItem from './NavLinkItem'; export default () => ( - + Dev Tools diff --git a/frontend/src/css/App.css b/frontend/src/css/App.css index a4d43fa..5369e72 100644 --- a/frontend/src/css/App.css +++ b/frontend/src/css/App.css @@ -10,11 +10,6 @@ font-style: normal; } -.perfect-width { - max-width: 768px; - width: 100%; -} - .mt-10 { margin-top: 33%; } @@ -49,13 +44,11 @@ input.custom-file-input { } .paste-edit { - aspect-ratio: 22/9; width: 100%; max-width: 1024px; } .paste-view { - aspect-ratio: 16/9; width: 100%; max-width: 1024px; } @@ -74,7 +67,25 @@ input.custom-file-input { } } +@media only screen and (max-width: 992px) { + .paste-edit { + height: 100vh; + } + + .paste-view { + height: 100vh; + } +} + @media only screen and (min-width: 992px) { + .paste-edit { + aspect-ratio: 22/9; + } + + .paste-view { + aspect-ratio: 16/9; + } + body { margin: 0; padding: 0;