fix: ui with headers

This commit is contained in:
Kaname 2022-09-10 17:23:55 +00:00
parent 1917091338
commit 9e3c14841a
13 changed files with 18 additions and 19 deletions

View File

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

View File

@ -190,9 +190,7 @@
});
</script>
<nav
class="header p-5 pl-0 lg:p-0 lg:pl-20"
>
<nav class="header">
<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">
@ -246,7 +244,9 @@
<Tooltip triggeredBy="#git">Open on Git</Tooltip>
{/if}
</div>
<div class="flex flex-row flex-wrap space-x-4 space-y-3 justify-center lg:justify-start py-2 lg:py-0">
<div
class="flex flex-row flex-wrap space-x-4 space-y-3 justify-center lg:justify-start py-2 lg:py-0"
>
{#if $location}
<a
id="open"

View File

@ -44,7 +44,7 @@
}
</script>
<nav class="header p-5 pl-0 lg:p-0 lg:pl-20">
<nav class="header">
<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 p-5 pl-0 lg:p-0 lg:pl-20 justify-center lg:justify-between">
<nav class="header 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 p-5 pl-0 lg:p-0 lg:pl-20">
<nav class="header">
<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 p-5 pl-0 lg:p-0 lg:pl-20">
<nav class="header">
<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 p-5 pl-0 lg:p-0 lg:pl-20">
<nav class="header">
<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,7 +275,7 @@
}
</script>
<nav class="header">
<nav class="header p-7">
<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 />

View File

@ -29,7 +29,7 @@
}
</script>
<div class="header p-5 pl-0 lg:p-0 lg:pl-20">
<div class="header">
<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 p-5 pl-0 lg:p-0 lg:pl-20">
<nav class="header">
<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 p-5 pl-0 lg:p-0 lg:pl-20">
<nav class="header">
<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 p-5 pl-0 lg:p-0 lg:pl-20">
<nav class="header">
<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,8 +202,5 @@ input {
}
.header {
@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%;
@apply flex flex-row px-4 justify-between items-center bg-neutral-focus z-10 w-full;
}