Improve mobile login and password reset view
This commit is contained in:
@@ -12,10 +12,9 @@ const props = defineProps({
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<!-- TODO mobile layout -->
|
||||
<div class="public-page-layout">
|
||||
<div class="public-page-layout-root">
|
||||
<div class="public-page-layout-left" :style="{ 'background-image': `url('${API_ORIGIN}/api/v1/cloudron/background')` }">
|
||||
<div class="public-page-layout-left pankow-no-mobile" :style="{ 'background-image': `url('${API_ORIGIN}/api/v1/cloudron/background')` }">
|
||||
<img width="128" height="128" :src="`${API_ORIGIN}/api/v1/cloudron/avatar`"/>
|
||||
</div>
|
||||
|
||||
@@ -24,18 +23,28 @@ const props = defineProps({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="public-page-layout-root-mobile" :style="{ 'background-image': `url('${API_ORIGIN}/api/v1/cloudron/background')` }">
|
||||
<img width="128" height="128" :src="`${API_ORIGIN}/api/v1/cloudron/avatar`"/>
|
||||
|
||||
<div class="public-page-layout-content">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer v-show="footerHtml" v-html="footerHtml"></footer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
|
||||
.public-page-layout-button-bar {
|
||||
margin-top: 12px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.public-page-layout-button-bar {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.public-page-layout {
|
||||
@@ -75,47 +84,20 @@ const props = defineProps({
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.public-page-layout-root-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.public-page-layout-root {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.public-page-layout-root-mobile {
|
||||
.public-page-layout-right {
|
||||
text-align: center;
|
||||
display: flex;
|
||||
background-color: rgba(0,0,0,0.1);
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
flex-basis: unset;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.public-page-layout-root-mobile > img {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.public-page-layout-content {
|
||||
display: flex;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
background-color: rgba(255,255,255,0.3);
|
||||
filter: drop-shadow(0px 0px 14px white);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.public-page-layout-content {
|
||||
background-color: rgba(0,0,0,0.3);
|
||||
filter: drop-shadow(0px 0px 14px black);
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user