Skip to content

Commit

Permalink
simplify manual-header
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakeii committed Jan 3, 2024
1 parent 784c067 commit 398f321
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/templates/components/ManualHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import '$templates/components/fonts/SansBold.css';
import '$templates/components/colours/tones.css';
import type { Tone } from '$lib/types/tones';
import ToneLogo from './ToneLogo.svelte';
export let buttonUrl: string;
export let buttonText: string;
Expand All @@ -16,7 +17,7 @@

<header data-tone={tone}>
<div class="logo">
<slot name="logo" class="logo" />
<ToneLogo {tone} />
</div>

<div class="banner-description-container">
Expand Down
7 changes: 1 addition & 6 deletions src/templates/csr/events-multiple/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@
buttonUrl={HeaderButtonUrl}
tone={Tone}
>
<svelte:fragment slot="logo">
<ToneLogo tone={Tone} />
</svelte:fragment>
<svelte:fragment slot="description">
{@html BannerDescription}
</svelte:fragment>
{@html BannerDescription}
</ManualHeader>
<div class="cards-container">
{#each events as event}
Expand Down
5 changes: 1 addition & 4 deletions src/templates/csr/manual-multiple/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@

<aside bind:clientHeight={height}>
<ManualHeader buttonText={ViewAll} buttonUrl={TitleURL} tone={Tone}>
<ToneLogo tone={Tone} slot="logo" />
<svelte:fragment slot="description">
{@html Explainer}
</svelte:fragment>
{@html Explainer}
</ManualHeader>
<div class="cards-container" class:is-prominent={isProminent}>
{#each offers as offer, i}
Expand Down

0 comments on commit 398f321

Please sign in to comment.