remake sidebar (non functional)
This commit is contained in:
parent
ef91169116
commit
9f76da4aa4
@ -15,9 +15,9 @@
|
||||
}
|
||||
|
||||
.server-sidebar {
|
||||
width: 16rem;
|
||||
width: 16rem !important;
|
||||
}
|
||||
|
||||
/*
|
||||
@media (max-width: 992px) {
|
||||
.server-sidebar {
|
||||
width: 4.5rem;
|
||||
@ -45,7 +45,7 @@
|
||||
height: 45px !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
.server-item {
|
||||
max-width: calc(16rem - 1rem);
|
||||
@ -69,7 +69,7 @@
|
||||
.server-item-selector:focus,
|
||||
.server-item-selector:active,
|
||||
.active > .server-item-selector {
|
||||
background-color: var(--bs-tertiary-bg) !important;
|
||||
background-color: var(--bs-body-bg) !important;
|
||||
}
|
||||
|
||||
|
||||
@ -133,12 +133,113 @@
|
||||
height: 100%;
|
||||
padding: 0.5rem 0;
|
||||
border-radius: var(--bs-border-radius-sm);
|
||||
transition: 0.3s;
|
||||
|
||||
color: var(--bs-body-color);
|
||||
background-color: var(--bs-secondary-bg);
|
||||
background-color: var(--bs-tertiary-bg);
|
||||
}
|
||||
|
||||
.sidebar-btn:hover {
|
||||
background-color: var(--bs-body-bg);
|
||||
}
|
||||
|
||||
|
||||
/* New Sidebar */
|
||||
|
||||
.sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
padding: 1rem;
|
||||
width: 280px;
|
||||
|
||||
color: var(--bs-body-color);
|
||||
background-color: var(--bs-tertiary-bg)
|
||||
}
|
||||
|
||||
.sidebar .sidebar-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-header .sidebar-logo {
|
||||
width: 45px;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-header .sidebar-title {
|
||||
font-size: 2rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-content {
|
||||
margin-bottom: auto;
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-content .sidebar-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
border: none;
|
||||
border-radius: var(--bs-border-radius-sm);
|
||||
background-color: var(--bs-tertiary-bg);
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar .sidebar-content .sidebar-item:hover {
|
||||
background-color: var(--bs-body-bg);
|
||||
}
|
||||
|
||||
.sidebar .sidebar-content .sidebar-item .sidebar-item-image {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: var(--bs-border-radius-sm);
|
||||
margin-right: 0.75rem;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-content .sidebar-item .sidebar-item-data {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-content .sidebar-item .sidebar-item-data > span {
|
||||
text-align: start;
|
||||
display: block;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-footer .sidebar-menu-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
border: none;
|
||||
border-radius: var(--bs-border-radius-sm);
|
||||
color: var(--bs-body-color);
|
||||
background-color: var(--bs-tertiary-bg);
|
||||
}
|
||||
|
||||
.sidebar .sidebar-footer .sidebar-menu-btn:hover {
|
||||
background-color: var(--bs-body-bg);
|
||||
}
|
||||
|
||||
.sidebar .sidebar-avatar {
|
||||
border-radius: 50%;
|
||||
margin-right: 0.5rem;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.sidebar .sidebar-menu {
|
||||
border: none;
|
||||
border-radius: var(--bs-border-radius-sm);
|
||||
box-shadow: var(--bs-box-shadow);
|
||||
}
|
||||
|
@ -11,9 +11,165 @@
|
||||
{% endblock stylesheets %}
|
||||
|
||||
{% block content %}
|
||||
<div class="px-0 h-100 bg-body-secondary">
|
||||
<div class="px-0 h-100">
|
||||
<div class="d-flex flex-nowrap h-100">
|
||||
<div class="server-sidebar d-flex flex-column bg-body-secondary py-3">
|
||||
<div class="sidebar">
|
||||
<a href="/" class="sidebar-header me-auto">
|
||||
<img src="{% static '/images/pyrss_logo.webp' %}" alt="pyrss logo" class="sidebar-logo">
|
||||
<span class="sidebar-title font-atkinson-hyperlegible">PYRSS</span>
|
||||
</a>
|
||||
<hr>
|
||||
<ul class="sidebar-content overflow-y-auto">
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/819325370087112744/65c317ab17d38db343b2b40dd992819f.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>Bot Testing</span>
|
||||
<span class="text-body-secondary font-monospace">819325370087112744</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/1039201459188805692/a_0a729662e9d1fd6a4597b0e565a3477d.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>CodeHub</span>
|
||||
<span class="text-body-secondary font-monospace">1039201459188805692</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/753323563381031042/5d160cf35fc5ad204edf85d162cd92a2.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>Orange</span>
|
||||
<span class="text-body-secondary font-monospace">753323563381031042</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/819325370087112744/65c317ab17d38db343b2b40dd992819f.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>Bot Testing</span>
|
||||
<span class="text-body-secondary font-monospace">819325370087112744</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/1039201459188805692/a_0a729662e9d1fd6a4597b0e565a3477d.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>CodeHub</span>
|
||||
<span class="text-body-secondary font-monospace">1039201459188805692</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/753323563381031042/5d160cf35fc5ad204edf85d162cd92a2.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>Orange</span>
|
||||
<span class="text-body-secondary font-monospace">753323563381031042</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/819325370087112744/65c317ab17d38db343b2b40dd992819f.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>Bot Testing</span>
|
||||
<span class="text-body-secondary font-monospace">819325370087112744</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/1039201459188805692/a_0a729662e9d1fd6a4597b0e565a3477d.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>CodeHub</span>
|
||||
<span class="text-body-secondary font-monospace">1039201459188805692</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/753323563381031042/5d160cf35fc5ad204edf85d162cd92a2.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>Orange</span>
|
||||
<span class="text-body-secondary font-monospace">753323563381031042</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/819325370087112744/65c317ab17d38db343b2b40dd992819f.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>Bot Testing</span>
|
||||
<span class="text-body-secondary font-monospace">819325370087112744</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/1039201459188805692/a_0a729662e9d1fd6a4597b0e565a3477d.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>CodeHub</span>
|
||||
<span class="text-body-secondary font-monospace">1039201459188805692</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/753323563381031042/5d160cf35fc5ad204edf85d162cd92a2.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>Orange</span>
|
||||
<span class="text-body-secondary font-monospace">753323563381031042</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/819325370087112744/65c317ab17d38db343b2b40dd992819f.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>Bot Testing</span>
|
||||
<span class="text-body-secondary font-monospace">819325370087112744</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/1039201459188805692/a_0a729662e9d1fd6a4597b0e565a3477d.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>CodeHub</span>
|
||||
<span class="text-body-secondary font-monospace">1039201459188805692</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="sidebar-item">
|
||||
<img src="https://cdn.discordapp.com/icons/753323563381031042/5d160cf35fc5ad204edf85d162cd92a2.webp?size=80" class="sidebar-item-image" alt="">
|
||||
<div class="sidebar-item-data">
|
||||
<span>Orange</span>
|
||||
<span class="text-body-secondary font-monospace">753323563381031042</span>
|
||||
</div>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
<hr>
|
||||
<div class="sidebar-footer dropdown">
|
||||
<button type="button" class="sidebar-menu-btn dropdown-toggle" data-bs-toggle="dropdown" data-bs-auto-close="outside">
|
||||
<img src="{{ request.user.avatar_url }}" alt="" class="sidebar-avatar">
|
||||
<strong>{{ request.user.global_name }}</strong>
|
||||
</button>
|
||||
<div class="sidebar-menu dropdown-menu">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="server-sidebar d-flex flex-column bg-body-tertiary py-3">
|
||||
<h1 class="h3 mx-3 mb-0">PYRSS</h1>
|
||||
<hr>
|
||||
<h6 class="d-none d-lg-block ms-3">Discord Servers</h6>
|
||||
<ul id="serverList" class="nav nav-pills nav-flush flex-column mb-auto text-center px-lg-2 px-1 flex-nowrap overflow-y-auto">
|
||||
{% for i in "0123456789"|make_list %}
|
||||
@ -74,7 +230,6 @@
|
||||
</li>
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
<li>
|
||||
{% comment %}<!-- Logout only accepts POST requests -->{% endcomment %}
|
||||
<form action="/logout/" method="post" class="m-0">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="dropdown-item py-2">
|
||||
@ -93,7 +248,8 @@
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- <ul class="d-flex flex-lg-row flex-column list-unstyled text-center flex-nowrap mb-0 px-lg-4 px-2 align-items-center text-body-secondary">
|
||||
</div> -->
|
||||
<!-- <ul class="d-flex flex-lg-row flex-column list-unstyled text-center flex-nowrap mb-0 px-lg-4 px-2 align-items-center text-body-secondary">
|
||||
<li>
|
||||
<a href="https://gitea.cor.bz/corbz/PYRSS-Website" class="text-reset" target="_blank">
|
||||
<i class="bi bi-git fs-6"></i>
|
||||
@ -111,8 +267,7 @@
|
||||
© 2024 PYRSS
|
||||
</li>
|
||||
</ul> -->
|
||||
</div>
|
||||
<div class="flex-grow-1 container-fluid bg-body rounded-top-2 rounded-end-0 overflow-y-auto" style="min-width: 0;">
|
||||
<div class="flex-grow-1 container-fluid bg-body overflow-y-auto" style="min-width: 0;">
|
||||
<div id="noSelectedServer" class="h-100">
|
||||
<div class="d-flex justify-content-center align-items-center flex-column h-100">
|
||||
<img src="{% static '/images/pyrss_logo.webp' %}" alt="PYRSS Logo">
|
||||
|
@ -16,12 +16,12 @@
|
||||
</div>
|
||||
<div class="offcanvas-body">
|
||||
<ul class="navbar-nav justify-content-end align-items-stretch flex-grow-1">
|
||||
<li class="nav-item w-lg-100">
|
||||
<!-- <li class="nav-item w-lg-100">
|
||||
<button type="button" id="themeToggle" class="navbar-btn">
|
||||
<i class="bi bi-sun"></i>
|
||||
<span class="d-lg-none ms-2 text-body-secondary">Change Theme</span>
|
||||
</button>
|
||||
</li>
|
||||
</li> -->
|
||||
|
||||
{% if request.user.is_authenticated %}
|
||||
<li class="nav-item w-lg-100">
|
||||
|
Loading…
x
Reference in New Issue
Block a user