Skip to content

Commit a415b0c

Browse files
committed
revert: replace roadmap images with background
1 parent 5a0b800 commit a415b0c

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

Diff for: input.css

+10
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,13 @@
3333
.list-container {
3434
@apply min-w-80 md:min-w-[420px];
3535
}
36+
37+
.image-container img:not(:first-child) {
38+
@apply opacity-60
39+
}
40+
41+
.image-container {
42+
position: relative;
43+
width: 100%;
44+
height: auto;
45+
}

Diff for: src/components/aprende/roadmap.rs

+18-4
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,29 @@ 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="w-full h-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="image-container w-full max-w-60 xs:max-w-none mx-auto">
2929
<img
30-
src=format!("{}/roadmap.webp", assets_folder)
30+
src=format!("{}/roadmap.avif", assets_folder)
3131
alt="Roadmap"
3232
width="748"
3333
height="515"
3434
loading="eager"
35-
class="skew-y-2 -left-8 -top-5 z-30"
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"
3650
/>
3751
</div>
3852
</div>

0 commit comments

Comments
 (0)