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

Configure Feed

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

๐Ÿ’„ add login icon

+35 -7
+1 -1
src/client.gleam
··· 96 96 97 97 // Batch all scheduled effects and build the initial application `Model` 98 98 let effect = effect.batch([restore_session, init_modem]) 99 - #(Model(session:, route:, page:, lang: lang.BrazillianPortuguese), effect) 99 + #(Model(session:, route:, page:, lang: lang.English), effect) 100 100 } 101 101 102 102 fn init_session(
+21
src/client/icon.gleam
··· 143 143 ], 144 144 ) 145 145 } 146 + 147 + pub fn log_in(attributes: List(Attribute(a))) { 148 + svg.svg( 149 + [ 150 + attribute("stroke-linejoin", "round"), 151 + attribute("stroke-linecap", "round"), 152 + attribute("stroke-width", "2"), 153 + attribute("stroke", "currentColor"), 154 + attribute("fill", "none"), 155 + attribute("viewBox", "0 0 24 24"), 156 + attribute("height", "24"), 157 + attribute("width", "24"), 158 + ..attributes 159 + ], 160 + [ 161 + svg.path([attribute("d", "m10 17 5-5-5-5")]), 162 + svg.path([attribute("d", "M15 12H3")]), 163 + svg.path([attribute("d", "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4")]), 164 + ], 165 + ) 166 + }
+5 -5
src/client/page/home.gleam
··· 29 29 html.h1( 30 30 [ 31 31 class("max-w-xl text-3xl text-center md:text-4xl lg:text-5xl"), 32 - class("py-2 my-0 font-bold text-balance"), 32 + class("py-2 my-0 mx-4 font-bold text-balance"), 33 33 class("text-transparent bg-clip-text"), 34 34 class("from-blue-600 via-teal-600 to-green-600 bg-linear-to-r"), 35 35 ], ··· 107 107 html.div( 108 108 [ 109 109 class("text-subtext"), 110 - class("grid grid-cols-1 gap-2 xl:grid-cols-3"), 110 + class("flex flex-col gap-2 lg:flex-row lg:gap-4"), 111 111 ], 112 112 [ 113 - html.p([class("hstack")], [ 113 + html.p([class("mb-0 hstack")], [ 114 114 icon.circle_check([class("text-success")]), 115 115 html.text(case lang { 116 116 lang.BrazillianPortuguese | lang.Portuguese -> ··· 121 121 }), 122 122 ]), 123 123 124 - html.p([class("hstack")], [ 124 + html.p([class("mb-0 hstack")], [ 125 125 icon.circle_check([class("text-success")]), 126 126 html.text(case lang { 127 127 lang.BrazillianPortuguese | lang.Portuguese -> ··· 132 132 }), 133 133 ]), 134 134 135 - html.p([class("hstack")], [ 135 + html.p([class("mb-0 hstack")], [ 136 136 icon.circle_check([class("text-success")]), 137 137 html.text(case lang { 138 138 lang.BrazillianPortuguese | lang.Portuguese ->
+8 -1
src/client/page/navbar.gleam
··· 127 127 ]) 128 128 129 129 session.Guest -> 130 - html.a([attr.href(route.path(route.Login))], [html.text("Login")]) 130 + html.a( 131 + [ 132 + attr.href(route.path(route.Login)), 133 + class("py-2 px-4 rounded-md hstack"), 134 + class("font-bold bg-primary text-primary-foreground"), 135 + ], 136 + [icon.log_in([]), html.text("Login")], 137 + ) 131 138 132 139 session.Pending(..) -> 133 140 html.div([class("flex gap-2 items-center")], [