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>
|
||||
|
||||
@@ -1,80 +1,88 @@
|
||||
.navigation-header {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.navigation-header {
|
||||
position: relative;
|
||||
height: 128px;
|
||||
width: 100%;
|
||||
padding-bottom: 120px;
|
||||
position: relative;
|
||||
height: 128px;
|
||||
width: 100%;
|
||||
padding-bottom: 120px;
|
||||
}
|
||||
|
||||
.navigation-header-items {
|
||||
gap: 48px;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
padding-top: 28px;
|
||||
padding-right: 96px;
|
||||
padding-left: 32px;
|
||||
gap: 48px;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
padding-top: 28px;
|
||||
padding-right: 96px;
|
||||
padding-left: 32px;
|
||||
}
|
||||
|
||||
.navigation-header-link {
|
||||
color: #000000;
|
||||
font-family: var(--navigation-header-font-family);
|
||||
text-align: left;
|
||||
font-size: var(--navigation-header-font-size);
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
color: #000000;
|
||||
font-family: var(--navigation-header-font-family);
|
||||
text-align: left;
|
||||
font-size: var(--navigation-header-font-size);
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.navigation-header-button {
|
||||
background: #000000;
|
||||
border-radius: 8px;
|
||||
padding: 14px 24px 14px 24px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
box-shadow: var(--button-shadow-box-shadow, 0px 1px 2px 0px rgba(0, 0, 0, 0.05));
|
||||
background: #000000;
|
||||
border-radius: 8px;
|
||||
padding: 14px 24px 14px 24px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
box-shadow: var(--button-shadow-box-shadow, 0px 1px 2px 0px rgba(0, 0, 0, 0.05));
|
||||
}
|
||||
|
||||
.navigation-header-button-text {
|
||||
@extend .navigation-header-link;
|
||||
color: var(--cpalettecomplimentary);
|
||||
text-decoration: none;
|
||||
@extend .navigation-header-link;
|
||||
color: var(--cpalettecomplimentary);
|
||||
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 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.flexrow-left {
|
||||
@extend .flexrow-right;
|
||||
justify-content: flex-start;
|
||||
@extend .flexrow-right;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
@media (max-width: 750px) {
|
||||
.navigation-header-items {
|
||||
display: none;
|
||||
}
|
||||
.navigation-header-items {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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