Update login button to look nicer
This commit is contained in:
parent
e9c7ddb8e0
commit
bd215391c9
@ -1,11 +1,29 @@
|
||||
<script lang="ts">
|
||||
import { SignIn } from "@auth/sveltekit/components";
|
||||
import { signIn } from "@auth/sveltekit/client";
|
||||
|
||||
function handleLogin() {
|
||||
signIn("keycloak", { callbackUrl: "/"});
|
||||
}
|
||||
</script>
|
||||
|
||||
<SignIn provider="keycloak" redirectTo="/">
|
||||
<div slot="submitButton" class="buttonPrimary">Login</div>
|
||||
</SignIn>
|
||||
<button on:click={handleLogin} class="keycloak">
|
||||
Login with FJLA
|
||||
</button>
|
||||
|
||||
<style>
|
||||
.keycloak {
|
||||
width: 70%;
|
||||
height: 35px;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
background-color: blue;
|
||||
color: whitesmoke;
|
||||
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.keycloak:hover {
|
||||
background-color: rgb(52, 52, 252);
|
||||
}
|
||||
</style>
|
@ -16,6 +16,7 @@
|
||||
<style>
|
||||
#content-container {
|
||||
width: 100%;
|
||||
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
|
||||
text-align: center;
|
||||
margin: 10 auto;
|
||||
padding: 25px;
|
||||
@ -36,13 +37,11 @@
|
||||
}
|
||||
|
||||
header {
|
||||
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
|
||||
font-size: large;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
|
||||
padding: 15px;
|
||||
}
|
||||
</style>
|
Loading…
x
Reference in New Issue
Block a user