slcing registrasi awal

This commit is contained in:
2024-10-31 15:53:59 +07:00
parent 54f56d9602
commit 8d24534928
27 changed files with 1079 additions and 854 deletions

View File

@@ -10,23 +10,22 @@
style="background-repeat: repeat-y"
class="bg-white"
src="./images/bg-left.jpg"
cover
></v-img>
</v-col>
<v-col lg="4" md="5">
<div class="d-flex justify-center mb-6 mt-16 bg-surface-variant">
<v-img
class="bg-white"
height="12px"
aspect-ratio="1"
src="../globalimages/logo.png"
></v-img>
</div>
<v-container class="mt-16">
<v-container class="fill-height" fluid>
<v-row no-gutters justify="center">
<v-col>
<div class="d-flex justify-center">
<v-card class="mx-auto px-12" elevation="0" rounded="lg">
<div class="d-flex justify-center mb-16 bg-surface-variant">
<v-img
class="bg-white"
height="86px"
aspect-ratio="16/9"
src="../globalimages/logo.png"
></v-img>
</div>
<div class="d-flex mb-6">
<v-sheet class="">
<h2 class="text-h6 font-weight-black">
@@ -55,19 +54,6 @@
:placeholder="$t('message.placeholderEmail')"
variant="outlined"
></v-text-field>
<!-- <div
class="text-subtitle-1 text-medium-emphasis d-flex align-center justify-space-between"
>
{{ $t("message.password") }}
<a
class="text-caption text-decoration-none text-blue"
href="#"
rel="noopener noreferrer"
target="_blank"
>
{{ $t("message.forgotPassword") }}</a
>
</div> -->
<v-text-field
:label="$t('message.password')"
v-model="password"
@@ -93,6 +79,16 @@
<v-progress-circular indeterminate></v-progress-circular>
</template>
</v-btn>
<v-btn
class="my-5 text-none"
size="large"
@click="loginGoogle"
variant="outlined"
block
>
<v-img class="mr-2" src="./images/logo_google.svg" width="20px" height="20px"></v-img>
SIGN IN WITH GOOGLE
</v-btn>
</div>
</v-card>
</div>
@@ -135,6 +131,9 @@ export default {
set(val) {
this.$store.commit("login/setPassword", val);
},
loginGoogle() {
this.$store.dispatch("login/loginGoogle")
}
},
},
methods: {

View File

@@ -1,86 +1,95 @@
<template>
<div style="background-image: url(./images/bg-left.jpg);">
<v-container class="h-100 w-100">
<v-col align-self="center">
<v-card
class="mx-auto px-5 py-12"
elevation="0"
rounded="lg"
width="90%"
>
<div class="d-flex justify-center mb-6 bg-surface-variant">
<v-img
class="bg-white"
height="86px"
aspect-ratio="16/9"
src="../globalimages/logo.png"
></v-img>
</div>
<div class="d-flex mb-6">
<v-sheet class="">
<h2 class="text-h6 font-weight-black">
{{ $t("message.title") }}
</h2>
<p class="text-subtitle-1" style="color: #637381;">
{{ $t("message.sublogin") }}
</p>
</v-sheet>
</div>
<v-alert
density="compact"
:text="alert.message"
:type="alert.type"
class="mt-4 mb-3 w-100"
variant="tonal"
<div style="background-image: url(./images/bg-left.jpg); height: 100vh;">
<v-container class="fill-height" fluid>
<v-col align-self="center">
<v-card
class="mx-auto px-5 py-12"
elevation="0"
rounded="lg"
width="90%"
>
</v-alert>
<v-text-field
class="mt-3"
v-model="email"
:label="$t('message.email')"
:placeholder="$t('message.placeholderEmail')"
variant="outlined"
></v-text-field>
<!-- <div
class="text-subtitle-1 text-medium-emphasis d-flex align-center justify-space-between"
>
{{ $t("message.password") }}
<a
class="text-caption text-decoration-none text-blue"
href="#"
rel="noopener noreferrer"
target="_blank"
>
{{ $t("message.forgotPassword") }}</a
>
</div> -->
<v-text-field
:label="$t('message.password')"
v-model="password"
:append-inner-icon="visible ? 'mdi-eye':'mdi-eye-off'"
:type="visible ? 'text' : 'password'"
:placeholder="$t('message.placeholderPassword')"
variant="outlined"
@click:append-inner="visible = !visible"
></v-text-field>
<div class="text-center">
<v-btn
:loading="loading"
@click="login"
class="mt-5 text-none"
color="blue"
size="large"
variant="elevated"
block
<div class="d-flex justify-center mb-6 bg-surface-variant">
<v-img
class="bg-white"
height="86px"
aspect-ratio="16/9"
src="../globalimages/logo.png"
></v-img>
</div>
<div class="d-flex mb-6">
<v-sheet class="">
<h2 class="text-h6 font-weight-black">
{{ $t("message.title") }}
</h2>
<p class="text-subtitle-1" style="color: #637381;">
{{ $t("message.sublogin") }}
</p>
</v-sheet>
</div>
<v-alert
density="compact"
:text="alert.message"
:type="alert.type"
class="mt-4 mb-3 w-100"
variant="tonal"
>
{{ $t("message.login") }}
<template v-slot:loader>
<v-progress-circular indeterminate></v-progress-circular>
</template>
</v-btn>
</div>
</v-card>
</v-col>
</v-alert>
<v-text-field
class="mt-3"
v-model="email"
:label="$t('message.email')"
:placeholder="$t('message.placeholderEmail')"
variant="outlined"
></v-text-field>
<!-- <div
class="text-subtitle-1 text-medium-emphasis d-flex align-center justify-space-between"
>
{{ $t("message.password") }}
<a
class="text-caption text-decoration-none text-blue"
href="#"
rel="noopener noreferrer"
target="_blank"
>
{{ $t("message.forgotPassword") }}</a
>
</div> -->
<v-text-field
:label="$t('message.password')"
v-model="password"
:append-inner-icon="visible ? 'mdi-eye':'mdi-eye-off'"
:type="visible ? 'text' : 'password'"
:placeholder="$t('message.placeholderPassword')"
variant="outlined"
@click:append-inner="visible = !visible"
></v-text-field>
<div class="text-center">
<v-btn
:loading="loading"
@click="login"
class="mt-5 text-none"
color="blue"
size="large"
variant="elevated"
block
>
{{ $t("message.login") }}
<template v-slot:loader>
<v-progress-circular indeterminate></v-progress-circular>
</template>
</v-btn>
<v-btn
class="my-5 text-none"
size="large"
variant="outlined"
block
>
<v-img class="mr-2" src="./images/logo_google.svg" width="20px" height="20px"></v-img>
SIGN IN WITH GOOGLE
</v-btn>
</div>
</v-card>
</v-col>
</v-container>
</div>
</template>