update layout
This commit is contained in:
parent
341b71cfd9
commit
e46ea324b5
|
@ -9,15 +9,18 @@
|
||||||
SideNavigationItem as Item,
|
SideNavigationItem as Item,
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
|
|
||||||
let orgName, orgLogo
|
let orgName, orgLogo, onBoardingProgress
|
||||||
|
|
||||||
async function getOrgInfo() {
|
async function getInfo() {
|
||||||
// fetch orgInfo
|
// fetch orgInfo
|
||||||
orgName = "ACME Inc."
|
orgName = "ACME Inc."
|
||||||
orgLogo = "https://via.placeholder.com/32"
|
orgLogo = "https://via.placeholder.com/150"
|
||||||
|
|
||||||
|
// set onBoardingProgress
|
||||||
|
onBoardingProgress = 20
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(getOrgInfo)
|
onMount(getInfo)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -29,7 +32,7 @@
|
||||||
<span>{orgName}</span>
|
<span>{orgName}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="onboarding">
|
<div class="onboarding">
|
||||||
<ProgressCircle />
|
<ProgressCircle size="S" value={onBoardingProgress} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
|
@ -51,7 +54,7 @@
|
||||||
<div class="toolbar">
|
<div class="toolbar">
|
||||||
<Search />
|
<Search />
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<Avatar />
|
<Avatar url="https://via.placeholder.com/150" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -75,6 +78,14 @@
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto auto;
|
grid-template-columns: auto auto;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: var(--spacing-xl);
|
||||||
|
}
|
||||||
|
.name {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto auto;
|
||||||
|
grid-gap: var(--spacing-m);
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
padding: var(--spacing-m);
|
padding: var(--spacing-m);
|
||||||
|
@ -86,4 +97,8 @@
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: var(--spacing-m) calc(var(--spacing-xl) * 2);
|
padding: var(--spacing-m) calc(var(--spacing-xl) * 2);
|
||||||
}
|
}
|
||||||
|
img {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue