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