1
1
use leptos:: * ;
2
2
3
- use crate :: components:: header:: Header ;
4
3
use rand:: seq:: SliceRandom ;
5
4
6
5
#[ component]
@@ -27,39 +26,36 @@ pub fn Hero() -> impl IntoView {
27
26
} ;
28
27
29
28
view ! {
30
- <section class="w-full flex flex-col" >
31
- <Header />
32
- <div class="flex items-center justify-center py-14 lg:py-32 px-4" >
33
- <div class="grid items-center gap-x-20 gap-y-10 lg:grid-cols-2 w-full" >
34
- <figure class="w-80 mx-auto lg:w-full" >
35
- <img src="./rhq3ezvso9611-min.png" width="500" class="ml-auto" />
36
- </figure>
37
- <div class="" >
38
- <h1 class="flex flex-col mb-4 gap-y-2" >
39
- <span class="font-work-sans text-4xl font-light text-center lg:text-left" >
40
- "Bienvenidos a"
41
- </span>
42
- <span class="font-alfa-slab text-orange-500 text-6xl sm:text-7xl lg:text-8xl text-center lg:text-left" >
43
- "Rust Lang"
44
- </span>
45
- <span class="font-work-sans text-5xl font-semibold text-center lg:text-left" >
46
- "En Español"
47
- </span>
48
- </h1>
49
- <div class="flex items-center justify-center lg:justify-start group" >
50
- <button
51
- class="bg-orange-300 border-4 border-orange-400 group-hover:border-orange-500 flex justify-center items-center rounded-full w-12 h-12 flex items-center justify-center text-xl relative z-10"
52
- on: click=click_handler
53
- >
54
- <span class="motion-safe:animate-spin" >"🎲" </span>
55
- </button>
56
- <p class="font-work-sans font-light lg:text-left bg-orange-400 h-12 pr-4 pl-10 flex items-center -ml-6 flex-1 rounded-r-full group-hover:bg-orange-500 max-w-lg" >
57
- { slogan}
58
- </p>
59
- </div>
29
+ <div class="flex items-center justify-center py-14 lg:py-32 px-4" >
30
+ <div class="grid items-center gap-x-20 gap-y-10 lg:grid-cols-2 w-full" >
31
+ <figure class="w-80 mx-auto lg:w-full" >
32
+ <img src="./rhq3ezvso9611-min.png" width="500" class="ml-auto" />
33
+ </figure>
34
+ <div class="" >
35
+ <h1 class="flex flex-col mb-4 gap-y-2" >
36
+ <span class="font-work-sans text-4xl font-light text-center lg:text-left" >
37
+ "Bienvenidos a"
38
+ </span>
39
+ <span class="font-alfa-slab text-orange-500 text-6xl sm:text-7xl lg:text-8xl text-center lg:text-left" >
40
+ "Rust Lang"
41
+ </span>
42
+ <span class="font-work-sans text-5xl font-semibold text-center lg:text-left" >
43
+ "En Español"
44
+ </span>
45
+ </h1>
46
+ <div class="flex items-center justify-center lg:justify-start group" >
47
+ <button
48
+ class="bg-orange-300 border-4 border-orange-400 group-hover:border-orange-500 flex justify-center items-center rounded-full w-12 h-12 flex items-center justify-center text-xl relative z-10"
49
+ on: click=click_handler
50
+ >
51
+ <span class="motion-safe:animate-spin" >"🎲" </span>
52
+ </button>
53
+ <p class="font-work-sans font-light lg:text-left bg-orange-400 h-12 pr-4 pl-10 flex items-center -ml-6 flex-1 rounded-r-full group-hover:bg-orange-500 max-w-lg" >
54
+ { slogan}
55
+ </p>
60
56
</div>
61
57
</div>
62
58
</div>
63
- </section >
59
+ </div >
64
60
}
65
61
}
0 commit comments