summaryrefslogtreecommitdiff
path: root/src/layouts/_sila/LoginLayout.vue
blob: f353a4bca199c9962ab907f85ab8cc7daa010b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<template>
  <main>
    <div class="login-container">
      <div class="login-aside">
        <img
          src="@/assets/images/_sila/built-on-openbmc-logo.svg"
          alt="Built on BMC"
        />
      </div>
      <div class="login-main">
        <h1>{{ $t('pageLogin.auth') }}</h1>
        <h3 class="h5 mb-4">{{ $t('pageLogin.authDescription') }}</h3>
        <router-view class="login=form form-background" />
      </div>
    </div>
  </main>
</template>

<script>
export default {
  name: 'LoginLayout',
};
</script>

<style lang="scss" scoped>
.login-container {
  background: $white;
  display: flex;
  flex-direction: row;
  min-width: 320px;
  min-height: 100vh;
  justify-content: flex-start;
}

.login-aside {
  min-height: 100vh;
  & > img {
    height: 100vh;
  }
}

.login-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  width: 30vw;
  margin: auto;
  padding: 0;
}
@media (max-width: 750px) {
  .login-aside {
    display: none;
  }
}
</style>