fix(routes): more ui tweaks

This commit is contained in:
Kaname 2022-09-10 01:54:59 +00:00
parent d7e72519ef
commit 4040b334f5
13 changed files with 15 additions and 18 deletions

View File

@ -307,9 +307,7 @@
</div>
</div>
<main>
<div class={$appSession.userId ? 'lg:pl-16' : null}>
<slot />
</div>
<slot />
</main>
</div>
<div class="drawer-side">

View File

@ -191,7 +191,7 @@
</script>
<nav
class="header"
class="header p-5 pl-0 lg:p-0 lg:pl-20"
>
<div class="hidden items-center space-x-2 p-5 px-6 font-bold lg:flex">
<div class="flex flex-col">

View File

@ -44,7 +44,7 @@
}
</script>
<nav class="header">
<nav class="header p-5 pl-0 lg:p-0 lg:pl-20">
<h1 class="mr-4 text-2xl font-bold">{$t('index.applications')}</h1>
{#if $appSession.isAdmin}
<button on:click={newApplication} class="btn btn-square btn-sm bg-applications">

View File

@ -150,7 +150,7 @@
</script>
{#if id !== 'new'}
<nav class="header">
<nav class="header p-5 pl-0 lg:p-0 lg:pl-20 justify-center lg:justify-between">
<div class="hidden items-center space-x-2 p-5 px-6 font-bold lg:flex">
<div class="flex flex-col">
<div class="md:max-w-64 truncate text-base tracking-tight md:text-2xl lg:block">

View File

@ -42,7 +42,7 @@
});
</script>
<nav class="header">
<nav class="header p-5 pl-0 lg:p-0 lg:pl-20">
<h1 class="mr-4 text-2xl font-bold">{$t('index.databases')}</h1>
{#if $appSession.isAdmin}
<button on:click={newDatabase} class="btn btn-square btn-sm bg-databases">

View File

@ -36,7 +36,7 @@
});
</script>
<nav class="header">
<nav class="header p-5 pl-0 lg:p-0 lg:pl-20">
<h1 class="mr-4 text-2xl font-bold">{$t('index.destinations')}</h1>
{#if $appSession.isAdmin}
<a href="/destinations/new" class="btn btn-square btn-sm bg-destinations">

View File

@ -106,7 +106,7 @@
}
</script>
<nav class="header">
<nav class="header p-5 pl-0 lg:p-0 lg:pl-20">
<h1 class="mr-4 text-2xl tracking-tight font-bold">Identity and Access Management</h1>
<button on:click={newTeam} class="btn btn-square btn-sm bg-iam">
<svg

View File

@ -275,15 +275,13 @@
}
</script>
<nav
class="header p-5"
>
<nav class="header">
<h1 class="mr-4 text-2xl font-bold">{$t('index.dashboard')}</h1>
{#if $appSession.isAdmin && (applications.length !== 0 || destinations.length !== 0 || databases.length !== 0 || services.length !== 0 || gitSources.length !== 0 || destinations.length !== 0)}
<NewResource />
{/if}
</nav>
<div class="container lg:mx-auto lg:p-0 px-8 lg:pt-24">
<div class="container lg:mx-auto lg:p-0 px-8 lg:pt-24 pt-5">
<!-- {#if $appSession.teamId === '0'}
<Usage />
{/if} -->

View File

@ -29,7 +29,7 @@
}
</script>
<div class="header p-5">
<div class="header p-5 pl-0 lg:p-0 lg:pl-20">
<h1 class="text-2xl font-bold">Servers</h1>
</div>
<div class="container lg:mx-auto lg:p-0 px-8 p-5 lg:pt-20">

View File

@ -156,7 +156,7 @@
});
</script>
<nav class="header">
<nav class="header p-5 pl-0 lg:p-0 lg:pl-20">
<div class="hidden items-center space-x-2 p-5 px-6 font-bold lg:flex">
<div class="flex flex-col">
<div class="md:max-w-64 truncate text-base tracking-tight md:text-2xl lg:block">

View File

@ -43,7 +43,7 @@
});
</script>
<nav class="header">
<nav class="header p-5 pl-0 lg:p-0 lg:pl-20">
<h1 class="mr-4 text-2xl font-bold">{$t('index.services')}</h1>
<button on:click={newService} class="btn btn-square btn-sm bg-services">
<svg

View File

@ -36,7 +36,7 @@
});
</script>
<nav class="header">
<nav class="header p-5 pl-0 lg:p-0 lg:pl-20">
<h1 class="mr-4 text-2xl font-bold">{$t('index.git_sources')}</h1>
{#if $appSession.isAdmin}
<a href="/sources/new" class="btn btn-square btn-sm bg-sources">

View File

@ -202,7 +202,8 @@ input {
}
.header {
@apply flex flex-row px-4 justify-between items-center lg:fixed w-full z-10;
@apply flex flex-row px-4 justify-between items-center lg:fixed p-5 pl-20 z-10;
background-color: rgba(31, 30, 30, 0.6);
backdrop-filter: blur(20px);
width: 100%;
}