Skip to content

Commit

Permalink
Merge pull request #15 from shiloholotu/nolanbranch
Browse files Browse the repository at this point in the history
adding nolan's theme changes
  • Loading branch information
shiloholotu authored May 24, 2024
2 parents 9c5756b + 4c5f971 commit 0ee9f80
Show file tree
Hide file tree
Showing 13 changed files with 81 additions and 299 deletions.
52 changes: 52 additions & 0 deletions static/scripts/lightdark.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
var r = document.querySelector(':root');

function switchMode(){
var computedStyle = getComputedStyle(r);
var fontColor = computedStyle.getPropertyValue('--font-color').trim();
var modeButton = document.getElementById("modeButton");

if(localStorage.getItem('theme')==='light'){
// in light mode, change to dark mode
localStorage.setItem('theme', 'dark');
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";
} else {
// in dark mode, change to light mode
localStorage.setItem('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";
}

}

function applyTheme(theme){
if(theme==='dark'){
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";

} else {
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";
}
}

document.addEventListener('DOMContentLoaded', () => {
let currentTheme = localStorage.getItem('theme');
applyTheme(currentTheme);
})
5 changes: 2 additions & 3 deletions templates/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">

<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">

Expand Down Expand Up @@ -40,9 +41,7 @@

{% include 'footer.html' %}

<script>
AOS.init();
</script>
{% include 'scripts.html' %}

</body>

Expand Down
8 changes: 2 additions & 6 deletions templates/application.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">

<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">

Expand Down Expand Up @@ -114,12 +115,7 @@ <h1>Apply to Singularity</h1>
<div class="gap"></div>
{% include 'footer.html' %}

<script src="/static/scripts/navbar.js"></script>
<script src="/static/scripts/application.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
{% include 'scripts.html' %}

</body>

Expand Down
7 changes: 2 additions & 5 deletions templates/careers.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">

<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">

Expand Down Expand Up @@ -95,11 +96,7 @@ <h1>Why Work At Singularity?</h1>

{% include 'footer.html' %}

<script src="/static/scripts/navbar.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
{% include 'scripts.html' %}

</body>

Expand Down
7 changes: 2 additions & 5 deletions templates/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">

<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">

Expand Down Expand Up @@ -130,16 +131,12 @@ <h1>Still skeptical?<br><span class='purpText'>try it out!</span></h1>


{% include 'footer.html' %}

{% include 'scripts.html' %}

<script src="/static/scripts/navbar.js"></script>
<script>hljs.highlightAll();</script>
<script src="static/scripts/demo-data.js"></script>
<script src="static/scripts/demo.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>

</body>

Expand Down
13 changes: 2 additions & 11 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">

<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">

<!-- Animate on Scroll -->
Expand Down Expand Up @@ -159,16 +159,7 @@ <h2>Enterprise</h2>


{% include 'footer.html' %}


<script src="/static/scripts/navbar.js"></script>
<script src="static/scripts/effects.js"></script>
<script src="static/scripts/slideshow.js"></script>
<script src="static/scripts/login.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
{% include 'scripts.html' %}



Expand Down
9 changes: 2 additions & 7 deletions templates/positions.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">

<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="/static/styles/positions.css">

Expand Down Expand Up @@ -317,12 +317,7 @@ <h3>Salary and Benefits</h3>
{% include 'footer.html' %}


<script src="/static/scripts/navbar.js"></script>
<script src="/static/scripts/position.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
{% include 'scripts.html' %}

</body>

Expand Down
11 changes: 11 additions & 0 deletions templates/scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script src="/static/scripts/navbar.js"></script>
<script src="static/scripts/effects.js"></script>
<script src="static/scripts/slideshow.js"></script>
<script src="static/scripts/login.js"></script>
<script src="static/scripts/lightdark.js"></script>
<script src="static/scripts/position.js"></script>
<script src="static/scripts/application.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
9 changes: 3 additions & 6 deletions templates/sources.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">

<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">

Expand Down Expand Up @@ -40,7 +41,7 @@


<div data-aos="fade-in" data-aos-duration="700">
<div class="jobStuff">
<div class="sources">
<h1>Sources Referenced</h1>
<h2>Image Sources (Unsplash)</h2>
<p></p><a href="https://images.unsplash.com/photo-1580489944761-15a19d654956?q=80&w=2561&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" target="_blank">https://images.unsplash.com/photo-1580489944761-15a19d654956?q=80&w=2561&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D</a>
Expand Down Expand Up @@ -71,11 +72,7 @@ <h2>APIs (Flask, Jquery, AOS, OpenAI)</h2>

{% include 'footer.html' %}

<script src="/static/scripts/navbar.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
{% include 'scripts.html' %}

</body>

Expand Down
9 changes: 3 additions & 6 deletions templates/success.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">

<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">

Expand All @@ -24,7 +25,7 @@
<!-- Favicon -->
<link rel="icon" href="/static/assets/logo.png">

<title>Singularity | The power of AI at your fingertips</title>
<title>Application Received! | Singularity</title>

</head>

Expand Down Expand Up @@ -54,11 +55,7 @@ <h1>We'll be in <span class="purpText">touch.</span></h1>
<!-- FOOTER -->
{% include 'footer.html' %}

<script src="/static/scripts/navbar.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
{% include 'scripts.html' %}

</body>

Expand Down
82 changes: 0 additions & 82 deletions templates/unused/data.html

This file was deleted.

Loading

0 comments on commit 0ee9f80

Please sign in to comment.