Skip to content

Commit

Permalink
updated login page
Browse files Browse the repository at this point in the history
Signed-off-by: Nikhil Nigade <[email protected]>
  • Loading branch information
dezinezync committed Dec 4, 2023
1 parent 07ebede commit e8df124
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
21 changes: 15 additions & 6 deletions _layouts/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@
<html lang="{{ page.lang | default: site.lang | default: "en-IN" }}">
{%- include head.html -%}
<body class="login">
<div id="login-contents">
<header class="container readable center">
<div>
<picture>
<img src="/assets/images/appicon/[email protected]" srcset="/assets/images/appicon/[email protected] 2x" width="120" height="120"/>
</picture>
</div>
</header>
<main >
<section class="container readable center">
<h4>You can now close this window</h4>
<p>Authentication will be further completed by the app</p>
</section>
</main>
</div>
<script>
const url = new URL(window.location);
const code = url.searchParams.get("code")
const state = url.searchParams.get("state")

window.location.href = `elytra://appleIDAuth?code=${code}&state=${state}`
</script>
<main>
<hgroup>
<h3>You can now close this window</h3>
<p>Authentication will be further completed by the app.</p>
</hgroup>
</main>
</body>
11 changes: 11 additions & 0 deletions _sass/layouts/login.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
body.login {
#login-contents {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;

min-height: 100vh;
height: 100%;
}
}
3 changes: 2 additions & 1 deletion assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,5 @@ nav {
@import "layouts/blog";
@import "layouts/support";
@import "layouts/mac";
@import "layouts/custom";
@import "layouts/custom";
@import "layouts/login";

0 comments on commit e8df124

Please sign in to comment.