this repo has no description
lustre frontent oat-ui gleam
1
fork

Configure Feed

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

♻️ add view function for the logo

+37 -7
+1 -1
gleam.toml
··· 17 17 lucide_lustre = ">= 2.0.3 and < 3.0.0" 18 18 19 19 [lucide_lustre] 20 - output_module = "icon" 20 + output_module = "client/icon" 21 21 22 22 [tools.lustre.html] 23 23 title = "BFD"
+24
src/client/icon.gleam
··· 119 119 ], 120 120 ) 121 121 } 122 + 123 + pub fn circle_check(attributes: List(Attribute(a))) { 124 + svg.svg( 125 + [ 126 + attribute("stroke-linejoin", "round"), 127 + attribute("stroke-linecap", "round"), 128 + attribute("stroke-width", "2"), 129 + attribute("stroke", "currentColor"), 130 + attribute("fill", "none"), 131 + attribute("viewBox", "0 0 24 24"), 132 + attribute("height", "24"), 133 + attribute("width", "24"), 134 + ..attributes 135 + ], 136 + [ 137 + svg.circle([ 138 + attribute("r", "10"), 139 + attribute("cy", "12"), 140 + attribute("cx", "12"), 141 + ]), 142 + svg.path([attribute("d", "m9 12 2 2 4-4")]), 143 + ], 144 + ) 145 + }
+10
src/client/logo.gleam
··· 1 + import client/icon 2 + import lustre/attribute.{class} as attr 3 + 4 + pub fn view(attr: List(attr.Attribute(_))) { 5 + icon.leaf([ 6 + class("p-2 text-white rounded-lg"), 7 + class("from-green-500 via-emerald-500 to-teal-600 bg-linear-to-r"), 8 + ..attr 9 + ]) 10 + }
+2 -6
src/client/page/navbar.gleam
··· 1 1 import client/icon 2 2 import client/language as lang 3 + import client/logo 3 4 import client/route 4 5 import client/session 5 6 import gleam/list ··· 35 36 // Logo with Title 36 37 html.div([class("hidden gap-2 items-center md:flex")], [ 37 38 //  Logo 38 - icon.leaf([ 39 - class("hidden p-2 text-white md:inline size-10"), 40 - class("from-green-500 via-emerald-500 to-teal-600 bg-linear-to-r"), 41 - class("rounded-lg drop-shadow-md"), 42 - ]), 43 - 39 + logo.view([class("hidden md:inline size-10 drop-shadow-md")]), 44 40 //  Title 45 41 html.p( 46 42 [