Skip to content

Commit

Permalink
style: update login form
Browse files Browse the repository at this point in the history
  • Loading branch information
newarifrh committed Jul 26, 2024
1 parent cbdb826 commit e46b2a3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 17 deletions.
1 change: 1 addition & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ declare module 'vue' {
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElImage: typeof import('element-plus/es')['ElImage']
ElInput: typeof import('element-plus/es')['ElInput']
ElMain: typeof import('element-plus/es')['ElMain']
ElMenu: typeof import('element-plus/es')['ElMenu']
Expand Down
Binary file added public/background-login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo-bps-bontang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 26 additions & 17 deletions src/views/LoginView.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<template>
<div class="container">
<el-card style="
width: 530px;
padding-left: 20px;
padding-right: 20px;
padding-top: 10px;
padding-bottom: 5px;
border-radius: 30px;
">
<el-text style="font-size: 22pt; font-weight: 500">Selamat Datang di {{ app }} 👋</el-text>
<div class="form-container">
<div style="display: flex; align-items: center; gap:10px;">
<el-image src="logo-bps-bontang.png" fit="cover" />
</div>
<el-text style="font-size: 16pt; align-self: first baseline; font-weight: 500">Selamat Datang di <el-text
type="primary" style="font-size: 16pt; align-self: first baseline; font-weight: 500">{{ app
}}</el-text></el-text>

<el-form @submit.prevent style="margin-top: 15px" :rules="rules" ref="formRef" v-loading="loading" :model="form"
label-width="auto" label-position="top">
<el-form-item label="Email" required prop="email">
Expand All @@ -34,7 +33,8 @@
Login with SSO BPS
</el-button>
</div>
</el-card>
</div>
<div class="image-container"></div>
</div>
</template>

Expand Down Expand Up @@ -133,14 +133,23 @@ watch(
<style scoped>
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: var(--el-color-primary-light-5);
/* Example background color */
width: 100vw;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.form-container {
width: 20%;
padding: 80px;
display: flex;
flex-direction: column;
justify-content: center;
}
.card {
max-width: 480px;
.image-container {
width: 80%;
background: url('/background-login.png') no-repeat center center;
background-size: cover;
height: 100vh;
}
</style>
</style>

0 comments on commit e46b2a3

Please sign in to comment.