tecitheme 0.15.12 → 0.15.14

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.
@@ -15,7 +15,7 @@
15
15
  text,
16
16
  color,
17
17
  image,
18
- button, //Follows format of Button.svelte
18
+ buttons, //Follows format of Button.svelte
19
19
  icon,
20
20
  testimonial,
21
21
  textPosition,
@@ -76,9 +76,13 @@
76
76
 
77
77
  <p class="mt-4 text-lg text-gray-500">{text}</p>
78
78
 
79
- {#if button}
80
- <div class="mt-6">
81
- <Button url={button.url} text={button.text} color={color} justify={button.justify} fullwidth={button.fullwidth}/>
79
+ {#if buttons}
80
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mt-6">
81
+ {#each buttons as button, index}
82
+ <a href={button.url} class="btn inline-block {button.classes} {getColorStyles('button', button.color ? button.color : color)} {buttons.length % 2 == 1 && index == buttons.length - 1 ? "col-span-2 mx-auto" : ""}" rel="external" class:w-full={button.fullwidth}>
83
+ {button.text}
84
+ </a>
85
+ {/each}
82
86
  </div>
83
87
  {/if}
84
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.15.12",
3
+ "version": "0.15.14",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "vite dev",