reworked the chat layout and fixed a rate limiting mistake
This commit is contained in:
109
src/App.vue
109
src/App.vue
@@ -1,18 +1,22 @@
|
||||
<template>
|
||||
<div id="page">
|
||||
<router-view />
|
||||
<main id="content">
|
||||
<router-view />
|
||||
</main>
|
||||
|
||||
<div id="absolute">
|
||||
<button class="logout" @click="logout()">Logout</button>
|
||||
|
||||
<router-link to="." class="button">
|
||||
Home
|
||||
<nav id="bottom-nav">
|
||||
<router-link to="/" class="nav-item" aria-label="Home">
|
||||
<i class="fa-solid fa-message"></i>
|
||||
</router-link>
|
||||
|
||||
<router-link to="/friendlist" class="button">
|
||||
Friendlist
|
||||
<router-link to="/friendlist" class="nav-item" aria-label="Friends">
|
||||
<i class="fa-solid fa-user-group"></i>
|
||||
</router-link>
|
||||
</div>
|
||||
|
||||
<button class="nav-item logout" @click="logout" aria-label="Logout">
|
||||
<i class="fa-solid fa-right-from-bracket"></i>
|
||||
</button>
|
||||
</nav>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -30,27 +34,86 @@ function logout() {
|
||||
|
||||
<style scoped>
|
||||
#page {
|
||||
min-height: 100vh;
|
||||
background: var(--bg);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 100%;
|
||||
max-width: 1100px;
|
||||
padding: 2rem;
|
||||
box-sizing: border-box;
|
||||
background: var(--background);
|
||||
padding-bottom: 120px;
|
||||
}
|
||||
|
||||
#absolute {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
margin: 30px;
|
||||
#bottom-nav {
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
|
||||
display: flex;
|
||||
gap: 28px;
|
||||
|
||||
padding: 14px 22px;
|
||||
background: color-mix(in srgb, var(--panel) 85%, transparent);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
|
||||
backdrop-filter: blur(10px);
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 720px) {
|
||||
#page {
|
||||
padding: 0;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 40px;
|
||||
.nav-item {
|
||||
all: unset;
|
||||
cursor: pointer;
|
||||
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
color: var(--muted);
|
||||
font-size: 1.25rem;
|
||||
border-radius: 50%;
|
||||
|
||||
transition:
|
||||
color 0.2s ease,
|
||||
background-color 0.2s ease,
|
||||
transform 0.15s ease;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
color: var(--text);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.nav-item:not(.router-link-active):hover {
|
||||
color: var(--text);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.router-link-active {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.logout:hover {
|
||||
color: rgba(255, 80, 80, 0.8);
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
#content {
|
||||
padding: 1.2rem;
|
||||
padding-bottom: 130px;
|
||||
}
|
||||
|
||||
#bottom-nav {
|
||||
bottom: 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user