From 3b55efac255862499ba483c89a2db5fadcab7a73 Mon Sep 17 00:00:00 2001 From: maaa Date: Fri, 3 Nov 2023 17:39:48 +0100 Subject: [PATCH] shutdown --- main | 6 ++++ static/css/style.css | 10 ++++++ static/js/main.js | 6 ++-- templates/error.html | 2 ++ templates/login.html | 2 ++ templates/main.html | 2 ++ templates/privacy.html | 2 ++ templates/shutdown.html | 77 +++++++++++++++++++++++++++++++++++++++++ templates/signup.html | 7 +++- 9 files changed, 111 insertions(+), 3 deletions(-) create mode 100644 templates/shutdown.html diff --git a/main b/main index 77ef65d..272ccd9 100644 --- a/main +++ b/main @@ -118,10 +118,16 @@ def login(): def privacy(): return render_template("privacy.html") +@app.route("/shutdownfaq") +def shutdown(): + return render_template("shutdown.html") + # API @app.route("/api/signup", methods=("GET", "POST")) def apisignup(): if request.method == "POST": + return {}, 500 + data = request.get_json() username = data["username"] password = data["password"] diff --git a/static/css/style.css b/static/css/style.css index b9dcb3e..714a526 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -555,6 +555,16 @@ body { font-weight: 900; } +.alertDiv { + position: fixed; + margin: 0; + width: 100%; + background-color: #ffffeb; + height: 25px; + z-index: 9999; + top: 0; +} + /* main */ .mainDiv { diff --git a/static/js/main.js b/static/js/main.js index a7b48cd..c0ade6d 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -123,7 +123,7 @@ function displayError(message) { errorDiv.classList.remove("hidden") optionsCoverDiv.classList.remove("hidden") - errorMessageThing.innerText = message + errorMessageThing.innerHTML = message } closeErrorButton.addEventListener("click", (event) => { @@ -610,4 +610,6 @@ removeBox.addEventListener("click", (event) => { displayError("something went wrong! please try again later") }) } -}); \ No newline at end of file +}); + +displayError("Burgernotes is shutting down on November 12th, please refer to this FAQ for more info.") \ No newline at end of file diff --git a/templates/error.html b/templates/error.html index ab2fed1..67b8567 100644 --- a/templates/error.html +++ b/templates/error.html @@ -9,6 +9,8 @@ +

Burgernotes is shutting down on November 12th, read this FAQ for more info

+

{{ errorMessage }}

{{ errorCode }} | {{ errorMessage }} diff --git a/templates/login.html b/templates/login.html index 84f9c13..56fbec3 100644 --- a/templates/login.html +++ b/templates/login.html @@ -11,6 +11,8 @@ +

Burgernotes is shutting down on November 12th, read this FAQ for more info

+

log in

diff --git a/templates/main.html b/templates/main.html index df6a779..4a468d7 100644 --- a/templates/main.html +++ b/templates/main.html @@ -11,6 +11,8 @@ +

Burgernotes is shutting down on November 12th, read this FAQ for more info

+
diff --git a/templates/privacy.html b/templates/privacy.html index d113b55..8ed9421 100644 --- a/templates/privacy.html +++ b/templates/privacy.html @@ -9,6 +9,8 @@ +

Burgernotes is shutting down on November 12th, read this FAQ for more info

+

burgernotes privacy policy

Preamble

diff --git a/templates/shutdown.html b/templates/shutdown.html new file mode 100644 index 0000000..2cd5db2 --- /dev/null +++ b/templates/shutdown.html @@ -0,0 +1,77 @@ + + + + + burgernotes + + + + + + + +

Burgernotes Discontinuation FAQ

+ On November 12, 2023, Burgernotes will shut down. +

+ How will this affect me? +
    +
  • You'll no longer be able to access Burgernotes, and all of your notes.
  • +
  • You may download your notes before November 12, 2023.
  • +
  • Your data will be deleted after November 12, 2023.
  • +
  • Third-party instances will be unaffected, but will likely no longer be maintained.
  • +
  • As of November 3, 2023, you may no longer create a new burgernotes account.
  • +
+

Downloading your notes

+
    +
  • Open Burgernotes
  • +
  • Open the settings menu
  • +
  • Press "export notes"
  • +
+ Your notes will be saved to a JSON file. +

Alternatives to Burgernotes

+
    +
  • Standard Notes
  • +
  • Joplin
  • +
+

Special thanks

+ Special thanks to these amazing people: +
    +
  • hippoz
  • +
  • ctapak
  • +
  • Mollomm1
  • +
  • Tracker-Friendly
  • +
  • Karimrir
  • +
  • Pandarose
  • +
  • Neptune
  • + +
+ + + + + + + \ No newline at end of file diff --git a/templates/signup.html b/templates/signup.html index b6de754..3e55171 100644 --- a/templates/signup.html +++ b/templates/signup.html @@ -11,16 +11,21 @@ +

Burgernotes is shutting down on November 12th, read this FAQ for more info

+

sign up

-

sign up for a burgernotes account

+

You may no longer sign up, read this FAQ.

+

If you have an existing account, please sign in.

+