more pages
parent
01d659a020
commit
39f42ade64
@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
import Base from '@/layouts/Base.astro'
|
||||||
|
|
||||||
|
console.log('env:', Object.fromEntries(Object.entries(import.meta.env).filter(([key]) => key.startsWith('OAUTH_'))))
|
||||||
|
---
|
||||||
|
|
||||||
|
<Base>
|
||||||
|
<header>
|
||||||
|
<nav>
|
||||||
|
<a href="/">Home</a>
|
||||||
|
</nav>
|
||||||
|
<div class="spacer"></div>
|
||||||
|
<nav>
|
||||||
|
<a href="/login">Login</a>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
<div class="page">
|
||||||
|
<h1>Login</h1>
|
||||||
|
<form action="/login" method="post">
|
||||||
|
<label for="username">Username</label>
|
||||||
|
<input type="text" id="username" name="username" required />
|
||||||
|
<label for="password">Password</label>
|
||||||
|
<input type="password" id="password" name="password" required />
|
||||||
|
<button type="submit">Login</button>
|
||||||
|
</form>
|
||||||
|
<h2>Or login with</h2>
|
||||||
|
<a role="button" href="/auth/github">GitHub</a>
|
||||||
|
<a role="button" href="/auth/oauth-provider-1">OAuth Provider 1</a>
|
||||||
|
</div>
|
||||||
|
</Base>
|
||||||
Reference in New Issue