-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nikhil Nigade <[email protected]>
- Loading branch information
1 parent
07ebede
commit e8df124
Showing
3 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters