Skip to content

Commit

Permalink
fixup! style: Restyle login page
Browse files Browse the repository at this point in the history
  • Loading branch information
Perdolique committed Sep 11, 2024
1 parent 30b4d73 commit a6628fd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions app/pages/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,18 @@
const route = useRoute()
const isAuthenticating = ref(false)
function startAuthenticating() {
startViewTransition(() => {
isAuthenticating.value = true
})
}
async function signUp() {
if (isAuthenticating.value) {
return
}
startViewTransition(() => {
isAuthenticating.value = true
})
startAuthenticating()
try {
const responsePromise = $fetch('/api/auth/create-session', {
Expand Down Expand Up @@ -85,7 +88,7 @@
}
function redirectToTwitch() {
isAuthenticating.value = true
startAuthenticating()
window.location.href = '/api/oauth/twitch'
}
Expand Down Expand Up @@ -127,11 +130,11 @@
}
.button {
color: #fff;
transition: background-color 0.2s;
&:global(.twitch):not(:disabled) {
background-color: #9146FF;
color: #FFFFFF;
&:focus-visible,
&:hover {
Expand All @@ -145,7 +148,6 @@
&:global(.amogus):not(:disabled) {
background-color: #4CAF50;
color: #FFFFFF;
&:focus-visible,
&:hover {
Expand Down

0 comments on commit a6628fd

Please sign in to comment.