Skip to content

Commit

Permalink
Merge pull request #20 from Bean0-0/main
Browse files Browse the repository at this point in the history
URL path
  • Loading branch information
Bean0-0 authored Jun 24, 2024
2 parents db81cc4 + b02c906 commit aaef188
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 4 deletions.
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ def submit(inp,rnd):

if __name__ == "__main__":
app.run(debug=True)
#app.run()
21 changes: 21 additions & 0 deletions static/scripts/lightdark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)');
Expand Down
59 changes: 55 additions & 4 deletions templates/success.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
<link href="https://fonts.googleapis.com/css2?family=Kanit:wght@400;500&family=Share+Tech&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Two+Tone|Material+Icons+Round|Material+Icons+Sharp" rel="stylesheet">

<link rel="stylesheet" href="/static/styles/main.css">
<link rel="stylesheet" href="http://127.0.0.1:5000/static/styles/main.css">

<!-- Animate on Scroll -->
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<!-- Jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

<!-- Favicon -->
<link rel="icon" href="/static/assets/logo.png">
<link rel="icon" href="http://127.0.0.1:5000/static/assets/logo.png">

<title>Application Received! | Singularity</title>

Expand All @@ -32,7 +32,45 @@
<body>


{% include 'navbar.html' %}
{# {% include 'navbar.html' %} #}

<!-- DESKTOP NAVBAR -->
<div id="navbar">
<a class="logo" href="/"><img src="http://127.0.0.1:5000/static/assets/logo.png">singularity</a>
<div class="navigation">
<a class="nav-link" href="/demo">Demo</a>
<a class="nav-link" href="/careers">Careers</a>
<a class="nav-link" href="/application">Apply</a>
<a class="nav-link" href="/aboutus">About</a>
<a class="nav-link" href="/contact">Contact Us</a>
<a class="material-icons-outlined" id="modeButton" onclick="switchMode()">dark_mode</a>
<!--<button class="nav-link" onclick="showLoginForm()">Login</button>-->
</div>
</div>

<style>
div button {
text-decoration: none;
background: none;
border: none;
}
</style>

<!-- MOBILE NAVBAR -->
<div id="mobileNavbar">
<a class="logo" href="/"><img src="http://127.0.0.1:5000/static/assets/logo.png"></a>

<img id="burgerToggle" onclick="toggleBurgerMenu()" src="http://127.0.0.1:5000/static/assets/svg/menu.svg">
</div>

<div id="burgerMenu">
<a class="nav-link" href="/demo">Demo</a>
<a class="nav-link" href="/careers">Careers</a>
<a class="nav-link" href="/application">Apply</a>
<a class="nav-link" href="/aboutus">About</a>
<a class="nav-link" href="/contact">Contact Us</a>
<!--<button class="nav-link" onclick="showLoginForm()">Login</button>-->
</div>


<div data-aos="fade-in" data-aos-duration="700">
Expand All @@ -55,7 +93,20 @@ <h1>We'll be in <span class="purpText">touch.</span></h1>
<!-- FOOTER -->
{% include 'footer.html' %}

{% include 'scripts.html' %}
{# {% include 'scripts.html' %} #}
<script src="http://127.0.0.1:5000/static/scripts/navbar.js"></script>
<script src="http://127.0.0.1:5000/static/scripts/effects.js"></script>
<script src="http://127.0.0.1:5000/static/scripts/slideshow.js"></script>
<script src="http://127.0.0.1:5000/static/scripts/login.js"></script>
<script src="http://127.0.0.1:5000/static/scripts/lightdark.js"></script>
<script src="http://127.0.0.1:5000/static/scripts/position.js"></script>
<script src="http://127.0.0.1:5000/static/scripts/application.js"></script>
<script src="http://127.0.0.1:5000/static/scripts/scroll.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script defer src="https://app.fastbots.ai/embed.js" data-bot-id="clxqqxysn03b0ohbc8hhkinzz"></script>
<script>
AOS.init();
</script>

</body>

Expand Down

0 comments on commit aaef188

Please sign in to comment.