login.vue 2.38 KB
<script setup lang="ts">
import { useKeycloakStore } from '@/@core/stores/keycloakStore'

import authLoginBg from '/assets/images/naput/bg-blue-yellow.png'
import authLoginLogo from '/assets/images/naput/illust-login.png'
import AuthProvider from '@/views/pages/authentication/AuthProvider.vue'

const authThemeImg = authLoginLogo

const authThemeBg = authLoginBg

const keycloakStore = useKeycloakStore()
const data = ref<Record<string, any> | null>(null)
const error = ref<Record<string, any> | null>(null)

definePageMeta({
  layout: 'blank',
  unauthenticatedOnly: true,

})

</script>

<template>
  <body
    :style="{ backgroundImage: `url(${authThemeBg})` }"
    class="body-2"
  >
    <section class="global-main-login-component">
      <div class="card-main-login-component">
        <div class="logo-login-component">
          <VImg
            :src="authThemeImg"
            max-width="650"
            max-height="300"
            class="image-10 lazyload"
          />
        </div>
        <div class="form-login-component">
          <VCol cols="12">
            <img
              src="/assets/images/naput/logo-ui-hitam.png"
              width="100"
              height="auto"
              class="mb-0"
            >
          </VCol>

          <VCol cols="12">
            <AuthProvider />
          </VCol>
        </div>
      </div>
    </section>
  </body>
  <!-- </VRow> -->
</template>

<style lang="scss">
@use "@core/scss/template/pages/page-auth";

.form-login-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

// kanan putih
.card-main-login-component {
  position: static;
  display: grid;
  overflow: hidden;
  flex-flow: row;
  align-items: center;
  justify-content: center;
  border-radius: 1.7rem;
  backdrop-filter: blur(5px);
  background-color: #fff0;
  background-color: white;
  box-shadow: 0 12px 16px #0003;
  color: #fefce8;
  grid-auto-columns: 1fr;
  grid-gap: 16px 0;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  margin-inline: 0%;
  outline-offset: 0;
  padding-block: 0;
  padding-inline: 0%;
  transform: translate(0);
}

.logo-login-component {
  position: static;
  display: none;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background-color: #ffdc01;
  block-size: 100%;
  color: #fefce8;
  inline-size: 100%;

  @media (min-width: 768px) {
    display: flex;
  }
}
</style>