From b82ca77723aa39b82bfa0c89f8e5b129d647a178 Mon Sep 17 00:00:00 2001 From: s-ol Date: Thu, 22 Nov 2018 22:51:31 +1100 Subject: add games preview similar to s-ol.nu --- root/games/IYNX/icon: image$png.png | Bin 0 -> 49376 bytes root/games/IYNX/title: text$plain | 1 + root/games/channel_83/icon: image$png.png | Bin 0 -> 45936 bytes root/games/channel_83/title: text$plain | 1 + root/games/curved_curse/icon: image$png.png | Bin 0 -> 19580 bytes root/games/curved_curse/title: text$plain | 1 + root/games/gtglg/icon: image$png.png | Bin 0 -> 8481 bytes root/games/gtglg/title: text$plain | 1 + root/games/lorem_ipsum/icon: image$png.png | Bin 0 -> 45933 bytes root/games/lorem_ipsum/title: text$plain | 1 + root/games/moving_out/icon: image$png.png | Bin 0 -> 28163 bytes root/games/moving_out/title: text$plain | 1 + root/games/plonat_atek/icon: image$png.png | Bin 0 -> 22452 bytes root/games/plonat_atek/title: text$plain | 1 + root/games/text$moonscript -> fn -> mmm$dom.moon | 38 +++++++++++++++------- root/games/the_monster_within/icon: image$png.png | Bin 0 -> 5953 bytes root/games/the_monster_within/title: text$plain | 1 + root/games/two_shooting_stars/icon: image$png.png | Bin 0 -> 14577 bytes root/games/two_shooting_stars/title: text$plain | 1 + root/games/vision_training_kit/title: text$plain | 1 + 20 files changed, 36 insertions(+), 12 deletions(-) create mode 100755 root/games/IYNX/icon: image$png.png create mode 100644 root/games/IYNX/title: text$plain create mode 100755 root/games/channel_83/icon: image$png.png create mode 100644 root/games/channel_83/title: text$plain create mode 100755 root/games/curved_curse/icon: image$png.png create mode 100644 root/games/curved_curse/title: text$plain create mode 100755 root/games/gtglg/icon: image$png.png create mode 100644 root/games/gtglg/title: text$plain create mode 100755 root/games/lorem_ipsum/icon: image$png.png create mode 100644 root/games/lorem_ipsum/title: text$plain create mode 100644 root/games/moving_out/icon: image$png.png create mode 100644 root/games/moving_out/title: text$plain create mode 100755 root/games/plonat_atek/icon: image$png.png create mode 100644 root/games/plonat_atek/title: text$plain create mode 100755 root/games/the_monster_within/icon: image$png.png create mode 100644 root/games/the_monster_within/title: text$plain create mode 100755 root/games/two_shooting_stars/icon: image$png.png create mode 100644 root/games/two_shooting_stars/title: text$plain create mode 100644 root/games/vision_training_kit/title: text$plain diff --git a/root/games/IYNX/icon: image$png.png b/root/games/IYNX/icon: image$png.png new file mode 100755 index 0000000..0765350 Binary files /dev/null and b/root/games/IYNX/icon: image$png.png differ diff --git a/root/games/IYNX/title: text$plain b/root/games/IYNX/title: text$plain new file mode 100644 index 0000000..bb857ce --- /dev/null +++ b/root/games/IYNX/title: text$plain @@ -0,0 +1 @@ +IYNX diff --git a/root/games/channel_83/icon: image$png.png b/root/games/channel_83/icon: image$png.png new file mode 100755 index 0000000..092404b Binary files /dev/null and b/root/games/channel_83/icon: image$png.png differ diff --git a/root/games/channel_83/title: text$plain b/root/games/channel_83/title: text$plain new file mode 100644 index 0000000..64a716e --- /dev/null +++ b/root/games/channel_83/title: text$plain @@ -0,0 +1 @@ +Channel 83: a last-gen entertainment experience diff --git a/root/games/curved_curse/icon: image$png.png b/root/games/curved_curse/icon: image$png.png new file mode 100755 index 0000000..c5caaf9 Binary files /dev/null and b/root/games/curved_curse/icon: image$png.png differ diff --git a/root/games/curved_curse/title: text$plain b/root/games/curved_curse/title: text$plain new file mode 100644 index 0000000..b02b5f5 --- /dev/null +++ b/root/games/curved_curse/title: text$plain @@ -0,0 +1 @@ +Curved Curse diff --git a/root/games/gtglg/icon: image$png.png b/root/games/gtglg/icon: image$png.png new file mode 100755 index 0000000..59c2908 Binary files /dev/null and b/root/games/gtglg/icon: image$png.png differ diff --git a/root/games/gtglg/title: text$plain b/root/games/gtglg/title: text$plain new file mode 100644 index 0000000..167d1df --- /dev/null +++ b/root/games/gtglg/title: text$plain @@ -0,0 +1 @@ +Gary, the green-legged Giraffe diff --git a/root/games/lorem_ipsum/icon: image$png.png b/root/games/lorem_ipsum/icon: image$png.png new file mode 100755 index 0000000..65b2b39 Binary files /dev/null and b/root/games/lorem_ipsum/icon: image$png.png differ diff --git a/root/games/lorem_ipsum/title: text$plain b/root/games/lorem_ipsum/title: text$plain new file mode 100644 index 0000000..9a8d8aa --- /dev/null +++ b/root/games/lorem_ipsum/title: text$plain @@ -0,0 +1 @@ +Lorem Ipsum diff --git a/root/games/moving_out/icon: image$png.png b/root/games/moving_out/icon: image$png.png new file mode 100644 index 0000000..85e68a9 Binary files /dev/null and b/root/games/moving_out/icon: image$png.png differ diff --git a/root/games/moving_out/title: text$plain b/root/games/moving_out/title: text$plain new file mode 100644 index 0000000..0c19b06 --- /dev/null +++ b/root/games/moving_out/title: text$plain @@ -0,0 +1 @@ +Moving Out diff --git a/root/games/plonat_atek/icon: image$png.png b/root/games/plonat_atek/icon: image$png.png new file mode 100755 index 0000000..abbbfc9 Binary files /dev/null and b/root/games/plonat_atek/icon: image$png.png differ diff --git a/root/games/plonat_atek/title: text$plain b/root/games/plonat_atek/title: text$plain new file mode 100644 index 0000000..ee49dec --- /dev/null +++ b/root/games/plonat_atek/title: text$plain @@ -0,0 +1 @@ +Plonat Atek diff --git a/root/games/text$moonscript -> fn -> mmm$dom.moon b/root/games/text$moonscript -> fn -> mmm$dom.moon index 1c04309..8609678 100644 --- a/root/games/text$moonscript -> fn -> mmm$dom.moon +++ b/root/games/text$moonscript -> fn -> mmm$dom.moon @@ -1,18 +1,32 @@ -import div, h3, ul, li, a from require 'mmm.dom' +import div, h3, ul, li, a, h4, img, p from require 'mmm.dom' => div { h3 @gett 'title: text/plain', style: { 'margin-bottom': '-.5em' }, - ul for child in *@children - name = child\gett 'name: alpha' - desc = child\gett 'description: text/plain' - li { - a name, { - href: child.path, - onclick: (e) => - e\preventDefault! - BROWSER\navigate child.path - }, - ': ', desc + ul with for child in *@children + link_if_content = (opts) -> + a with opts + if true or child\find 'mmm/dom' + .style = { 'text-decoration': 'none' } + .href = child.path + .onclick + + li link_if_content { + h4 { + style: { 'margin-bottom': 0 } + (child\get 'title: mmm/dom') or child\gett 'name: alpha' + } + div { + style: { + display: 'flex' + 'justify-content': 'space-around' + } + img src: child\gett 'icon: URL -> image/.*' + p (child\gett 'description: mmm/dom'), style: { 'flex': '1 0 0', margin: '1em' } + } + } + + .style = { + 'list-style': 'none' } } diff --git a/root/games/the_monster_within/icon: image$png.png b/root/games/the_monster_within/icon: image$png.png new file mode 100755 index 0000000..484bf4c Binary files /dev/null and b/root/games/the_monster_within/icon: image$png.png differ diff --git a/root/games/the_monster_within/title: text$plain b/root/games/the_monster_within/title: text$plain new file mode 100644 index 0000000..f44820c --- /dev/null +++ b/root/games/the_monster_within/title: text$plain @@ -0,0 +1 @@ +The Monster Within diff --git a/root/games/two_shooting_stars/icon: image$png.png b/root/games/two_shooting_stars/icon: image$png.png new file mode 100755 index 0000000..c531bd3 Binary files /dev/null and b/root/games/two_shooting_stars/icon: image$png.png differ diff --git a/root/games/two_shooting_stars/title: text$plain b/root/games/two_shooting_stars/title: text$plain new file mode 100644 index 0000000..7464871 --- /dev/null +++ b/root/games/two_shooting_stars/title: text$plain @@ -0,0 +1 @@ +I looked at the sky and saw two shooting stars but couldn't come up with a wish diff --git a/root/games/vision_training_kit/title: text$plain b/root/games/vision_training_kit/title: text$plain new file mode 100644 index 0000000..d131a1c --- /dev/null +++ b/root/games/vision_training_kit/title: text$plain @@ -0,0 +1 @@ +視能訓練キット | vision-training-kit -- cgit v1.2.3