tecitheme 0.15.0 → 0.15.1

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.
@@ -5,20 +5,29 @@
5
5
  </script>
6
6
 
7
7
  <section {id} class="bg-gray-50">
8
- <div class="mx-auto max-w-7xl p-6 lg:p-8">
9
- <div class="mx-auto max-w-4xl text-center">
10
- <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">{@html data.heading}</h2>
11
- {#if data.subheading}
12
- <p class="mt-3 text-xl text-gray-500 sm:mt-4">{@html data.subheading}</p>
13
- {/if}
8
+ <!-- Headings -->
9
+ {#if data.heading || data.subheading}
10
+ <div class="mx-auto max-w-7xl p-6 lg:p-8">
11
+ <div class="mx-auto max-w-4xl text-center">
12
+ {#if data.heading}
13
+ <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">{@html data.heading}</h2>
14
+ {/if}
15
+ {#if data.subheading}
16
+ <p class="mt-3 text-xl text-gray-500 sm:mt-4">{@html data.subheading}</p>
17
+ {/if}
18
+ </div>
14
19
  </div>
15
- </div>
20
+ {/if}
21
+
22
+ <!-- Stats & Image -->
16
23
  <div class="bg-white">
17
24
  <div class="relative">
18
25
  <div class="absolute inset-0 bg-gray-50"></div>
19
- <div class="relative mx-auto max-w-7xl px-6 lg:px-8">
20
- <div class="mx-auto max-w-4xl">
21
- <dl class="bg-white shadow-lg sm:grid sm:grid-cols-3">
26
+
27
+ <!-- Stats -->
28
+ <div class="relative mx-auto max-w-7xl px-6 lg:px-8 ">
29
+ <div class="mx-auto max-w-4xl ">
30
+ <dl class="bg-white shadow ring-1 ring-black/5 sm:grid sm:grid-cols-3">
22
31
  {#each data.stats as stat, i}
23
32
  <div id="stat-{i}" class="flex flex-col border-b border-gray-100 p-6 text-center sm:border-0 sm:border-r sm:border-l">
24
33
  <dt class="order-2 mt-2 text-lg font-medium leading-6 text-gray-500">{stat.label}</dt>
@@ -27,9 +36,13 @@
27
36
  {/each}
28
37
  </dl>
29
38
  </div>
30
- <figure>
31
- <img class="w-full" alt="{(data.imageAltText?data.imageAltText:data.heading)}" src="https://files.thunderheadeng.com/www/images/{data.image}?w=1152&fit=crop&auto=compress&auto=format">
32
- </figure>
39
+
40
+ <!-- Image -->
41
+ {#if data.image}
42
+ <figure>
43
+ <img class="w-full" alt="{(data.imageAltText?data.imageAltText:data.heading)}" src="https://files.thunderheadeng.com/www/images/{data.image}?w=1152&fit=crop&auto=compress&auto=format">
44
+ </figure>
45
+ {/if}
33
46
  </div>
34
47
  </div>
35
48
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "vite dev",