Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add login feature using auth0 #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
11 changes: 7 additions & 4 deletions ASAC/FAQ.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@
<li class="nav-item">
<a class="nav-link" href="contactUs.html">Contact Us</a>
</li>

</ul>
<button id="btn-login" class="hide ms-2" onclick="login()">Login</button>
<button id="btn-logout" class="hide ms-2" onclick="logout()">Logout</button>
</div>
</div>
</nav>
Expand Down Expand Up @@ -319,10 +320,12 @@ <h3>Quick links</h3>
</div>
</footer>

<script src="../public/js/app.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="https://cdn.auth0.com/js/auth0-spa-js/2.1/auth0-spa-js.production.js"></script>
<script src="../public/js/app.js"></script>

</body>

</html>
5 changes: 4 additions & 1 deletion ASAC/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@
<li class="nav-item">
<a class="nav-link" href="contactUs.html">Contact Us</a>
</li>

</ul>
<button id="btn-login" class="hide ms-2" onclick="login()">Login</button>
<button id="btn-logout" class="hide ms-2" onclick="logout()">Logout</button>
</div>
</div>
</nav>
Expand Down Expand Up @@ -441,6 +442,8 @@ <h3>Quick links</h3>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="https://cdn.auth0.com/js/auth0-spa-js/2.1/auth0-spa-js.production.js"></script>


<!-- Include jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"
Expand Down
4 changes: 3 additions & 1 deletion ASAC/applicationCriteria.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@
<li class="nav-item">
<a class="nav-link" href="contactUs.html">Contact Us</a>
</li>

</ul>
<button id="btn-login" class="hide ms-2" onclick="login()">Login</button>
<button id="btn-logout" class="hide ms-2" onclick="logout()">Logout</button>
</div>
</div>
</nav>
Expand Down Expand Up @@ -238,6 +239,7 @@ <h3>Quick links</h3>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="https://cdn.auth0.com/js/auth0-spa-js/2.1/auth0-spa-js.production.js"></script>


</body>
Expand Down
19 changes: 11 additions & 8 deletions ASAC/contactUs.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@
<li class="nav-item">
<a class="nav-link" href="contactUs.html">Contact Us</a>
</li>

</ul>
<button id="btn-login" class="hide ms-2" onclick="login()">Login</button>
<button id="btn-logout" class="hide ms-2" onclick="logout()">Logout</button>
</div>
</div>
</nav>
Expand Down Expand Up @@ -345,13 +346,7 @@ <h3>Quick links</h3>

</div>
</footer>

<script src="../public/js/app.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>

<!-- custom alert -->
<div id="customAlert" class="custom-alert">
<div class="close-button" id="closeButton">&times;</div>

Expand All @@ -362,6 +357,14 @@ <h3>Quick links</h3>
d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z" />
</svg>
</div>

<script src="../public/js/app.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="https://cdn.auth0.com/js/auth0-spa-js/2.1/auth0-spa-js.production.js"></script>

<!-- contact form js -->
<script type="text/javascript">
let contactForm = document.getElementById('contactForm')
Expand Down
8 changes: 4 additions & 4 deletions ASAC/programs.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@
<li class="nav-item">
<a class="nav-link" href="contactUs.html">Contact Us</a>
</li>

</ul>
<button id="btn-login" class="hide ms-2" onclick="login()">Login</button>
<button id="btn-logout" class="hide ms-2" onclick="logout()">Logout</button>
</div>
</div>
</nav>
Expand Down Expand Up @@ -107,9 +108,7 @@ <h1>Our Programs</h1>
</div>

<p id="resultIndicator" class="text-start mb-5 ms-3"></p>
<div class="row justify-content-around" id="programCards">
<div class=" row justify-content-around ">
</div>
<div class="row justify-content-center gap-lg-5 gap-md-3" id="programCards">
</div>
</div>

Expand Down Expand Up @@ -359,6 +358,7 @@ <h3>Quick links</h3>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<script src="https://cdn.auth0.com/js/auth0-spa-js/2.1/auth0-spa-js.production.js"></script>
<script src="../public/js/app.js"></script>
</body>

Expand Down
1 change: 1 addition & 0 deletions assets/note.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
01100001 01101100 01101100 01100001 01101000 00100000 01111001 01101011 01101111 01101110 00100000 01100010 00110011 01101111 01101110 01100001 01101011 00100000 00101110 00101110 00100000 00111010 00101000
4 changes: 4 additions & 0 deletions auth_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"domain": "dev-7of302c3.us.auth0.com",
"clientId": "RC1F2RQIFZUNcNlRP8wwvdgKrvIQ8UbZ"
}
21 changes: 15 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse justify-content-end navbar-collapse" id="navbarSupportedContent">
<div class="collapse justify-content-end navbar-collapse me-3" id="navbarSupportedContent">
<ul class="navbar-nav mb-2 mb-lg-0 align-items-center">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
Expand All @@ -50,7 +50,10 @@
<li class="nav-item">
<a class="nav-link" href="ASAC/contactUs.html">Contact Us</a>
</li>

</ul>
<button id="btn-login" class="hide ms-2" onclick="login()">Login</button>
<button id="btn-logout" class="hide ms-2" onclick="logout()">Logout</button>
</div>
</div>
</nav>
Expand All @@ -73,11 +76,10 @@ <h1 class="animate__animated animate__fadeInDown">Abdul Aziz Al Ghurair School o
<div class="banner-btns">
<a class="animate__animated animate__fadeInLeft" href="ASAC/programs.html">Explore Our
Programs</a>
<a class="animate__animated animate__fadeInRight" href="#">Be a part of our Family</a>
<a id="auth-content" class="animate__animated animate__fadeInRight" href="#">Be a part of our
Family</a>
</div>
</div>


</div>
</section>

Expand Down Expand Up @@ -523,9 +525,16 @@ <h3>Quick links</h3>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>

<!-- Auth0 authentication SDK -->
<script src="https://cdn.auth0.com/js/auth0-spa-js/2.1/auth0-spa-js.production.js"></script>
<script src="public/js/app.js"></script>

<script>





</script>
</body>

</html>
Loading