|
| 1 | +use leptos::prelude::*; |
| 2 | +use rustlanges_components::{ |
| 3 | + avatar::Avatar, |
| 4 | + button::{Button, Variant as ButtonVariant}, |
| 5 | + card::Card, |
| 6 | + icons::Youtube, |
| 7 | +}; |
| 8 | + |
| 9 | +pub fn Channels() -> impl IntoView { |
| 10 | + view! { |
| 11 | + <section class="bg-light dark:bg-dark p-4 lg:p-20 w-full"> |
| 12 | + <div class="container xl:max-w-7xl lg:px-36 mx-auto"> |
| 13 | + <h2 class="text-h2 text-center mb-8 mt-16">"Canales Recomendados"</h2> |
| 14 | + </div> |
| 15 | + |
| 16 | + <div class="flex flex-row justify-center items-center max-w-full w-full"> |
| 17 | + <div class="inline-flex flex-row items-center justify-center gap-8 not-md:overflow-x-auto p-4 md:flex-wrap w-full"> |
| 18 | + <Card class="w-md"> |
| 19 | + <div class="flex flex-col gap-4 justify-between h-full"> |
| 20 | + <div class="flex flex-row items-center gap-4"> |
| 21 | + <Avatar |
| 22 | + url="https://avatars.githubusercontent.com/u/136520331?u=7353ba372f09091049692d6e95f5a8cd8a42565f&v=4" |
| 23 | + size=52 |
| 24 | + /> |
| 25 | + <div> |
| 26 | + <h2 class="text-heading-3 mt-2 mb-2">"Nombre canal"</h2> |
| 27 | + <h3 class="text-paragraph-3 mt-2 mb-2">"Subtítulo"</h3> |
| 28 | + </div> |
| 29 | + </div> |
| 30 | + <div> |
| 31 | + <p class="text-paragraph-3 mb-4"> |
| 32 | + "Breve descripción del canal o recurso contando qué muestra o para qué sirve." |
| 33 | + </p> |
| 34 | + </div> |
| 35 | + <div class="flex items-end justify-end w-full gap-2 flex-wrap"> |
| 36 | + <Button |
| 37 | + variant=ButtonVariant::Icon |
| 38 | + on_click=|_| {} |
| 39 | + icon=view! { <Youtube /> }.into_any() |
| 40 | + /> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + </Card> |
| 44 | + |
| 45 | + <Card class="w-md"> |
| 46 | + <div class="flex flex-col gap-4 justify-between h-full"> |
| 47 | + <div class="flex flex-row items-center gap-4"> |
| 48 | + <Avatar |
| 49 | + url="https://avatars.githubusercontent.com/u/136520331?u=7353ba372f09091049692d6e95f5a8cd8a42565f&v=4" |
| 50 | + size=52 |
| 51 | + /> |
| 52 | + <div> |
| 53 | + <h2 class="text-heading-3 mt-2 mb-2">"Nombre canal"</h2> |
| 54 | + <h3 class="text-paragraph-3 mt-2 mb-2">"Subtítulo"</h3> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + <div> |
| 58 | + <p class="text-paragraph-3 mb-4"> |
| 59 | + "Breve descripción del canal o recurso contando qué muestra o para qué sirve." |
| 60 | + </p> |
| 61 | + </div> |
| 62 | + <div class="flex items-end justify-end w-full gap-2 flex-wrap"> |
| 63 | + <Button |
| 64 | + variant=ButtonVariant::Icon |
| 65 | + on_click=|_| {} |
| 66 | + icon=view! { <Youtube /> }.into_any() |
| 67 | + /> |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + </Card> |
| 71 | + |
| 72 | + <Card class="w-md"> |
| 73 | + <div class="flex flex-col gap-4 justify-between h-full"> |
| 74 | + <div class="flex flex-row items-center gap-4"> |
| 75 | + <Avatar |
| 76 | + url="https://avatars.githubusercontent.com/u/136520331?u=7353ba372f09091049692d6e95f5a8cd8a42565f&v=4" |
| 77 | + size=52 |
| 78 | + /> |
| 79 | + <div> |
| 80 | + <h2 class="text-heading-3 mt-2 mb-2">"Nombre canal"</h2> |
| 81 | + <h3 class="text-paragraph-3 mt-2 mb-2">"Subtítulo"</h3> |
| 82 | + </div> |
| 83 | + </div> |
| 84 | + <div> |
| 85 | + <p class="text-paragraph-3 mb-4"> |
| 86 | + "Breve descripción del canal o recurso contando qué muestra o para qué sirve." |
| 87 | + </p> |
| 88 | + </div> |
| 89 | + <div class="flex items-end justify-end w-full gap-2 flex-wrap"> |
| 90 | + <Button |
| 91 | + variant=ButtonVariant::Icon |
| 92 | + on_click=|_| {} |
| 93 | + icon=view! { <Youtube /> }.into_any() |
| 94 | + /> |
| 95 | + </div> |
| 96 | + </div> |
| 97 | + </Card> |
| 98 | + |
| 99 | + <Card class="w-md"> |
| 100 | + <div class="flex flex-col gap-4 justify-between h-full"> |
| 101 | + <div class="flex flex-row items-center gap-4"> |
| 102 | + <Avatar |
| 103 | + url="https://avatars.githubusercontent.com/u/136520331?u=7353ba372f09091049692d6e95f5a8cd8a42565f&v=4" |
| 104 | + size=52 |
| 105 | + /> |
| 106 | + <div> |
| 107 | + <h2 class="text-heading-3 mt-2 mb-2">"Nombre canal"</h2> |
| 108 | + <h3 class="text-paragraph-3 mt-2 mb-2">"Subtítulo"</h3> |
| 109 | + </div> |
| 110 | + </div> |
| 111 | + <div> |
| 112 | + <p class="text-paragraph-3 mb-4"> |
| 113 | + "Breve descripción del canal o recurso contando qué muestra o para qué sirve." |
| 114 | + </p> |
| 115 | + </div> |
| 116 | + <div class="flex items-end justify-end w-full gap-2 flex-wrap"> |
| 117 | + <Button |
| 118 | + variant=ButtonVariant::Icon |
| 119 | + on_click=|_| {} |
| 120 | + icon=view! { <Youtube /> }.into_any() |
| 121 | + /> |
| 122 | + </div> |
| 123 | + </div> |
| 124 | + </Card> |
| 125 | + |
| 126 | + <Card class="w-md"> |
| 127 | + <div class="flex flex-col gap-4 justify-between h-full"> |
| 128 | + <div class="flex flex-row items-center gap-4"> |
| 129 | + <Avatar |
| 130 | + url="https://avatars.githubusercontent.com/u/136520331?u=7353ba372f09091049692d6e95f5a8cd8a42565f&v=4" |
| 131 | + size=52 |
| 132 | + /> |
| 133 | + <div> |
| 134 | + <h2 class="text-heading-3 mt-2 mb-2">"Nombre canal"</h2> |
| 135 | + <h3 class="text-paragraph-3 mt-2 mb-2">"Subtítulo"</h3> |
| 136 | + </div> |
| 137 | + </div> |
| 138 | + <div> |
| 139 | + <p class="text-paragraph-3 mb-4"> |
| 140 | + "Breve descripción del canal o recurso contando qué muestra o para qué sirve." |
| 141 | + </p> |
| 142 | + </div> |
| 143 | + <div class="flex items-end justify-end w-full gap-2 flex-wrap"> |
| 144 | + <Button |
| 145 | + variant=ButtonVariant::Icon |
| 146 | + on_click=|_| {} |
| 147 | + icon=view! { <Youtube /> }.into_any() |
| 148 | + /> |
| 149 | + </div> |
| 150 | + </div> |
| 151 | + </Card> |
| 152 | + </div> |
| 153 | + </div> |
| 154 | + </section> |
| 155 | + } |
| 156 | +} |
0 commit comments