-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d28752
commit 6e0bfce
Showing
3 changed files
with
225 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<template> | ||
<div class="sidebar-wrapper"> | ||
<div class="d-flex flex-column flex-shrink-0 p-3" style="width: 15rem; height: 100%; background-color: #262d42"> | ||
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto link-light text-decoration-none"> | ||
<Icon icon="admin" size="24" color="white" /> | ||
<span class="fs-4 p-1">| Biblio Admin</span> | ||
</a> | ||
<hr style="color: white"> | ||
<ul class="nav nav-pills flex-column mb-auto"> | ||
<li class="nav-item"> | ||
<a href="/admin" :class="{ 'active': $page.url === ('/admin'), 'link-light': $page.url !== ('/admin') }" class="nav-link d-flex" aria-current="page"> | ||
<Icon icon="full-house" size="16" color="white" /> Home | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/admin/items" :class="{ 'active': $page.url.startsWith('/admin/items'), 'link-light': !$page.url.startsWith('/admin/items') }" class="nav-link d-flex"> <!-- link-light --> | ||
<Icon icon="full-archive" size="16" color="white" /> Items | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/admin/reservations" :class="{ 'active': $page.url.startsWith('/admin/reservations'), 'link-light': !$page.url.startsWith('/admin/reservations') }" class="nav-link link-light d-flex"> | ||
<Icon icon="list" size="16" color="white" /> Reserveringen | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/admin/users" :class="{ 'active': $page.url.startsWith('/admin/users'), 'link-light': !$page.url.startsWith('/admin/users') }" class="nav-link link-light d-flex"> | ||
<Icon icon="full-people" size="16" color="white" /> Klanten | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/admin/invoices" :class="{ 'active': $page.url.startsWith('/admin/invoices'), 'link-light': !$page.url.startsWith('/admin/invoices') }" class="nav-link link-light d-flex"> | ||
<Icon icon="full-euro" size="16" color="white" /> Facturen | ||
</a> | ||
</li> | ||
</ul> | ||
<hr> | ||
<div class="dropdown"> | ||
<a href="#" class="d-flex align-items-center link-light text-decoration-none dropdown-toggle" id="dropdownUser2" data-bs-toggle="dropdown" aria-expanded="false"> | ||
<Icon icon="full-person" size="24" color="white" /> | ||
<strong class="p-1">{{ userData.name }}</strong> | ||
</a> | ||
<ul class="dropdown-menu text-small shadow" aria-labelledby="dropdownUser2"> | ||
<li><a class="dropdown-item" href="#">Profile</a></li> | ||
<li> | ||
<hr class="dropdown-divider"> | ||
</li> | ||
<li><a class="dropdown-item" href="#">Sign out</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<slot /> | ||
</div> | ||
</template> | ||
<script> | ||
import Icon from "@/icon.vue" | ||
export default { | ||
name: "AdminSidebar", | ||
props: ["userData"], | ||
components: { | ||
Icon | ||
}, | ||
} | ||
</script> | ||
|
||
<style> | ||
.sidebar-wrapper { | ||
height: 100%; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: start; | ||
background-color: white; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,19 @@ | ||
<template> | ||
<div class="d-flex flex-column flex-shrink-0 p-3" style="width: 15rem; height: 100%; background-color: #262d42"> | ||
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto link-light text-decoration-none"> | ||
<Icon icon="admin" size="24" color="white" /> | ||
<span class="fs-4 p-1">| Biblio Admin</span> | ||
</a> | ||
<hr> | ||
<ul class="nav nav-pills flex-column mb-auto"> | ||
<li class="nav-item"> | ||
<a href="/admin" :class="{ 'active': $page.url === ('/admin'), 'link-light': $page.url !== ('/admin') }" class="nav-link d-flex" aria-current="page"> | ||
<Icon icon="full-house" size="16" color="white" /> Home | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/admin/items" :class="{ 'active': $page.url.startsWith('/admin/items'), 'link-light': !$page.url.startsWith('/admin/items') }" class="nav-link d-flex"> <!-- link-light --> | ||
<Icon icon="full-archive" size="16" color="white" /> Items | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/admin/reservations" :class="{ 'active': $page.url.startsWith('/admin/reservations'), 'link-light': !$page.url.startsWith('/admin/reservations') }" class="nav-link link-light d-flex"> | ||
<Icon icon="list" size="16" color="white" /> Reserveringen | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/admin/users" :class="{ 'active': $page.url.startsWith('/admin/users'), 'link-light': !$page.url.startsWith('/admin/users') }" class="nav-link link-light d-flex"> | ||
<Icon icon="full-people" size="16" color="white" /> Klanten | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/admin/invoices" :class="{ 'active': $page.url.startsWith('/admin/invoices'), 'link-light': !$page.url.startsWith('/admin/invoices') }" class="nav-link link-light d-flex"> | ||
<Icon icon="full-euro" size="16" color="white" /> Facturen | ||
</a> | ||
</li> | ||
</ul> | ||
<hr> | ||
<div class="dropdown"> | ||
<a href="#" class="d-flex align-items-center link-light text-decoration-none dropdown-toggle" id="dropdownUser2" data-bs-toggle="dropdown" aria-expanded="false"> | ||
<Icon icon="full-person" size="24" color="white" /> | ||
<strong class="p-1">{{ userData.name }}</strong> | ||
</a> | ||
<ul class="dropdown-menu text-small shadow" aria-labelledby="dropdownUser2"> | ||
<li><a class="dropdown-item" href="#">Profile</a></li> | ||
<li> | ||
<hr class="dropdown-divider"> | ||
</li> | ||
<li><a class="dropdown-item" href="#">Sign out</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="slot"> | ||
<AdminSidebar :userData="userData"> | ||
<slot /> | ||
</div> | ||
</AdminSidebar> | ||
</template> | ||
|
||
<script> | ||
import "https://code.jquery.com/jquery-3.7.1.js" | ||
import "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
import Icon from "@components/icon.vue"; | ||
import AdminSidebar from "@/components/admin/Siderbar.vue"; | ||
export default { | ||
name: "AdminLayout", | ||
components: { | ||
Icon, | ||
AdminSidebar | ||
}, | ||
props: { | ||
userData: { | ||
|
@@ -82,9 +34,7 @@ | |
background-color: #003bb2 !important; | ||
} | ||
.slot { | ||
display: flex; | ||
width: 100%; | ||
background-color: #f2f2f2 | ||
* { | ||
color: black; | ||
} | ||
</style> | ||
</style> |
Oops, something went wrong.