[frontend] responsive test
This commit is contained in:
parent
23792e1b87
commit
a661599edc
3 changed files with 136 additions and 37 deletions
|
@ -7,3 +7,17 @@
|
|||
.main {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.widget-panel{
|
||||
|
||||
}
|
||||
.sidebar {
|
||||
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.widget-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
@using Iceshrimp.Frontend.Components
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
<div class="sidebar">
|
||||
<div class="header">
|
||||
<account-dropdown />
|
||||
|
@ -6,18 +7,48 @@
|
|||
<div class="nav">
|
||||
<div class="sidebar-btn">
|
||||
<NavLink href="/">
|
||||
Timeline
|
||||
<Icon Name="Icons.House" />
|
||||
<span class="text">Timeline</span>
|
||||
</NavLink>
|
||||
</div>
|
||||
<div class="sidebar-btn">
|
||||
<NavLink href="/notifications">
|
||||
Notifications
|
||||
<Icon Name="Icons.Bell"/>
|
||||
<span class="text">Notifications</span>
|
||||
</NavLink>
|
||||
</div>
|
||||
<button @onclick="Open" class="sidebar-btn">
|
||||
<Icon Name="Icons.Pencil"/>
|
||||
<span class="text">Open!</span>
|
||||
<Compose @ref="_compose"/>
|
||||
@* <button @onclick="Open">Open!</button> *@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bottom-bar">
|
||||
<div class="nav">
|
||||
<button class="sidebar-btn">
|
||||
<Icon Name="Icons.List" />
|
||||
</button>
|
||||
<div class="sidebar-btn">
|
||||
<NavLink href="/">
|
||||
<Icon Name="Icons.House"/>
|
||||
<span class="text">Timeline</span>
|
||||
</NavLink>
|
||||
</div>
|
||||
<div class="sidebar-btn">
|
||||
<Compose @ref="_compose" />
|
||||
<button @onclick="Open">Open!</button>
|
||||
<NavLink href="/notifications">
|
||||
<Icon Name="Icons.Bell"/>
|
||||
<span class="text">Notifications</span>
|
||||
</NavLink>
|
||||
</div>
|
||||
<button @onclick="Open" class="sidebar-btn">
|
||||
<Icon Name="Icons.Pencil"/>
|
||||
<span class="text">Open!</span>
|
||||
<Compose @ref="_compose"/>
|
||||
@* <button @onclick="Open">Open!</button> *@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@code {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
@media (min-width: 701px) {
|
||||
.sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -11,6 +12,7 @@
|
|||
.header {
|
||||
height: 5rem;
|
||||
}
|
||||
|
||||
.sidebar-btn {
|
||||
display: flex;
|
||||
height: 2.5rem;
|
||||
|
@ -35,3 +37,55 @@
|
|||
align-items: center;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.bottom-bar {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.sidebar {
|
||||
display: none;
|
||||
}
|
||||
.bottom-bar {
|
||||
width: 100vw;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: var(--foreground-color);
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.sidebar-btn {
|
||||
display: inline-flex;
|
||||
height: 3rem;
|
||||
width: 4rem;
|
||||
min-width: 4rem;
|
||||
max-width: 4rem;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 1.25rem;
|
||||
margin-bottom: 0.5rem;
|
||||
margin-top: 0.5rem;
|
||||
color: black;
|
||||
background: var(--accent-color);
|
||||
.text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
background-color: var(--hover-color);
|
||||
}
|
||||
|
||||
.icon {
|
||||
display: flex;
|
||||
margin: 0.5rem;
|
||||
align-items: center;
|
||||
color: black;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue