Merge branch 'ui-refactor'
This commit is contained in:
commit
92c0024411
1 changed files with 45 additions and 0 deletions
|
@ -25,6 +25,23 @@
|
|||
</div>
|
||||
<slot />
|
||||
</div>
|
||||
<div id = "page-content">
|
||||
<div id="left-column">
|
||||
<NuxtLink id="home-button" href="/">
|
||||
<img class="sidebar-icon" src="/public/icon.svg"/>
|
||||
</NuxtLink>
|
||||
<div id="servers-list">
|
||||
<NuxtLink v-for="guild of guilds" :href="`/servers/${guild.uuid}`">
|
||||
<img v-if="guild.icon" class="sidebar-icon" :src="guild.icon" :alt="guild.name"/>
|
||||
<Icon v-else name="lucide:server" class="sidebar-icon white" :alt="guild.name" />
|
||||
</NuxtLink>
|
||||
</div>
|
||||
<NuxtLink id="settings-menu" href="/settings">
|
||||
<Icon name="lucide:settings" class="sidebar-icon white" alt="Settings menu" />
|
||||
</NuxtLink>
|
||||
</div>
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -52,9 +69,11 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
|||
.visible {
|
||||
opacity: 100%;
|
||||
transition: opacity 500ms;
|
||||
transition: opacity 500ms;
|
||||
}
|
||||
|
||||
#homebar {
|
||||
min-height: 4dvh;
|
||||
min-height: 4dvh;
|
||||
display: flex;
|
||||
justify-content: space-evenly;
|
||||
|
@ -62,6 +81,7 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
|||
background: var(--optional-topbar-background);
|
||||
background-color: var(--topbar-background-color);
|
||||
border-bottom: 1px solid var(--padding-color);
|
||||
border-bottom: 1px solid var(--padding-color);
|
||||
padding-left: 5dvw;
|
||||
padding-right: 5dvw;
|
||||
|
||||
|
@ -80,6 +100,9 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
|||
flex-direction: row;
|
||||
flex-grow: 1;
|
||||
overflow: auto;
|
||||
flex-direction: row;
|
||||
flex-grow: 1;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#left-column {
|
||||
|
@ -88,12 +111,23 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
|||
gap: .75em;
|
||||
padding-left: .25em;
|
||||
padding-right: .25em;
|
||||
gap: .75em;
|
||||
padding-left: .25em;
|
||||
padding-right: .25em;
|
||||
border-right: 1px solid var(--padding-color);
|
||||
background: var(--optional-sidebar-background);
|
||||
background-color: var(--sidebar-background-color);
|
||||
padding-top: .5em;
|
||||
}
|
||||
|
||||
#servers-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1em;
|
||||
width: 3.2rem;
|
||||
padding-top: .5em;
|
||||
}
|
||||
|
||||
#servers-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -102,6 +136,8 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
|||
}
|
||||
|
||||
#middle-left-column {
|
||||
padding-left: .25em;
|
||||
padding-right: .25em;
|
||||
padding-left: .25em;
|
||||
padding-right: .25em;
|
||||
border-right: 1px solid var(--padding-color);
|
||||
|
@ -110,6 +146,14 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
|||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.sidebar-icon {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
min-width: 10em;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.sidebar-icon {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
|
@ -123,6 +167,7 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
|||
#settings-menu {
|
||||
position: absolute;
|
||||
bottom: .25em
|
||||
bottom: .25em
|
||||
}
|
||||
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue