login.vue 2.42 KB
<script setup lang="ts">
import ImgDark from '@images/dstipro/auth-bg-dark.png'
import ImgLight from '@images/dstipro/auth-bg-light.png'

import authV2LoginLogoLight from '@images/dstipro/ui-logo-light.png'
import authV2LoginBgDark from '@images/naput/header-bg-dark.png'
import authV2LoginBgLight from '@images/naput/header-bg.png'
import AuthProvider from '@/views/pages/authentication/AuthProvider.vue'

const authThemeImg = useGenerateImageVariant(
  authV2LoginLogoLight,
  authV2LoginLogoLight,
)

const authThemeColor = useGenerateColorVariant(
  '#FFFFFF',
  '#303030',
)

const authThemeBgElement = useGenerateImageVariant(
  ImgLight,
  ImgDark,
)

const authThemeBg = useGenerateImageVariant(
  authV2LoginBgLight,
  authV2LoginBgDark,
)

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

})
</script>

<template>
  <VRow
    no-gutters
    class="auth-wrapper d-flex align-center"
  >
    <body
      :style="{ backgroundImage: `url(${authThemeBg})` }"
      class="body-4"
    >
      <div class="main-component-margin">
        <section class="main-component-login">
          <div
            :style="{
              backgroundImage: `url(${authThemeBgElement})`,
              backgroundSize: 'cover',
              backgroundPosition: 'center',
              backgroundRepeat: 'no-repeat',
              backgroundBlendMode: 'normal, normal',
              width: '100%',
              opacity: 1,
            }"
            class="form-component-login"
          >
            <div class="combine-contact4_content">
              <h2 class="heading-8">
                SSO
              </h2>
              <h2 class="text-h5 heading-7">
                Single Sign On
              </h2>
              <AuthProvider />
            </div>
          </div>

          <div
            class="logo-component-login"
            :style="{
              backgroundImage: `url(${ImgDark})`,
              backgroundSize: 'cover',
              backgroundPosition: 'center',
              backgroundRepeat: 'no-repeat',
              width: '100%',
            }"
          >
            <div class="logo-image-component-login">
              <VImg
                :src="authThemeImg"
                max-height="100"
                class="image-11 lazyload"
              />
            </div>
          </div>
        </section>
      </div>
    </body>
  </VRow>
</template>

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