From 15918792baffa1b8f9e06da3dc0cd89787c23254 Mon Sep 17 00:00:00 2001 From: aandrew-me Date: Sun, 18 Aug 2024 22:08:28 +0300 Subject: [PATCH] Design changes --- assets/css/index.css | 55 +++++++++++++++++++++++++++++++++++--------- html/index.html | 47 ++++++++++++++++++++++--------------- html/playlist.html | 2 ++ translations/en.json | 2 +- 4 files changed, 75 insertions(+), 31 deletions(-) diff --git a/assets/css/index.css b/assets/css/index.css index 36be67c..47dc54e 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -28,16 +28,16 @@ :root[theme="dark"] { --background: rgb(40, 40, 40); --text: white; - --box-main: rgb(80, 80, 80); - --box-toggle: rgb(70, 70, 70); - --box-toggleOn: rgb(28 232 138); + --box-main: rgb(62, 60, 60); + --box-toggle: rgb(47, 47, 47); + --box-toggleOn: rgb(2, 123, 63); --item-bg: rgb(75, 75, 75); --box-shadow: none; - --select: rgb(127, 253, 127); - --greenBtn: #6acd29; - --greenBtn-bottom: #4c8824; - --redBtn: #d64d4f; - --redBtn-bottom: #854243; + --select: rgb(68 214 141); + --greenBtn: #56a025; + --greenBtn-bottom: #3e6c20; + --redBtn: #c82b2d; + --redBtn-bottom: #803334; --blueBtn: rgb(80, 128, 230); --blueBtn-bottom: rgb(44, 78, 180); } @@ -257,11 +257,12 @@ body { .playlistItem { display: flex; position: relative; - width: 86%; + width: 94%; + height: 25px; background-color: var(--item-bg); color: var(--text); padding: 10px 25px; - border-radius: 25px; + border-radius: 15px; align-items: center; justify-content: space-between; margin: 10px auto; @@ -304,7 +305,6 @@ body { .itemProgress { font-weight: bold; cursor: pointer; - margin-top: 10px; } .progressBar { width: 90%; @@ -353,6 +353,12 @@ body { color: var(--text); } +#videoBox, #audioBox { + background-color: var(--box-toggle); + padding: 10px; + border-radius: 10px; +} + #audioExtract, .separationBox { margin: 10px; padding: 10px; @@ -409,9 +415,26 @@ body { font-family: "JetBrains"; } +.audioSelect { + width: 180px; +} + +#videoTypeSelect { + width: 160px +} + +#audioQualitySelect { + width: 230px; +} + +#link { + padding: 10px; +} + #videoFormatSelect, #audioFormatSelect, #audioForVideoFormatSelect { font-family: JetBrains, monospace; font-size: medium; + width: 400px; } label { @@ -485,6 +508,8 @@ input[type="number"]::-webkit-outer-spin-button { #incorrectMsg { color: var(--redBtn); + display: none; + /* TODO: add display visible in js code*/ } #errorBtn { @@ -548,6 +573,14 @@ button { font-size: large; } +#extractBtn { + width: 150px; +} + +#download, #audioDownload { + width: 140px; +} + #clearBtn { display: none; } diff --git a/html/index.html b/html/index.html index 5ca409d..c16adfc 100644 --- a/html/index.html +++ b/html/index.html @@ -169,24 +169,33 @@

Extract Audio

- - - - +
+
+ + +
+ +
+ + +
+
+ +
@@ -208,4 +217,4 @@ - + \ No newline at end of file diff --git a/html/playlist.html b/html/playlist.html index b327bdd..6dfd562 100644 --- a/html/playlist.html +++ b/html/playlist.html @@ -100,6 +100,7 @@
+

@@ -131,6 +132,7 @@
+

diff --git a/translations/en.json b/translations/en.json index 47f730d..fedffb3 100644 --- a/translations/en.json +++ b/translations/en.json @@ -70,7 +70,7 @@ "Preferred video quality": "Preferred video quality", "Preferred audio format": "Preferred audio format", "Best": "Best", - "File saved.": "File saved.", + "File saved.": "File saved", "Open download folder": "Open download folder", "Path:": "Path:", "Select config file": "Select config file",