summaryrefslogtreecommitdiff
path: root/src/layouts/LoginLayout.vue
blob: 63330c2292c080dafe046eb39ccc715de7d9806d (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<template>
  <main>
    <div class="login-container">
      <div class="login-aside">
        <img
          class="login-aside__picture"
          src="@/assets/images/login/autrorization-left-image.svg"
        />
        <img
          class="login-aside__vector1"
          src="@/assets/images/login/vector1.svg"
        />
      </div>
      <div class="login-main">
        <!-- <h1 v-if="customizableGuiName">
          {{ customizableGuiName }}
        </h1> -->
        <router-view class="login=form form-background" />
      </div>
      <img
        class="login-aside__vector2"
        src="@/assets/images/login/vector2.svg"
      />
    </div>
  </main>
</template>

<script>
export default {
  name: 'LoginLayout',
  data() {
    return {
      customizableGuiName: process.env.VUE_APP_GUI_NAME || '',
    };
  },
};
</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;
  width: 480px;
}

.login-aside__picture {
  height: 100vh;
  width: 480px;
  object-fit: cover;
}

.login-aside__vector1 {
  position: absolute;
  top: 0%;
  left: 0%;
}

.login-aside__vector2 {
  position: absolute;
  bottom: 32px;
  right: 32px;
}

.login-main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: calc(100vw - 480px);
  margin: 0;
  padding: 0;
}

@media (max-width: 992px) {
  .login-container {
    flex-direction: column;

    .login-aside {
      width: 100%;
      min-height: 40vh;
      height: 40vh;

      .login-aside__picture {
        width: 100%;
        height: 40vh;
      }
    }

    .login-main {
      width: 100%;
      min-height: 40vh;
      height: 40vh;
    }
  }
}

@media (max-width: 576px) {
  .login-form {
    width: 90%;
  }
}
</style>