Skip to content

Commit b687da0

Browse files
committed
perf: remove useless div @michael
1 parent 1f1e36d commit b687da0

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

src/components/hero.rs

+24-20
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,30 @@ pub fn Hero() -> impl IntoView {
1010
};
1111

1212
view! {
13-
<div class="flex items-center justify-center py-14 lg:py-32 px-4">
14-
<div class="grid items-center gap-x-20 gap-y-10 lg:grid-cols-2 w-full">
15-
<figure class="w-80 mx-auto lg:w-full">
16-
<img src=image_src alt="Rust Lang en Español" width="500" class="ml-auto"/>
17-
</figure>
18-
<div class="">
19-
<h1 class="flex flex-col mb-4 gap-y-2">
20-
<span class="font-work-sans text-4xl font-light text-center lg:text-left">
21-
"Bienvenidos a"
22-
</span>
23-
<span class="font-alfa-slab text-orange-500 text-6xl sm:text-7xl lg:text-8xl text-center lg:text-left">
24-
"Rust Lang"
25-
</span>
26-
<span class="font-work-sans text-5xl font-semibold text-center lg:text-left">
27-
"En Español"
28-
</span>
29-
</h1>
30-
<SloganButton/>
31-
</div>
13+
<section class="grid items-center py-14 lg:py-32 px-4 gap-x-20 gap-y-10 lg:grid-cols-2 w-full">
14+
<figure class="w-80 mx-auto lg:w-full">
15+
<img
16+
src=image_src
17+
alt="Rust Lang en Español"
18+
height="300"
19+
width="500"
20+
class="ml-auto"
21+
/>
22+
</figure>
23+
<div>
24+
<h1 class="flex flex-col mb-4 gap-y-2">
25+
<span class="font-work-sans text-4xl font-light text-center lg:text-left">
26+
"Bienvenidos a"
27+
</span>
28+
<span class="font-alfa-slab text-orange-500 text-6xl sm:text-7xl lg:text-8xl text-center lg:text-left">
29+
"Rust Lang"
30+
</span>
31+
<span class="font-work-sans text-5xl font-semibold text-center lg:text-left">
32+
"En Español"
33+
</span>
34+
</h1>
35+
<SloganButton/>
3236
</div>
33-
</div>
37+
</section>
3438
}
3539
}

0 commit comments

Comments
 (0)