diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | data/world/olympic.bra | 17 | ||||
-rwxr-xr-x | scripts/gen-olympic-reais | 19 | ||||
-rw-r--r-- | src/style.css | 4 | ||||
-rw-r--r-- | src/world/coins/br/index.gsp | 47 | ||||
-rw-r--r-- | src/world/index.gsp | 1 | ||||
-rw-r--r-- | src/world/nav.coins.gsp | 3 | ||||
-rw-r--r-- | src/world/nav.notes.gsp | 3 | ||||
-rw-r--r-- | src/world/notes/ez/index.gsp | 1 |
9 files changed, 98 insertions, 0 deletions
@@ -64,6 +64,9 @@ $(eurond): out/euro/%/index.html: $(gspdeps) $(euronddeps) $(euront): out/euro/%/index.html: $(gspdeps) $(eurotndeps) m4 -P -D__notes lib.m4 src/euro/index.tnotes.gsp | gsp >$@ +out/world/coins/br/index.html: src/world/coins/br/index.gsp $(gspdeps) + m4 -P -D__coins lib.m4 src/world/coins/br/index.gsp | gsp >$@ + out/%.css: src/%.css cp $< $@ diff --git a/data/world/olympic.bra b/data/world/olympic.bra new file mode 100644 index 0000000..9ccc945 --- /dev/null +++ b/data/world/olympic.bra @@ -0,0 +1,17 @@ +2012 - Flag Handover +2014 X Athletics +2014 X Swimming +2014 X Paratriathlon +2014 X Golf +2015 - Basketball +2015 X Sailing +2015 X Paracanoe +2015 X Rugby +2015 X Football +2015 - Volleyball +2015 - Paralympic Athletics +2015 - Judo +2016 - Boxing +2016 - Paralympic Swimming +2016 - Olympic Mascot +2016 - Paralympic Mascot diff --git a/scripts/gen-olympic-reais b/scripts/gen-olympic-reais new file mode 100755 index 0000000..3efd8b2 --- /dev/null +++ b/scripts/gen-olympic-reais @@ -0,0 +1,19 @@ +#!/bin/sh + +gawk ' +@include "scripts/getcls.awk" + +BEGIN { + FS = "\t" +} + +{ + printf "trX { td .missing {-%s} td .%s colspan=\"6\" {-%s} }\n", + $1, getcls($2), $3 +} + +END { + print "__MARKER__" +} +' data/world/olympic.bra \ +| scripts/last-of-design.sed diff --git a/src/style.css b/src/style.css index 96902fa..2e96bfc 100644 --- a/src/style.css +++ b/src/style.css @@ -624,6 +624,10 @@ div .country-table:not(:first-child) { border-radius: 0 16px 16px 0; } +.country-table tr:first-child:last-child td:first-child:last-child { + border-radius: 16px 16px 16px 16px; +} + .coin-table { width: calc(95% + 32px); white-space: nowrap; diff --git a/src/world/coins/br/index.gsp b/src/world/coins/br/index.gsp new file mode 100644 index 0000000..8d7f672 --- /dev/null +++ b/src/world/coins/br/index.gsp @@ -0,0 +1,47 @@ +html lang="en" { + head { + __include(head.gsp) + title {-Brazilian Coins} + } + + body { + nav { + __include(nav.gsp) + __include(world/nav.coins.gsp) + } + + main { + section { + header { + h1 {-Brazilian Coins} + } + } + + br{}br{} + + section { __include(table-key.gsp) } + + br{}br{} + + section .cl-section .slant-down { + div { + table .coin-table cellspacing="0" { + thead { + tr { + th colspan="7" {-R$1 Olympic Reais} + } + tr { + th colspan="1" {-Year} + th colspan="6" {-Topic} + } + } + + tbody { __esyscmd(gen-olympic-reais) } + } + } + } + + section { __include(foot.gsp) } + } + } +} diff --git a/src/world/index.gsp b/src/world/index.gsp index 1e6c651..26dcb4b 100644 --- a/src/world/index.gsp +++ b/src/world/index.gsp @@ -22,6 +22,7 @@ html lang="en" { table .country-table { tbody { tr { + td {a href="coins/br" {-Brazil}} } } } diff --git a/src/world/nav.coins.gsp b/src/world/nav.coins.gsp new file mode 100644 index 0000000..eb552c9 --- /dev/null +++ b/src/world/nav.coins.gsp @@ -0,0 +1,3 @@ +ul { + li {__link([/world/coins/br], [BR])} +} diff --git a/src/world/nav.notes.gsp b/src/world/nav.notes.gsp new file mode 100644 index 0000000..991d44b --- /dev/null +++ b/src/world/nav.notes.gsp @@ -0,0 +1,3 @@ +ul { + li {__link([/world/notes/ez], [EZ])} +} diff --git a/src/world/notes/ez/index.gsp b/src/world/notes/ez/index.gsp index 701ebe5..c62db8c 100644 --- a/src/world/notes/ez/index.gsp +++ b/src/world/notes/ez/index.gsp @@ -7,6 +7,7 @@ html lang="en" { body { nav { __include(nav.gsp) + __include(world/nav.notes.gsp) } main { |