My personal website, in gleam+lustre!
0
fork

Configure Feed

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

:3


Signed-off-by: MLC Bloeiman <mar@strawmelonjuice.com>

+27 -6
+4 -2
gleam.toml
··· 11 11 webls = ">= 1.6.1 and < 2.0.0" 12 12 smalto = ">= 3.0.0 and < 4.0.0" 13 13 gleam_regexp = ">= 1.1.1 and < 2.0.0" 14 - glaze_oat = ">= 3.0.0 and < 4.0.0" 15 14 16 15 [dev-dependencies] 17 16 glentities = ">= 6.2.1 and < 7.0.0" ··· 29 28 minify = true 30 29 31 30 [tools.lustre.html] 32 - # scripts = [{ src = "https://unpkg.com/@knadh/oat@0.4.1/oat.min.js" }] 31 + scripts = [ 32 + # { src = "https://unpkg.com/@knadh/oat@0.4.1/oat.min.js" }, 33 + # { src = "https://unpkg.com/website-carbon-badges@1.1.3/b.min.js", defer = true }, 34 + ] 33 35 links = [ 34 36 { rel = "preconnect", href = "https://fontlay.com", crossorigin = "" }, 35 37 { rel = "shortcut icon", href = "/strawmelonjuice.png", type = "image/x-icon" },
+1 -1
justfile
··· 43 43 44 44 # Builds and pushes to the server. Make sure to have access to strawmelonservices ;) 45 45 push: build 46 - rsync -avz --delete ./dist/ strawmelonservices:/root/docker/strawmelonjuice-site/ 46 + rsync -avz --delete ./dist/ strawmelonservices:/home/mar/site/ 47 47 bun x wispctl deploy strawmelonjuice.com \ 48 48 --path ./dist \ 49 49 --site homepage
-2
manifest.toml
··· 9 9 { name = "envoy", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "envoy", source = "hex", outer_checksum = "850DA9D29D2E5987735872A2B5C81035146D7FE19EFC486129E44440D03FD832" }, 10 10 { name = "exception", version = "2.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "exception", source = "hex", outer_checksum = "329D269D5C2A314F7364BD2711372B6F2C58FA6F39981572E5CA68624D291F8C" }, 11 11 { name = "filepath", version = "1.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "B06A9AF0BF10E51401D64B98E4B627F1D2E48C154967DA7AF4D0914780A6D40A" }, 12 - { name = "glaze_oat", version = "3.0.0", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib", "lustre"], otp_app = "glaze_oat", source = "hex", outer_checksum = "B1373CA720EBB9D7FBDA4D2E28CAAD2B1928F6845313570AE72CA1D93B069706" }, 13 12 { name = "gleam_community_ansi", version = "1.4.4", build_tools = ["gleam"], requirements = ["gleam_community_colour", "gleam_regexp", "gleam_stdlib"], otp_app = "gleam_community_ansi", source = "hex", outer_checksum = "1B3AEA6074AB34D5F0674744F36DDC7290303A03295507E2DEC61EDD6F5777FE" }, 14 13 { name = "gleam_community_colour", version = "2.0.4", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "6DB4665555D7D2B27F0EA32EF47E8BEBC4303821765F9C73D483F38EE24894F0" }, 15 14 { name = "gleam_crypto", version = "1.5.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_crypto", source = "hex", outer_checksum = "50774BAFFF1144E7872814C566C5D653D83A3EBF23ACC3156B757A1B6819086E" }, ··· 55 54 [requirements] 56 55 argv = { version = ">= 1.0.2 and < 2.0.0" } 57 56 chilp = { version = ">= 1.0.0 and < 2.0.0" } 58 - glaze_oat = { version = ">= 3.0.0 and < 4.0.0" } 59 57 gleam_erlang = { version = ">= 1.3.0 and < 2.0.0" } 60 58 gleam_json = { version = ">= 3.1.0 and < 4.0.0" } 61 59 gleam_regexp = { version = ">= 1.1.1 and < 2.0.0" }
+22 -1
src/homepage.gleam
··· 1383 1383 |> element.fragment 1384 1384 } 1385 1385 let into_main_with_badges = fn(content: List(Element(Msg))) -> Element(Msg) { 1386 - let badges_ = list.map(badges |> list.shuffle(), render_badge) 1386 + let badges_ = 1387 + list.map(badges |> list.shuffle(), render_badge) 1388 + |> list.append([ 1389 + element.unsafe_raw_html( 1390 + "", 1391 + "div", 1392 + [ 1393 + attribute.id("wcb"), 1394 + attribute.class("carbonbadge inline-flex h-min box-border"), 1395 + ], 1396 + "", 1397 + ), 1398 + html.script( 1399 + [ 1400 + attribute("defer", ""), 1401 + attribute.src( 1402 + "https://unpkg.com/website-carbon-badges@1.1.3/b.min.js", 1403 + ), 1404 + ], 1405 + "", 1406 + ), 1407 + ]) 1387 1408 [ 1388 1409 content |> main(function.identity), 1389 1410 html.div(