libreria-astro-lefebvre 0.0.26 → 0.0.27

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libreria-astro-lefebvre",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
5
  "author": "Equipo web desarrollo Lefebvre",
6
6
  "type": "module",
@@ -2,6 +2,7 @@
2
2
 
3
3
  const {
4
4
  title,
5
+ h1Subtitle,
5
6
  description = "",
6
7
  tipo = "",
7
8
  descriptionWidth = "1/3", // 1/3 3/5 full
@@ -28,8 +29,16 @@ const structuredData = `<script type="application/ld+json">
28
29
  ---
29
30
 
30
31
  <div class={`w-full md:w-3/5 max-w-auto md:w-full flex ${flexJustify === 'justify-center' ? 'justify-center' : 'justify-start'} flex-col px-4`}>
32
+ {h1Subtitle && h1Subtitle.trim() !== "" && (
33
+ tipo === "h1" ? <h2 class="font-poppins text-[#262626] text-[36px] md:text-[56px] font-normal text-center leading-[44px] md:leading-[64px] px-6 md:mb-[48px]" set:html={h1Subtitle}></h2>
34
+ : tipo === "h1-home" ? <h2 class="font-poppins text-[#262626] text-[36px] md:text-[56px] font-normal text-center leading-[44px] md:leading-[64px] mb-[0px] mt-[32px] md:mt-[80px]" set:html={h1Subtitle}></h2>
35
+ : tipo === "h1-40" ? <h2 class="font-poppins text-[#262626] text-[40px] font-normal text-center leading-[48px] mb-[0] md:mb-[32px]" set:html={h1Subtitle}></h2>
36
+ : null
37
+ )}
31
38
  {
32
- tipo === "h1" ? <h1 class="font-poppins text-[#262626] text-[36px] md:text-[56px] font-normal text-center leading-[44px] md:leading-[64px] px-6 md:my-[48px]" set:html={title}></h1>
39
+ h1Subtitle && h1Subtitle.trim() !== ""
40
+ ? <h1 class="font-poppins text-[#262626] text-[20px] md:text-[24px] font-normal text-center leading-[24px] my-[32px] md:mb-[32px]" set:html={title}></h1>
41
+ : tipo === "h1" ? <h1 class="font-poppins text-[#262626] text-[36px] md:text-[56px] font-normal text-center leading-[44px] md:leading-[64px] px-6 md:my-[48px]" set:html={title}></h1>
33
42
  : tipo === "h1-home" ? <h1 class="font-poppins text-[#262626] text-[36px] md:text-[56px] font-normal text-center leading-[44px] md:leading-[64px] mb-[0] md:mb-[64px] mt-[32px] md:mt-[80px]" set:html={title}></h1>
34
43
  : tipo === "h1-40" ? <h1 class="font-poppins text-[#262626] text-[40px] font-normal text-center leading-[48px] mb-[0] md:mb-[32px]" set:html={title}></h1>
35
44
  : tipo === "h2" ? <h2 class="font-poppins text-[#262626] text-[36px] md:text-[40px] font-normal text-center leading-[48px] my-[32px] md:mb-[32px]" set:html={title}></h2>
@@ -37,7 +46,7 @@ const structuredData = `<script type="application/ld+json">
37
46
  : tipo === "h3" ? <h3 class="font-poppins text-[#262626] text-[24px] font-semibold text-center leading-[32px] mb-[8px]" set:html={title}></h3>
38
47
  : tipo === "h3-mb32" ? <h3 class="font-poppins text-[#262626] text-[32px] font-normal text-left leading-[40px] mb-[32px]" set:html={title}></h3>
39
48
  : tipo === "h4" ? <h4 class="font-poppins text-[#262626] text-center" set:html={title}></h4>
40
- : tipo === "h5" ? <h5 class="fontpoppins text-[#262626] text-center" set:html={title}></h5>
49
+ : tipo === "h5" ? <h5 class="font-poppins text-[#262626] text-center" set:html={title}></h5>
41
50
  : tipo === "h6" ? <h6 class="font-poppins text-[#262626] text-center" set:html={title}></h6>
42
51
  : <p>{title}</p>
43
52
  }