feat(styles): make header css component
This commit is contained in:
parent
341cde2781
commit
56f24fe317
@ -191,7 +191,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav
|
<nav
|
||||||
class="flex flex-row px-3 justify-center lg:justify-between items-center bg-neutral-focus lg:fixed w-full z-10 lg:-ml-16 lg:pl-16"
|
class="header"
|
||||||
>
|
>
|
||||||
<div class="hidden items-center space-x-2 p-5 px-6 font-bold lg:flex">
|
<div class="hidden items-center space-x-2 p-5 px-6 font-bold lg:flex">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
@ -150,9 +150,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if id !== 'new'}
|
{#if id !== 'new'}
|
||||||
<nav
|
<nav class="header">
|
||||||
class="flex flex-row px-3 justify-center lg:justify-between items-center bg-neutral-focus lg:fixed w-full z-10 lg:-ml-16 lg:pl-16"
|
|
||||||
>
|
|
||||||
<div class="hidden items-center space-x-2 p-5 px-6 font-bold lg:flex">
|
<div class="hidden items-center space-x-2 p-5 px-6 font-bold lg:flex">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="md:max-w-64 truncate text-base tracking-tight md:text-2xl lg:block">
|
<div class="md:max-w-64 truncate text-base tracking-tight md:text-2xl lg:block">
|
||||||
|
@ -276,7 +276,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav
|
<nav
|
||||||
class="header" style="backdrop-filter: blur(20px);"
|
class="header p-5"
|
||||||
>
|
>
|
||||||
<h1 class="mr-4 text-2xl font-bold">{$t('index.dashboard')}</h1>
|
<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)}
|
{#if $appSession.isAdmin && (applications.length !== 0 || destinations.length !== 0 || databases.length !== 0 || services.length !== 0 || gitSources.length !== 0 || destinations.length !== 0)}
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
} from '$lib/store';
|
} from '$lib/store';
|
||||||
import { onDestroy, onMount } from 'svelte';
|
import { onDestroy, onMount } from 'svelte';
|
||||||
import Tooltip from '$lib/components/Tooltip.svelte';
|
import Tooltip from '$lib/components/Tooltip.svelte';
|
||||||
import ServiceLinks from './_ServiceLinks.svelte';
|
import ServiceLinks from './_ServiceLinks.svelte';
|
||||||
const { id } = $page.params;
|
const { id } = $page.params;
|
||||||
|
|
||||||
export let service: any;
|
export let service: any;
|
||||||
@ -156,9 +156,7 @@ import ServiceLinks from './_ServiceLinks.svelte';
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav
|
<nav class="header">
|
||||||
class="flex flex-row px-3 justify-center lg:justify-between items-center bg-neutral-focus lg:fixed w-full z-10 lg:-ml-16 lg:pl-16"
|
|
||||||
>
|
|
||||||
<div class="hidden items-center space-x-2 p-5 px-6 font-bold lg:flex">
|
<div class="hidden items-center space-x-2 p-5 px-6 font-bold lg:flex">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="md:max-w-64 truncate text-base tracking-tight md:text-2xl lg:block">
|
<div class="md:max-w-64 truncate text-base tracking-tight md:text-2xl lg:block">
|
||||||
|
@ -202,6 +202,7 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
@apply flex flex-row px-4 justify-between items-center lg:fixed w-full z-10 lg:-ml-16 lg:pl-20 p-5;
|
@apply flex flex-row px-4 justify-between items-center lg:fixed w-full z-10;
|
||||||
background-color: rgba(31, 30, 30, 0.6);
|
background-color: rgba(31, 30, 30, 0.6);
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user