feat: set up start page layout
This commit is contained in:
parent
226a40437e
commit
9642100d8c
@ -22,9 +22,9 @@ $button-background-color: #00a0e0;
|
|||||||
$button-text-color: #304048;
|
$button-text-color: #304048;
|
||||||
$button-border: 4px solid #007098;
|
$button-border: 4px solid #007098;
|
||||||
|
|
||||||
$button-hover-background-color: $button-background-color;
|
$button-hover-background-color: #00c0ff;
|
||||||
$button-hover-text-color: #ffffff;
|
$button-hover-text-color: #ffffff;
|
||||||
$button-hover-border: $button-border;
|
$button-hover-border: 4px solid #00a0c0;
|
||||||
|
|
||||||
$button-disabled-background-color: #006080;
|
$button-disabled-background-color: #006080;
|
||||||
$button-disabled-text-color: #102028;
|
$button-disabled-text-color: #102028;
|
||||||
|
@ -16,14 +16,12 @@ import { watch, ref, Ref } from 'vue'
|
|||||||
const authCode: Ref<string> = ref('')
|
const authCode: Ref<string> = ref('')
|
||||||
const errorMessage: Ref<string> = ref('')
|
const errorMessage: Ref<string> = ref('')
|
||||||
|
|
||||||
const vFocus = {
|
const vFocus = { mounted: (el: HTMLElement) => el.focus() }
|
||||||
mounted: (el: HTMLElement) => el.focus()
|
|
||||||
}
|
|
||||||
|
|
||||||
const login = (): void => {
|
const login = (): void => {
|
||||||
errorMessage.value = ''
|
errorMessage.value = ''
|
||||||
|
|
||||||
const { data, pending, error } = useFetch(`/api/login?code=${authCode.value}`)
|
const { data, pending } = useFetch(`/api/login?code=${authCode.value}`)
|
||||||
|
|
||||||
watch(pending, (newVal) => {
|
watch(pending, (newVal) => {
|
||||||
if (!newVal && data.value === 'ok') {
|
if (!newVal && data.value === 'ok') {
|
||||||
@ -44,6 +42,7 @@ const login = (): void => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
width: 240px;
|
width: 240px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__container-inner {
|
&__container-inner {
|
||||||
margin: 0 0 0 auto;
|
margin: 0 0 0 auto;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user