From 12c2c9fd84fe7a18ae39f41657b801c20aa10dec Mon Sep 17 00:00:00 2001
From: Bean <72772737+Bean0-0@users.noreply.github.com>
Date: Mon, 24 Jun 2024 04:47:34 +0000
Subject: [PATCH 1/2] Update URLs to use relative paths for static assets
For success html
---
templates/success.html | 59 +++++++++++++++++++++++++++++++++++++++---
1 file changed, 55 insertions(+), 4 deletions(-)
diff --git a/templates/success.html b/templates/success.html
index 0c2a1b6..36a477a 100644
--- a/templates/success.html
+++ b/templates/success.html
@@ -15,7 +15,7 @@
-
+
@@ -23,7 +23,7 @@
-
+
Application Received! | Singularity
@@ -32,7 +32,45 @@
- {% include 'navbar.html' %}
+ {# {% include 'navbar.html' %} #}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -55,7 +93,20 @@
We'll be in touch.
{% include 'footer.html' %}
- {% include 'scripts.html' %}
+ {# {% include 'scripts.html' %} #}
+
+
+
+
+
+
+
+
+
+
+
From b02c9069ebcd0dd99c32e0371f1381d81f200eed Mon Sep 17 00:00:00 2001
From: Bean <72772737+Bean0-0@users.noreply.github.com>
Date: Mon, 24 Jun 2024 05:37:12 +0000
Subject: [PATCH 2/2] chore: Update app.py and lightdark.js
The changes in app.py enable debug mode for the app. The changes in lightdark.js add a setTheme function to switch between light and dark modes.
---
app.py | 1 +
static/scripts/lightdark.js | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/app.py b/app.py
index 4f23b94..d5f6a70 100644
--- a/app.py
+++ b/app.py
@@ -61,3 +61,4 @@ def submit(inp,rnd):
if __name__ == "__main__":
app.run(debug=True)
+ #app.run()
diff --git a/static/scripts/lightdark.js b/static/scripts/lightdark.js
index 0c11430..cbb403b 100644
--- a/static/scripts/lightdark.js
+++ b/static/scripts/lightdark.js
@@ -27,6 +27,27 @@ function switchMode(){
}
+function setTheme() {
+ var r = document.querySelector(':root');
+ var modeButton = document.getElementById("modeButton");
+
+ if(localStorage.getItem('theme')==='light'){
+ r.style.setProperty('--font-color', 'rgb(42,41,85)');
+ r.style.setProperty('--background-color','rgb(255,255,255)');
+ r.style.setProperty('--navbar-color','rgb(255,255,255,0.85)');
+ r.style.setProperty('--transparent-border-color','rgb(0,0,50,0.15)');
+ r.style.setProperty('--footer-color','rgb(26,26,51)');
+ modeButton.textContent = "dark_mode";
+ } else {
+ r.style.setProperty('--font-color', 'rgb(255,255,255)');
+ r.style.setProperty('--background-color','rgb(30,30,35)');
+ r.style.setProperty('--navbar-color','rgb(30,30,35,0.85)');
+ r.style.setProperty('--transparent-border-color','rgb(175,175,175,0.1');
+ r.style.setProperty('--footer-color','rgb(10,10,12)');
+ modeButton.textContent = "light_mode";
+ }
+}
+
function applyTheme(theme){
if(theme==='dark'){
r.style.setProperty('--font-color', 'rgb(255,255,255)');