-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
30 changed files
with
1,049 additions
and
40 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
<template> | ||
<header class="app-header"> | ||
<div class="app-header__heading"> | ||
<h1 class="app-header__title">Posts</h1> | ||
<nav class="app-header__breadcrumbs" aria-label="Breadcrumbs"> | ||
<ol class="breadcrumbs"> | ||
<li class="breadcrumb-item"> | ||
<a href="#">Dashboard</a> | ||
</li> | ||
<li class="breadcrumb-item"> | ||
<span aria-current="page">Posts</span> | ||
</li> | ||
</ol> | ||
</nav> | ||
</div> | ||
<div class="app-header__actions"> | ||
<button type="button" class="btn btn--primary btn--open-search"> | ||
<Icon class="btn__icon btn__icon--start" name="magnifier"></Icon> | ||
Quick search...<span class="btn__keybind">Ctrl K</span> | ||
</button> | ||
<button type="button" class="js-toggle-filter btn btn--secondary btn--icon"> | ||
<Icon class="btn__icon btn__icon--start" name="filter-list"></Icon> | ||
</button> | ||
</div> | ||
</header> | ||
</template> | ||
|
||
<script> | ||
import { Link } from '@inertiajs/inertia-vue3'; | ||
export default { | ||
components: { | ||
Link, | ||
}, | ||
} | ||
</script> |
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,35 @@ | ||
<template> | ||
<div class="app"> | ||
<Sidebar></Sidebar> | ||
<main class="app-body"> | ||
<Nav></Nav> | ||
<div class="app-body__inner"> | ||
<Header></Header> | ||
<slot></slot> | ||
</div> | ||
</main> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Header from './Header'; | ||
import Nav from './Nav'; | ||
import Sidebar from './Sidebar'; | ||
export default { | ||
components: { | ||
Header, | ||
Nav, | ||
Sidebar, | ||
}, | ||
computed: { | ||
resources() { | ||
return window.Root.resources; | ||
}, | ||
user() { | ||
return window.Root.user; | ||
}, | ||
}, | ||
} | ||
</script> |
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,50 @@ | ||
<template> | ||
<div class="mobile-header"> | ||
<div class="mobile-header__inner"> | ||
<a href="#"> | ||
<img class="mobile-header__logo" src="/vendor/root/root-logo-dark.svg" alt="Root"> | ||
</a> | ||
<div class="mobile-header__actions"> | ||
<button class="js-toggle-sidebar btn btn--secondary btn--icon"> | ||
<Icon class="btn__icon btn__icon--start" name="menu-open"></Icon> | ||
</button> | ||
<div class="user-menu-wrapper"> | ||
<button class="js-user-menu user-menu" aria-expanded="false" aria-label="User Menu"> | ||
<img class="user-menu__avatar" src="https://s.gravatar.com/avatar/fd9479a898c593601efd2fe758a86dba?s=120"> | ||
<div class="user-menu__caption"> | ||
<span class="user-menu__name">Adam Laki</span> | ||
<span class="user-menu__role">Administrator</span> | ||
</div> | ||
<div class="js-user-menu-toggle user-menu__toggle"> | ||
<Icon class="user-menu__arrow" name="unfold-more"></Icon> | ||
</div> | ||
</button> | ||
<ul | ||
class="js-user-menu-navigation user-menu-navigation user-menu-navigation--bottom" | ||
aria-labelledby="user-user-navigation" | ||
> | ||
<li> | ||
<a class="user-menu-navigation__item" aria-current="" href="#">Personal Informations</a> | ||
</li> | ||
<li> | ||
<a class="user-menu-navigation__item" aria-current="" href="#">Change Password</a> | ||
</li> | ||
<li> | ||
<button class="user-menu-navigation__item" type="button">Logout</button> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { Link } from '@inertiajs/inertia-vue3'; | ||
export default { | ||
components: { | ||
Link, | ||
}, | ||
} | ||
</script> |
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,83 @@ | ||
<template> | ||
<aside class="js-app-sidebar app-sidebar"> | ||
<div class="app-sidebar__header"> | ||
<a href="/"> | ||
<img class="app-sidebar__logo" src="/vendor/root/root-logo-dark.svg" alt="Root"> | ||
</a> | ||
</div> | ||
<nav class="navigation app-sidebar__navigation" aria-label="Site"> | ||
<ul> | ||
<li class="navigation-item"> | ||
<a class="navigation-item__link" href="#"> | ||
<Icon class="navigation-item__icon" name="dashboard"></Icon> | ||
<span class="navigation-item__caption">Dashboard</span> | ||
</a> | ||
</li> | ||
</ul> | ||
<p class="app-sidebar__title">Content</p> | ||
<ul> | ||
<li class="navigation-item is-open"> | ||
<a class="navigation-item__link" href="#"> | ||
<Icon class="navigation-item__icon" name="post"></Icon> | ||
<span class="navigation-item__caption">Posts</span> | ||
</a> | ||
<ul class="navigation-submenu"> | ||
<li> | ||
<a href="#" aria-current="page">All Posts</a> | ||
</li> | ||
<li> | ||
<a href="#">New Post</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<p class="app-sidebar__title">Administration</p> | ||
<ul> | ||
<li class="navigation-item"> | ||
<a class="navigation-item__link" href="#"> | ||
<Icon class="navigation-item__icon" name="person"></Icon> | ||
<span class="navigation-item__caption">Users</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
<div class="app-sidebar__footer"> | ||
<div class="user-menu-wrapper"> | ||
<button class="js-user-menu user-menu" aria-expanded="false" aria-label="User Menu"> | ||
<img class="user-menu__avatar" src="https://s.gravatar.com/avatar/fd9479a898c593601efd2fe758a86dba?s=120"> | ||
<div class="user-menu__caption"> | ||
<span class="user-menu__name">Adam Laki</span> | ||
<span class="user-menu__role">Administrator</span> | ||
</div> | ||
<div class="js-user-menu-toggle user-menu__toggle"> | ||
<Icon class="user-menu__arrow" name="unfold-more"></Icon> | ||
</div> | ||
</button> | ||
<ul | ||
class="js-user-menu-navigation user-menu-navigation user-menu-navigation--top" | ||
aria-labelledby="user-user-navigation" | ||
> | ||
<li> | ||
<a class="user-menu-navigation__item" aria-current="" href="#">Personal Informations</a> | ||
</li> | ||
<li> | ||
<a class="user-menu-navigation__item" aria-current="" href="#">Change Password</a> | ||
</li> | ||
<li> | ||
<button class="user-menu-navigation__item" type="button">Logout</button> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</aside> | ||
</template> | ||
|
||
<script> | ||
import { Link } from '@inertiajs/inertia-vue3'; | ||
export default { | ||
components: { | ||
Link, | ||
}, | ||
} | ||
</script> |
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
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
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,21 @@ | ||
@use 'sprucecss/scss/spruce'; | ||
|
||
$sidebar-width: 20rem; | ||
|
||
.app { | ||
background: linear-gradient(180deg, hsl(217, 100%, 97%) 4%, #fff); | ||
background-attachment: fixed; | ||
display: flex; | ||
flex-direction: column; | ||
min-height: 100vh; | ||
|
||
@include spruce.breakpoint(md) { | ||
&-sidebar { | ||
width: $sidebar-width; | ||
} | ||
|
||
&-body { | ||
margin-inline-start: $sidebar-width; | ||
} | ||
} | ||
} |
Oops, something went wrong.