diff --git a/public/assets/style/main.css b/public/assets/style/main.css new file mode 100644 index 0000000..32a7ce1 --- /dev/null +++ b/public/assets/style/main.css @@ -0,0 +1,112 @@ +@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap'); + +body { + background-color: #F0F0F0; + font-family: "Open Sans", sans-serif; + text-align: center; +} + +*::selection { + background-color: #00BCD4; + color: white; +} + +h1 { + background-image: linear-gradient(to right, #4CAF50, #4CAF50 40%, #00BCD4 60%); + background-clip: text; + color: transparent; + font-size: 3rem; + margin-top: 3rem; + margin-bottom: 1rem; +} + +p { + color: #9E9E9E; + font-size: 0.8rem; +} + +#file-input { + display: none; +} + +#file-drop-area { + max-width: 355px; + height: 200px; + border: 3px dotted #BDBDBD; + margin: 3rem auto; + border-radius: 1rem; + display: flex; + justify-content: center; + align-items: center; + transition: background-color ease-in 200ms; + cursor: pointer; +} + +#file-drop-area span { + color: #9E9E9E; +} + +#file-drop-area:hover, #file-drop-area:focus { + background-color: #E0E0E0; + outline: none; +} + +button { + background-image: linear-gradient(to right, #4CAF50, #00BCD4); + border: none; + color: white; + padding: 0.5rem 1rem; + border-radius: 0.5rem; + box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1); + font-weight: bold; + transition: all ease-in 100ms; + cursor: pointer; +} + +button:hover { + filter: brightness(1.1); +} + +button:active { + filter: brightness(0.8); +} + +button:focus { + box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2); + outline: 2px solid black; +} + +input, select { + background-color: white; + padding: 0.5rem 1rem; + border-radius: 0.5rem; + border: 1px solid #BDBDBD; + box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1); + transition: all ease-in 100ms; +} + +input:focus, select:focus { + outline: none; + border: 1px solid #00BCD4; + box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2); +} + +#filesize { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} + +#filesize-unit { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + border-left: 1px solid white; +} + +#filesize-unit:focus { + border-left: 1px solid #00BCD4; +} + +#compress { + margin-left: 1rem; +} + diff --git a/public/index.html b/public/index.html index 11339a4..8ecfbce 100644 --- a/public/index.html +++ b/public/index.html @@ -5,13 +5,26 @@ Video Compressor +

Video Compressor

Compress video files to a specific file size, so you can upload them to your favorite social media and messaging apps!

- -

File size: MB

- + +
+ Drag and drop a file here! +
+ + + + +