Skip to content

Commit 5eccbc9

Browse files
author
Hoang Nguyen
authored
ui: Add footer text option for login screen (#5628)
* add footer text option for login screen * using single key for policy * set empty for default policy text * rename footer text key * rename the footer text property name * change position avoid breaking with docHelp * change position of properties
1 parent 8952cd5 commit 5eccbc9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

ui/public/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"docBase": "http://docs.cloudstack.apache.org/en/latest",
1111
"appTitle": "CloudStack",
1212
"footer": "Licensed under the <a href='http://www.apache.org/licenses/' target='_blank'>Apache License</a>, Version 2.0.",
13+
"loginFooter": "",
1314
"logo": "assets/logo.svg",
1415
"banner": "assets/banner.svg",
1516
"error": {

ui/src/layouts/UserLayout.vue

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
</div>
3232
<route-view></route-view>
3333
</div>
34+
<div class="user-layout-footer" v-if="$config.loginFooter">
35+
<label v-html="$config.loginFooter"></label>
36+
</div>
3437
</div>
3538
</template>
3639

@@ -97,5 +100,25 @@ export default {
97100
margin-bottom: 1rem;
98101
}
99102
}
103+
104+
&-footer {
105+
display: flex;
106+
flex-direction: column;
107+
position: absolute;
108+
bottom: 20px;
109+
text-align: center;
110+
width: 100%;
111+
112+
@media (max-height: 600px) {
113+
position: relative;
114+
margin-top: 50px;
115+
}
116+
117+
label {
118+
width: 368px;
119+
font-weight: 500;
120+
margin: 0 auto;
121+
}
122+
}
100123
}
101124
</style>

0 commit comments

Comments
 (0)