-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tag-var-1-nobg' of https://github.com/B2Bitcoin/B2Bitco…
…inBootik into tag-var-1-nobg
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
src/lib/components/TagWidget/TagWidgetVariation1noBG.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<script lang="ts"> | ||
import type { Tag } from '$lib/types/Tag'; | ||
import type { Picture } from '$lib/types/Picture'; | ||
import PictureComponent from '../Picture.svelte'; | ||
import VariationFourTemplateWidget from './TagWidgetVariation4.svelte'; | ||
let className = ''; | ||
export { className as class }; | ||
export let tag: Pick< | ||
Tag, | ||
'_id' | 'name' | 'title' | 'subtitle' | 'content' | 'shortContent' | 'cta' | ||
>; | ||
export let picture: Picture | undefined; | ||
export let avatar: Picture | undefined; | ||
</script> | ||
|
||
<div class="hidden sm:inline"> | ||
<div class="flex mt-12 mb-12"> | ||
<div class="mx-auto tagWidget flex rounded sm:gap-2 {className}"> | ||
<div class="flex flex-col text-end w-[50%] m-2"> | ||
<h2 class="text-6xl body-title pb-2 uppercase">{tag.title}</h2> | ||
<h2 class="text-md md:text-xl"> | ||
{tag.content} | ||
</h2> | ||
<div class="flex text-centern justify-between mt-auto"> | ||
{#each tag.cta as cta} | ||
<div class="btn tagWidget-cta text-xl text-center w-auto p-1"> | ||
<a class="tagWidget-hyperlink" href={cta.href}>{cta.label}</a> | ||
</div> | ||
{/each} | ||
</div> | ||
</div> | ||
|
||
<div class="flex w-[50%] mb-2"> | ||
<PictureComponent {picture} class="w-auto h-full object-cover" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<svelte:component | ||
this={VariationFourTemplateWidget} | ||
{tag} | ||
picture={avatar} | ||
class="{className} sm:hidden" | ||
/> |