Rust library to generate static websites
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: some more website progress

+29 -3
+29 -3
website/src/pages/index.rs
··· 8 8 9 9 impl Page for Index { 10 10 fn render(&self, ctx: &mut RouteContext) -> RenderResult { 11 + let features = [("Feature 1", "Description 1")] 12 + .iter() 13 + .map(|(title, description)| { 14 + html! { 15 + div.card { 16 + h4 { (title) } 17 + p { (description) } 18 + } 19 + } 20 + }) 21 + .collect::<Vec<_>>(); 22 + 11 23 layout( 12 24 html! { 13 25 (header(ctx)) 14 26 div.w-screen { 15 27 div."lg:container".mx-auto.hero-background { 16 28 div.px-6.py-10.mx-6.my-14 { 17 - h2.text-5xl."w-[24ch]"."xl:w-[30ch]"."mb-1"."leading-[1.15]" { "Lo, " span.text-brand-red { "the still scrolls of the web"} ", unchanging and steadfast, at last!" } 18 - p.opacity-75.italic { "Or, in simpler words, " span.text-brand-red {"a static site generator"} "." } 29 + a.bg-our-black.text-our-white.rounded-sm.px-2.py-1.text-sm.mb-2.inline-block."hover:text-white"."hover:cursor-pointer" href="#" { 30 + "Maudit v0.1.0 is out →" 31 + } 32 + h2.text-5xl."w-[24ch]"."xl:w-[30ch]"."mb-1"."leading-[1.15]" { 33 + "Lo, " span.text-brand-red { "the still scrolls of the web"} ", unchanging and steadfast, at last!" 34 + } 35 + p.opacity-75.italic { 36 + "Or, in simpler words, " span.text-brand-red {"a static site generator"} "." 37 + } 19 38 div.mt-6.leading-tight { 20 39 a.btn.block.group href="/docs" { "Get Started" span.inline-block."group-hover:translate-x-4".transition-transform.translate-x-2 { "→" } } 21 40 span.opacity-75.italic { "or scroll down to learn more" } ··· 23 42 } 24 43 } 25 44 } 26 - div.h-12.bg-our-black.bg-opacity-5 {} 45 + div.h-12.bg-gradient-to-b."from-[#e6e6e3]"{} 46 + 47 + div."px-12"."lg:container".mx-auto { 48 + section { 49 + h3.text-3xl."mb-4" { "1. Features" } 50 + p { "TODO: Find a subtitle" } 51 + } 52 + } 27 53 28 54 }, 29 55 ctx,