Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNN1 committed Aug 6, 2023
1 parent 220782b commit fe3b4ac
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 43 deletions.
4 changes: 2 additions & 2 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ video {
height: 1rem;
}

.min-h-full {
min-height: 100%;
.h-full {
height: 100%;
}

.w-16 {
Expand Down
78 changes: 37 additions & 41 deletions templates/layout.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,54 +17,50 @@

</head>
<body class="bg-gray-50 text-gray-900" data-dashboard="{{ current }}">
<aside id="sidebar" class="hidden md:block">
<nav class="bg-primary-500 fixed top-0 left-0 bottom-0 block w-56 overflow-hidden overflow-y-auto py-4 pt-6 px-6 shadow-sm shadow-gray-500">
<div class="mx-auto min-h-full w-full px-0 flex flex-col justify-between">
<div>
<a class="hidden pb-2 text-white md:block md:pb-5" href="{{ repo }}" target="_blank" rel="noopener">{{ svg('logo', null) }}</a>
{% for link, item in nav %}
<a class="flex items-center py-2{{ current == link ? ' font-bold' : '' }} text-white hover:text-gray-200" href="?type={{ link }}">
{{ svg(item.icon, 16, 'mr-1' ~ (current == link ? '' : ' opacity-75')) }} {{~ item.title ~}}
</a>
{% endfor %}
</div>
<aside id="sidebar" class="hidden md:block bg-primary-500 fixed top-0 left-0 bottom-0 w-56 overflow-hidden overflow-y-auto py-4 pt-6 px-6 shadow-sm shadow-gray-500">
<div class="h-full px-0 flex flex-col justify-between">
<div>
<a class="hidden pb-2 text-white md:block md:pb-5" href="{{ repo }}" target="_blank" rel="noopener">{{ svg('logo', null) }}</a>
{% for link, item in nav %}
<a class="flex items-center py-2{{ current == link ? ' font-bold' : '' }} text-white hover:text-gray-200" href="?type={{ link }}">
{{ svg(item.icon, 16, 'mr-1' ~ (current == link ? '' : ' opacity-75')) }} {{~ item.title ~}}
</a>
{% endfor %}
</div>

<footer class="my-4 text-center text-white">
{% if logout_url %}
<a class="block py-2 text-white hover:text-gray-200" href="{{ logout_url }}">Logout</a>
{% endif %}
<footer class="my-4 text-center text-white">
{% if logout_url %}
<a class="block py-2 text-white hover:text-gray-200" href="{{ logout_url }}">Logout</a>
{% endif %}

<div>
v{{ version }}
<div>
v{{ version }}

<a class="font-semibold text-white hover:text-gray-200 block" href="{{ repo }}/issues" target="_blank" rel="noopener">Report Issue</a>
</div>
</footer>
</div>
</nav>
</aside>
<div class="relative md:ml-56" id="maincontent">
<div class="p-5">
<header class="pb-5 relative flex flex-col justify-between md:hidden">
<div class="flex justify-items-stretch">
<button class="z-50 block" type="button" id="togglebtn">{{ svg('menu', 20) }}</button>
<a class="mx-auto block text-lg font-bold text-gray-900 w-56" href="{{ repo }}" target="_blank" rel="noopener">{{ svg('logo', null) }}</a>
<a class="font-semibold text-white hover:text-gray-200 block" href="{{ repo }}/issues" target="_blank" rel="noopener">Report Issue</a>
</div>
</header>
</footer>
</div>
</aside>
<main class="relative md:ml-56 p-5" id="maincontent">
<header class="pb-5 relative flex flex-col justify-between md:hidden">
<div class="flex justify-items-stretch">
<button class="z-50 block" type="button" id="togglebtn">{{ svg('menu', 20) }}</button>
<a class="mx-auto block text-lg font-bold text-gray-900 w-56" href="{{ repo }}" target="_blank" rel="noopener">{{ svg('logo', null) }}</a>
</div>
</header>

<div id="alerts">{{ alerts|raw }}</div>
<div id="alerts">{{ alerts|raw }}</div>

{% if back_url %}
<div class="block">
<a class="text-lg text-primary-500 hover:text-primary-700 font-semibold inline-flex items-center mb-2" href="{{ back_url }}">
{{ svg('back', 16, 'mr-1') }} Back
</a>
</div>
{% endif %}
{% if back_url %}
<div class="block">
<a class="text-lg text-primary-500 hover:text-primary-700 font-semibold inline-flex items-center mb-2" href="{{ back_url }}">
{{ svg('back', 16, 'mr-1') }} Back
</a>
</div>
{% endif %}

{{ dashboard|raw }}
</div>
</div>
{{ dashboard|raw }}
</main>
<script src="assets/js/scripts.js?v={{ version }}"></script>
</body>
</html>

0 comments on commit fe3b4ac

Please sign in to comment.