A Gleam implementation of the Scoundrel solo card game munksgaard.me/scoundrel
lustre scoundrel gleam card game

add links and some styling changes

+40 -9
+40 -9
src/scoundrel.gleam
··· 63 63 fn game_board(model: Model) -> Element(Msg) { 64 64 html.div( 65 65 [ 66 - attribute.class( 67 - "mx-auto max-w-3xl border rounded-sm p-4 shadow-sm space-y-4", 68 - ), 66 + attribute.class("mx-auto max-w-3xl my-6 space-y-2"), 69 67 ], 70 68 [ 71 - html.div([attribute.class("flex justify-between")], [ 72 - health_info(model.state), 73 - monsters_left(model.state), 74 - weapon_info(model.state.weapon), 69 + html.div([attribute.class("border rounded-sm p-4 shadow-sm space-y-4")], [ 70 + html.div([attribute.class("flex justify-between")], [ 71 + health_info(model.state), 72 + monsters_left(model.state), 73 + weapon_info(model.state.weapon), 74 + ]), 75 + room_info(model.state), 76 + flee_button(model.state), 77 + ]), 78 + html.div([attribute.class("flex justify-between text-xs")], [ 79 + html.span([], [ 80 + html.a( 81 + [ 82 + attribute.class("link link-neutral"), 83 + attribute.href("http://www.stfj.net/art/2011/Scoundrel.pdf"), 84 + ], 85 + [ 86 + html.text("Rules"), 87 + ], 88 + ), 89 + html.text(" ("), 90 + html.a( 91 + [ 92 + attribute.class("link link-neutral"), 93 + attribute.href("https://www.youtube.com/watch?v=Gt2tYzM93h4"), 94 + ], 95 + [ 96 + html.text("Video"), 97 + ], 98 + ), 99 + html.text(")"), 100 + ]), 101 + html.a( 102 + [ 103 + attribute.class("link link-neutral"), 104 + attribute.href("https://tangled.org/munksgaard.tngl.sh/scoundrel"), 105 + ], 106 + [html.text("Source")], 107 + ), 75 108 ]), 76 - room_info(model.state), 77 - flee_button(model.state), 78 109 ], 79 110 ) 80 111 }