diff --git a/static/css/style.css b/static/css/style.css index 6d08f1e..394afe2 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -192,8 +192,10 @@ body { } .optionsDiv button { + width: 100%; padding: 10px; margin-right: 5px; + margin-bottom: 7px; padding-left: 15px; padding-right: 15px; color: white; @@ -203,6 +205,15 @@ body { border-radius: 8px; } +.optionsDiv .normalButton { + width: auto; + margin-bottom: 0px; +} + +.optionsDiv .lastButton { + margin-bottom: 0px; +} + .optionsDiv input { width: calc(100% - 12px); height: 25px; @@ -248,6 +259,20 @@ body { border-radius: 100%; } +.optionsDiv img { + height: 18px; + padding-right: 5px; + filter: invert(100%) +} + +.optionsDiv .section { + width: 100%; + height: 1px; + background-color: #d8d8d8; + margin-top: 2px; + margin-bottom: 10px; +} + /* Sign up/log in div */ .inoutdiv { diff --git a/static/js/main.js b/static/js/main.js index b5fef2e..e01bb63 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -119,6 +119,17 @@ function displayPrompt(message, callback) { callback(errorInput.value) callback = undefined }); + errorInput.addEventListener("keyup", (event) => { + if (event.key == "Enter") { + callback(errorInput.value) + callback = undefined + + errorDiv.classList.add("hidden") + optionsCoverDiv.classList.add("hidden") + errorInput.classList.add("hidden") + cancelErrorButton.classList.add("hidden") + } + }); cancelErrorButton.addEventListener("click", (event) => { callback = undefined errorDiv.classList.add("hidden") @@ -131,6 +142,8 @@ function displayPrompt(message, callback) { optionsCoverDiv.classList.remove("hidden") errorInput.classList.remove("hidden") cancelErrorButton.classList.remove("hidden") + + errorInput.focus() } closeErrorButton.addEventListener("click", (event) => { @@ -236,8 +249,6 @@ function selectNote(nameithink) { noteBox.value = originalText noteBox.addEventListener("input", (event) => { - const text = noteBox.value; - clearTimeout(timer); timer = setTimeout(() => { let encryptedText = CryptoJS.AES.encrypt(noteBox.value, password).toString(); diff --git a/static/svg/delete_forever.svg b/static/svg/delete_forever.svg new file mode 100644 index 0000000..63ae26d --- /dev/null +++ b/static/svg/delete_forever.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/download.svg b/static/svg/download.svg new file mode 100644 index 0000000..eb90940 --- /dev/null +++ b/static/svg/download.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/logout.svg b/static/svg/logout.svg new file mode 100644 index 0000000..0d2322a --- /dev/null +++ b/static/svg/logout.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/app.html b/templates/app.html index 1ed8e56..81ef718 100644 --- a/templates/app.html +++ b/templates/app.html @@ -14,8 +14,8 @@
burgernotes
- +burgernotes
+