mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
Updated header to include ESAFORM logo and link
This commit is contained in:
@@ -3,11 +3,14 @@
|
||||
import Button from "$lib/components/Button.svelte";
|
||||
import Link from "$lib/components/Link.svelte";
|
||||
|
||||
import { CDN } from "$lib/constants";
|
||||
|
||||
export let items_class = "";
|
||||
export let link_class = "";
|
||||
export let button_class = "";
|
||||
export let button_text_class = "";
|
||||
export let display_title = true;
|
||||
export let display_home = true;
|
||||
export let display_logo = true;
|
||||
|
||||
import { navigation } from "$lib/navigation";
|
||||
</script>
|
||||
@@ -15,6 +18,14 @@
|
||||
<div class={$$props.class}>
|
||||
<div class="navigation-header">
|
||||
<div class="flexrow-right navigation-header-items {items_class}">
|
||||
{#if display_home}
|
||||
<Link
|
||||
class="navigation-header-link {link_class}"
|
||||
text="Home"
|
||||
hotkey="d"
|
||||
redirectFunc={navigation.toHome}
|
||||
/>
|
||||
{/if}
|
||||
<Link
|
||||
class="navigation-header-link {link_class}"
|
||||
text="Data Repository"
|
||||
@@ -35,14 +46,15 @@
|
||||
redirectFunc={navigation.toContact}
|
||||
/>
|
||||
</div>
|
||||
{#if display_title}
|
||||
<div class="flexrow-left navigation-header-items {items_class}">
|
||||
<Link
|
||||
class="navigation-header-site-name"
|
||||
text="AM-D-Model.eu"
|
||||
hotkey="a"
|
||||
redirectFunc={navigation.toHome}
|
||||
{#if display_logo}
|
||||
<div class="flexrow-left navigation-header-logo-link {items_class}">
|
||||
<a href="https://esaform.org/">
|
||||
<img
|
||||
class="navigation-header-logo"
|
||||
src="{CDN}/ESAFORM_logo.webp"
|
||||
alt="ESAFORM Logo"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -52,13 +52,21 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.navigation-header-site-name {
|
||||
color: #000000;
|
||||
text-align: left;
|
||||
font-family: "Assistant", sans-serif;
|
||||
font-size: 24px;
|
||||
position: relative;
|
||||
padding: 8px;
|
||||
.navigation-header-logo-link {
|
||||
@extend .navigation-header-items;
|
||||
min-width: 128px;
|
||||
}
|
||||
|
||||
.navigation-header-logo {
|
||||
height: 128px;
|
||||
width: auto;
|
||||
max-width: 128px;
|
||||
}
|
||||
|
||||
.navigation-header-logo {
|
||||
height: 128px;
|
||||
width: auto;
|
||||
padding-left: 28px;
|
||||
}
|
||||
|
||||
.flexrow-right {
|
||||
|
||||
@@ -39,7 +39,8 @@
|
||||
<div class="landing-zone">
|
||||
<NavigationHeader
|
||||
class="splash-navigation-header"
|
||||
display_title={false}
|
||||
display_home={false}
|
||||
display_logo={false}
|
||||
/>
|
||||
<Splash />
|
||||
</div>
|
||||
|
||||
BIN
static/ESAFORM_logo.webp
Normal file
BIN
static/ESAFORM_logo.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user