libreria-astro-lefebvre 0.1.39 → 0.1.41

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.1.39",
3
+ "version": "0.1.41",
4
4
  "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
5
  "author": "Equipo web desarrollo Lefebvre",
6
6
  "type": "module",
@@ -36,20 +36,20 @@ const structuredData = `<script type="application/ld+json">
36
36
 
37
37
  <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 w-full px-8 md:px-0 md:pb-12">
38
38
  {items.map((item) => (
39
- <a href={item.link || '#'} class="w-full flex flex-col cursor-pointer px-0">
40
- <article class="w-full h-full flex flex-col rounded-lg border border-gray-200 items-center shadow-article hover:bg-gradient-to-r from-[#001978] via-[#2134F1] to-[#F81BBD] transition-all duration-300 p-[1px]">
39
+ <div class="w-full flex flex-col px-0">
40
+ <article class="relative w-full h-full flex flex-col rounded-lg border border-gray-200 items-center shadow-article hover:bg-gradient-to-r from-[#001978] via-[#2134F1] to-[#F81BBD] transition-all duration-300 p-[1px]">
41
41
  <div class="bg-white mt-[1px] rounded-tl-[7px] rounded-tr-[7px] w-full h-full">
42
42
  <div class="p-6 flex-grow flex flex-col">
43
43
  <div class="mt-2 flex items-center gap-2 flex-grow">
44
44
  <div class="flex flex-col text-[#262626] h-full">
45
- <h3 class="font-poppins text-2xl font-semibold leading-8 text-[#262626] text-center overflow-hidden text-ellipsis mb-2">{item.title}</h3>
45
+ <a href={item.link || '#'} class="cursor-pointer no-underline after:absolute after:inset-0 after:content-['']"><h3 class="font-poppins text-2xl font-semibold leading-8 text-[#262626] text-center overflow-hidden text-ellipsis mb-2">{item.title}</h3></a>
46
46
  </div>
47
47
  </div>
48
48
  </div>
49
49
  </div>
50
50
  <div class="bg-red-100 h-3"></div>
51
51
  </article>
52
- </a>
52
+ </div>
53
53
  ))}
54
54
  </div>
55
55
 
@@ -16,7 +16,7 @@ const imageUrl = extractImageUrl(image);
16
16
  ---
17
17
 
18
18
  <div class="w-full flex flex-col px-0">
19
- <article class="w-full md:max-w-[400px] h-full flex flex-col rounded-lg border border-gray-200 items-center shadow-article hover:bg-gradient-to-r from-[#001978] via-[#2134F1] to-[#F81BBD] transition-all duration-300 p-px">
19
+ <article class="relative w-full md:max-w-[400px] h-full flex flex-col rounded-lg border border-gray-200 items-center shadow-article hover:bg-gradient-to-r from-[#001978] via-[#2134F1] to-[#F81BBD] transition-all duration-300 p-px">
20
20
  <div class="w-full bg-white mt-px rounded-tl-[7px] rounded-tr-[7px] h-full">
21
21
  <div class="w-full">
22
22
  <img class="cursor-pointer rounded-tr-lg rounded-tl-lg mx-auto w-full" src={imageUrl} alt={altImage} width="400" height="225" loading="lazy" />
@@ -25,7 +25,7 @@ const imageUrl = extractImageUrl(image);
25
25
  {tag && tag !== '' && <Titulo_2025_Santorini description={tag} />}
26
26
  <div class="mt-2 flex flex-col items-start gap-2 flex-grow">
27
27
  <div class="flex flex-col text-[#262626] h-full">
28
- <a href={link} class="cursor-pointer no-underline"><h3 class="font-poppins text-xl font-semibold text-[#262626] overflow-hidden text-ellipsis mb-2">{title}</h3></a>
28
+ <a href={link} class="cursor-pointer no-underline after:absolute after:inset-0 after:content-['']"><h3 class="font-poppins text-xl font-semibold text-[#262626] overflow-hidden text-ellipsis mb-2">{title}</h3></a>
29
29
  <p class="font-inter text-base font-normal text-[#363942] overflow-hidden text-ellipsis mb-2">{description}</p>
30
30
  {author && author !== '' &&
31
31
  <p class="font-inter text-base font-normal mt-6 text-[#363942] text-left"><span class="text-[#363942]">Por {author}</span></p>