feat: refactor left column in UI, add join guild icon
This commit is contained in:
parent
64c6276153
commit
b82d5733a1
1 changed files with 48 additions and 12 deletions
|
@ -7,6 +7,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="left-column">
|
||||
<div id="left-column-top">
|
||||
<NuxtLink id="home-button" href="/">
|
||||
<Icon name="lucide:house" class="white" size="2rem" />
|
||||
</NuxtLink>
|
||||
|
@ -16,6 +17,12 @@
|
|||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
<div id="left-column-bottom">
|
||||
<button id="join-server-button">
|
||||
<Icon id="join-server-icon" name="lucide:square-plus" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
@ -26,6 +33,9 @@ import type { GuildResponse } from '~/types/interfaces';
|
|||
const loading = useState("loading", () => false);
|
||||
|
||||
const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
||||
for (let i = 0; i < 20; i++) {
|
||||
guilds?.push(guilds[0]);
|
||||
}
|
||||
|
||||
//const servers = await fetchWithApi("/servers") as { uuid: string, name: string, description: string }[];
|
||||
//console.log("servers:", servers);
|
||||
|
@ -124,13 +134,24 @@ const members = [
|
|||
}
|
||||
|
||||
#left-column {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr auto;
|
||||
overflow-y: hidden;
|
||||
border-right: 1px solid rgb(70, 70, 70);
|
||||
padding-top: 1dvh;
|
||||
padding-bottom: 1dvh;
|
||||
}
|
||||
|
||||
#left-column-top {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2dvh;
|
||||
padding-left: .5dvw;
|
||||
padding-right: .5dvw;
|
||||
border-right: 1px solid rgb(70, 70, 70);
|
||||
padding-top: 1.5dvh;
|
||||
gap: 1.5dvh;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
#left-column-bottom {
|
||||
padding-top: 1dvh;
|
||||
border-top: 1px solid rgb(70, 70, 70);
|
||||
}
|
||||
|
||||
#middle-left-column {
|
||||
|
@ -148,6 +169,21 @@ const members = [
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1dvh;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
#join-server-button {
|
||||
color: white;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 2rem;
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#join-server-icon {
|
||||
float: left;
|
||||
}
|
||||
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue