update layout

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-05 10:21:55 +02:00
parent 341b71cfd9
commit e46ea324b5
1 changed files with 21 additions and 6 deletions

View File

@ -9,15 +9,18 @@
SideNavigationItem as Item,
} from "@budibase/bbui"
let orgName, orgLogo
let orgName, orgLogo, onBoardingProgress
async function getOrgInfo() {
async function getInfo() {
// fetch orgInfo
orgName = "ACME Inc."
orgLogo = "https://via.placeholder.com/32"
orgLogo = "https://via.placeholder.com/150"
// set onBoardingProgress
onBoardingProgress = 20
}
onMount(getOrgInfo)
onMount(getInfo)
</script>
<div class="container">
@ -29,7 +32,7 @@
<span>{orgName}</span>
</div>
<div class="onboarding">
<ProgressCircle />
<ProgressCircle size="S" value={onBoardingProgress} />
</div>
</div>
<div class="menu">
@ -51,7 +54,7 @@
<div class="toolbar">
<Search />
<div class="avatar">
<Avatar />
<Avatar url="https://via.placeholder.com/150" />
</div>
</div>
<div class="content">
@ -75,6 +78,14 @@
display: grid;
grid-template-columns: auto auto;
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 {
padding: var(--spacing-m);
@ -86,4 +97,8 @@
justify-content: space-between;
padding: var(--spacing-m) calc(var(--spacing-xl) * 2);
}
img {
width: 32px;
height: 32px;
}
</style>