Skip to content

Commit 5a0b800

Browse files
committed
feat: replace roadmap images by transparent and webp
1 parent 0dfab3e commit 5a0b800

File tree

3 files changed

+7
-31
lines changed

3 files changed

+7
-31
lines changed

assets/roadmap.webp

74.1 KB
Binary file not shown.

input.css

+1-11
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
filter: drop-shadow(5px 5px 0px #ffffff);
1919
}
2020

21-
.image-container img:not(:first-child) {
22-
@apply opacity-60
23-
}
24-
25-
.image-container {
26-
position: relative;
27-
width: 100%;
28-
height: auto;
29-
}
30-
3121
.group:hover > span.badge-container {
3222
@apply first:min-w-28 first:min-h-6 items-center justify-center transition-all transform duration-1000;
3323
}
@@ -42,4 +32,4 @@
4232

4333
.list-container {
4434
@apply min-w-80 md:min-w-[420px];
45-
}
35+
}

src/components/aprende/roadmap.rs

+6-20
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn Roadmap(
1313

1414
view! {
1515
<section class="bg-orange-200 py-20 flex flex-col-reverse md:flex-row items-center justify-center container mx-auto gap-10">
16-
<div class="container px-10 lg:mx-auto flex flex-wrap text-balance gap-5 lg:w-1/2">
16+
<div class="container px-10 lg:mx-auto flex flex-wrap text-balance gap-5 lg:w-1/2">
1717
<h1 class="font-alfa-slab text-3xl sm:text-4xl lg:text-5xl text-center lg:text-left">
1818
"Roadmap de aprendizaje del lenguaje"
1919
</h1>
@@ -24,32 +24,18 @@ pub fn Roadmap(
2424
"Ir al Roadmap"
2525
</ButtonLink>
2626
</div>
27-
<div class="w-full lg:w-1/2 min-h-72 xs:min-h-[420px] lg:min-h-[450px] xs:mb-12">
28-
<div class="image-container w-full max-w-60 xs:max-w-none mx-auto">
27+
<div class="w-full lg:w-1/2 min-h-72 xs:min-h-[420px] lg:min-h-[450px] xs:mb-12">
28+
<div class="w-full h-full max-w-60 xs:max-w-none mx-auto">
2929
<img
30-
src=format!("{}/roadmap.avif", assets_folder)
30+
src=format!("{}/roadmap.webp", assets_folder)
3131
alt="Roadmap"
3232
width="748"
3333
height="515"
3434
loading="eager"
35-
class="skew-y-2 absolute -left-8 -top-5 z-30"
36-
/>
37-
<img
38-
src=format!("{}/roadmap2.avif", assets_folder)
39-
alt="Roadmap"
40-
width="748"
41-
height="515"
42-
class="skew-y-2 absolute z-0 left-0 top-0"
43-
/>
44-
<img
45-
src=format!("{}/roadmap3.avif", assets_folder)
46-
alt="Roadmap"
47-
width="748"
48-
height="515"
49-
class="skew-y-2 absolute z-0 left-10 top-10"
35+
class="skew-y-2 -left-8 -top-5 z-30"
5036
/>
5137
</div>
5238
</div>
5339
</section>
5440
}
55-
}
41+
}

0 commit comments

Comments
 (0)