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