My personal website, in gleam+lustre!
0
fork

Configure Feed

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

put the Co2 thing in its own thing


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

+22 -37
+22 -37
src/homepage.gleam
··· 668 668 clickable_url: "", 669 669 text_badge: "", 670 670 ), 671 - // No longer true! 672 - // Badge( 673 - // img_url: "/img/badges/blinkiesCafe-xD.gif", 674 - // img_alt: "This page works better on a computer than on a smartphone :3", 675 - // img_title: "This page works better on a computer than on a smartphone :3", 676 - // clickable_url: "/img/badges/blinkiesCafe-xD.gif", 677 - // text_badge: "", 678 - // ), 679 - // I mean, I do have a tumblr, but I use other platforms more nowadays. 680 - // Badge( 681 - // img_url: "/img/badges/blinkiesCafe-tumblr-grrll.gif", 682 - // img_alt: "Tumblr", 683 - // img_title: "Tumblr Tumblr Tumblr", 684 - // clickable_url: "https://www.tumblr.com/strawmelonjuice", 685 - // text_badge: "", 686 - // ), 687 671 Badge( 688 672 img_url: "/img/badges/e29.webp", 689 673 img_alt: "The Sims addict", ··· 1460 1444 let into_main_with_badges = fn(content: List(Element(Msg))) -> Element(Msg) { 1461 1445 let badges_ = 1462 1446 list.map(badges |> list.shuffle(), render_badge) 1463 - |> list.append([ 1464 - element.unsafe_raw_html( 1465 - "", 1466 - "div", 1467 - [ 1468 - attribute.id("wcb"), 1469 - attribute.class("carbonbadge inline-grid max-h-[24px] box-border"), 1470 - ], 1471 - "", 1472 - ), 1473 - html.script( 1474 - [ 1475 - attribute("defer", ""), 1476 - attribute.src( 1477 - "https://unpkg.com/website-carbon-badges@1.1.3/b.min.js", 1478 - ), 1479 - ], 1480 - "", 1481 - ), 1482 - ]) 1447 + |> list.append([]) 1483 1448 [ 1484 1449 content |> main(function.identity), 1485 1450 html.div( 1486 1451 [ 1487 1452 attribute.class( 1488 - "bg-accent mt-4 text-accent-content mx-auto max-w-2xl md:rounded-md md:mb-14 p-2 md:p-12 md:h-fit", 1453 + "bg-accent mt-4 text-accent-content mx-auto max-w-4xl md:rounded-md md:mb-14 p-2 md:p-12 md:h-fit", 1489 1454 ), 1490 1455 ], 1491 1456 case data.arrivertisements_show { ··· 1515 1480 } 1516 1481 False -> badges_ 1517 1482 }, 1483 + ), 1484 + element.unsafe_raw_html( 1485 + "", 1486 + "div", 1487 + [ 1488 + attribute.id("wcb"), 1489 + attribute.class( 1490 + "carbonbadge bg-info text-info-content mt-2 mx-auto max-w-2xl md:rounded-md md:mb-14 md:h-fit", 1491 + ), 1492 + ], 1493 + "", 1494 + ), 1495 + html.script( 1496 + [ 1497 + attribute("defer", ""), 1498 + attribute.src( 1499 + "https://unpkg.com/website-carbon-badges@1.1.3/b.min.js", 1500 + ), 1501 + ], 1502 + "", 1518 1503 ), 1519 1504 html.hr([attribute.class("my-20 text-base-100")]), 1520 1505 ]