tecitheme 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,19 +3,21 @@
|
|
|
3
3
|
export let data;
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<section class="w-full mx-auto flex flex-col md:flex-row items-center">
|
|
6
|
+
<section class="w-full mx-auto flex flex-col md:flex-row items-center justify-center">
|
|
7
7
|
{#if data.video}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
<div class="w-full max-w-xl {data.position === 'right' ? 'mb-4 md:mb-0' : 'mb-0'}">
|
|
9
|
+
<YT v={data.video} />
|
|
10
|
+
</div>
|
|
11
11
|
{:else if data.image}
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
<div class="block w-full max-w-xl mb-4 md:mb-0">
|
|
13
|
+
<figure>
|
|
14
|
+
<a href={data.image}>
|
|
14
15
|
<img class="aspect-video object-cover" src={data.image} alt={data.name}/>
|
|
15
|
-
</
|
|
16
|
-
</
|
|
16
|
+
</a>
|
|
17
|
+
</figure>
|
|
18
|
+
</div>
|
|
17
19
|
{/if}
|
|
18
|
-
<div class="flex flex-col justify-center {data.position === 'right' ? 'md:order-last md:ml-8' : 'md:order-first md:mr-8'}">
|
|
20
|
+
<div class="w-full max-w-xl flex flex-col justify-center {data.position === 'right' ? 'md:order-last md:ml-8' : 'md:order-first md:mr-8'}">
|
|
19
21
|
<div class="w-full max-w-3xl">
|
|
20
22
|
<h2 class="text-lg font-bold pb-4">{data.name}</h2>
|
|
21
23
|
<span class="prose">{@html data.text}</span>
|