blob: cdff20405a8909c35c42da2db394a4d13b58afe2 (
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
112
|
<template>
<main>
<div class="login-container">
<div class="login-main">
<div>
<div class="login-brand mb-5">
<img
width="90px"
src="@/assets/images/login-company-logo.svg"
:alt="altLogo"
/>
</div>
<h1 v-if="customizableGuiName" class="h3 mb-5">
{{ customizableGuiName }}
</h1>
<router-view class="login=form form-background" />
</div>
</div>
<div class="login-aside">
<div class="login-aside__logo-brand">
<!-- Add Secondary brand logo if needed -->
</div>
<div class="login-aside__logo-bmc">
<img
height="60px"
src="@/assets/images/built-on-openbmc-logo.svg"
alt="Built on OpenBMC"
/>
</div>
</div>
</div>
</main>
</template>
<script>
export default {
name: 'LoginLayout',
data() {
return {
altLogo: process.env.VUE_APP_COMPANY_NAME || 'OpenBMC',
customizableGuiName: process.env.VUE_APP_GUI_NAME || '',
};
},
};
</script>
<style lang="scss" scoped>
.login-container {
background: gray('100');
display: flex;
flex-direction: column;
gap: $spacer * 2;
max-width: 1400px;
min-width: 320px;
min-height: 100vh;
justify-content: space-around;
@include media-breakpoint-up('md') {
background: $white;
flex-direction: row;
}
}
.login-main {
min-height: 50vh;
padding: $spacer * 3;
@include media-breakpoint-up('md') {
background: gray('100');
display: flex;
flex-direction: column;
flex: 1 1 75%;
min-height: 100vh;
justify-content: center;
align-items: center;
}
}
.login-form {
@include media-breakpoint-up('md') {
max-width: 360px;
}
}
.login-aside {
display: flex;
align-items: flex-end;
justify-content: flex-end;
gap: $spacer * 1.5;
margin-right: $spacer * 3;
margin-bottom: $spacer;
@include media-breakpoint-up('md') {
min-height: 100vh;
padding-bottom: $spacer;
flex: 1 1 25%;
margin-bottom: 0;
}
}
.login-aside__logo-brand:not(:empty) {
&::after {
content: '';
display: inline-block;
height: 2.5rem;
width: 2px;
background-color: gray('200');
margin-left: $spacer * 1.5;
vertical-align: middle;
}
}
</style>
|