Skip to content

Instantly share code, notes, and snippets.

@roktas
Last active February 14, 2026 15:13
Show Gist options
  • Select an option

  • Save roktas/817838a368dbe2190f19ea37a8ce8d46 to your computer and use it in GitHub Desktop.

Select an option

Save roktas/817838a368dbe2190f19ea37a8ce8d46 to your computer and use it in GitHub Desktop.
Old Strokes base
# frozen_string_literal: true
module Base
module Header
def call(page)
n = 3
width = page.grid.width / n.to_f
rect id: "Header-Cell-Left", x: 0, y: 0, width:, height: 9, class: %w[ header ]
rect id: "Header-Cell-Center", x: width, y: 0, width:, height: 9, class: %w[ header ]
rect id: "Header-Cell-Right", x: 2 * width, y: 0, width:, height: 9, class: %w[ header ]
end
end
module Logo
WIDTH = 16.0
HEIGHT = 11.6
def call(page)
path id: "Logo-Image", d: "m 0,15.846213 c 0,-0.10406 0.215216,-0.191057 0.478258,-0.193331 0.779996,-0.0067 2.371538,-0.755131 3.352999,-1.57671 0.557267,-0.466495 0.944731,-0.685081 0.988981,-0.557928 0.154566,0.44416 0.853378,1.340069 1.307855,1.67673 0.664138,0.49197 2.335163,0.59805 3.345105,0.212342 0.421052,-0.160796 1.04148,-0.597769 1.378719,-0.971061 l 0.613164,-0.678707 0.514949,0.514949 c 0.579761,0.579753 1.605521,0.705799 2.200916,0.270443 0.287289,-0.210071 0.400982,-0.210071 0.807216,0 0.260054,0.134486 0.594102,0.244506 0.742331,0.244506 0.148225,0 0.269506,0.07826 0.269506,0.173911 0,0.22915 -0.317095,0.208415 -0.95166,-0.06218 -0.425987,-0.181664 -0.603534,-0.177197 -1.009644,0.02543 -0.607602,0.30311 -1.482286,0.163987 -2.119282,-0.337076 l -0.463699,-0.36474 -0.512819,0.524536 c -0.787127,0.805082 -1.658056,1.146396 -2.942898,1.153298 -1.428989,0.0077 -2.432405,-0.477029 -2.988777,-1.443749 l -0.389029,-0.675944 -0.7024,0.569691 C 3.533471,14.663954 2.826087,15.115751 2.347823,15.354614 1.343309,15.856289 0,16.137599 0,15.84627 Z m 2.896952,0.04104 c -0.05791,-0.05791 0.242211,-0.325682 0.666945,-0.595044 l 0.77224,-0.489738 0.535385,0.535381 c 0.65533,0.65533 0.531532,0.908809 -0.13421,0.274794 -0.436578,-0.415771 -0.50555,-0.43184 -0.824271,-0.191966 -0.560554,0.421877 -0.903374,0.579291 -1.016089,0.466573 z m 7.885652,-0.0017 c 0,-0.06561 0.168948,-0.299066 0.375434,-0.518859 l 0.375443,-0.399632 0.585852,0.36208 c 0.465075,0.28742 0.755184,0.340748 1.407177,0.258616 1.346012,-0.169561 2.473489,-0.04976 2.473489,0.262845 0,0.195551 -0.125895,0.19354 -0.847938,-0.01349 -0.397806,-0.114084 -0.823674,-0.103809 -1.331999,0.03213 -0.622171,0.166409 -0.871404,0.151088 -1.489114,-0.09157 -0.658466,-0.258643 -0.774086,-0.262258 -1.028367,-0.03217 -0.305945,0.276869 -0.519977,0.334516 -0.519977,0.140043 z M 0,14.96105 c 0,-0.09565 0.176086,-0.174668 0.391303,-0.175611 0.679165,-0.0026 2.089704,-0.789664 3.260871,-1.818707 1.066063,-0.936717 2.380898,-1.769703 2.540875,-1.609738 0.03984,0.03983 -0.04601,0.35581 -0.190772,0.70221 -0.362361,0.867252 -0.332828,1.185418 0.180228,1.941448 0.560192,0.825479 0.447187,0.981384 -0.175199,0.241713 -0.406441,-0.483032 -0.462864,-0.686037 -0.412948,-1.485838 0.03181,-0.509514 0.03076,-0.926275 -0.002,-0.926149 -0.133479,3.93e-4 -1.15827,0.79203 -2.170854,1.676648 C 2.137556,14.62873 2.95e-4,15.537072 2.95e-4,14.96105 Z m 8.086953,3.94e-4 c 0.191303,-0.08236 0.57878,-0.199888 0.861061,-0.261185 0.476082,-0.10339 1.046804,-0.614729 2.491241,-2.232017 1.093547,-1.224416 0.896256,-0.62666 -0.245347,0.743347 C 10.010771,14.631446 9.2061,15.14755 8.213866,15.122953 7.792045,15.112493 7.777899,15.094453 8.086953,14.961444 Z M 0,14.105141 c 0,-0.103248 0.159634,-0.187736 0.35475,-0.187736 0.569072,0 1.56124,-0.591083 2.775685,-1.653587 1.66658,-1.458097 2.679934,-1.994975 3.76926,-1.996951 0.715651,-0.0013 1.00916,0.09047 1.434788,0.448609 0.29429,0.247633 0.535081,0.592355 0.535081,0.766054 0,0.268364 -0.105129,0.301726 -0.699554,0.221998 -0.523677,-0.07025 -0.78603,-0.01552 -1.043484,0.21741 -0.431695,0.390694 -0.45359,1.324519 -0.03957,1.688082 0.881234,0.773829 2.104618,0.390032 3.173639,-0.995611 1.121607,-1.45382 2.262727,-1.840653 3.064497,-1.03888 0.533395,0.53338 0.467148,0.835321 -0.209013,0.952692 -0.363675,0.0631 -0.523485,0.20131 -0.564214,0.487831 -0.125253,0.88106 0.913462,1.220199 1.641729,0.536039 l 0.389936,-0.366326 0.393197,0.366326 c 0.21626,0.201471 0.534968,0.366314 0.708243,0.366314 0.173264,0 0.315027,0.07827 0.315027,0.17392 0,0.245496 -0.353521,0.214153 -0.920581,-0.08163 -0.431339,-0.224986 -0.553175,-0.221255 -1.086957,0.0333 -0.559199,0.266664 -0.643646,0.266413 -1.209857,-0.003 -0.486188,-0.231845 -0.608691,-0.3904 -0.608691,-0.787862 0,-0.539113 0.461215,-1.073241 0.926733,-1.073241 0.159861,0 0.29065,-0.06259 0.29065,-0.139144 0,-0.31184 -0.452905,-0.55651 -1.030145,-0.55651 -0.525812,0 -0.75894,0.154218 -1.643014,1.086945 -1.331419,1.404696 -1.781091,1.69312 -2.641863,1.694512 -1.190354,0.0017 -1.911521,-1.014054 -1.472359,-2.07427 0.207972,-0.502097 0.746111,-0.816943 1.569995,-0.918547 L 8.608692,11.218248 8.094131,10.872479 C 7.735884,10.631744 7.323575,10.534788 6.736866,10.553318 5.801896,10.582808 5.091641,10.975061 3.478257,12.352791 2.952172,12.802045 2.20869,13.369971 1.826083,13.614862 1.037044,14.119891 0,14.398659 0,14.105742 Z M 7.486205,13.318287 C 7.216057,12.992782 7.31702,12.316791 7.652169,12.207091 c 0.215696,-0.07059 0.222703,-0.03905 0.04048,0.181726 -0.28587,0.346478 -0.0955,0.832938 0.325959,0.832938 0.181069,0 0.32922,0.07826 0.32922,0.173916 0,0.263926 -0.624936,0.207801 -0.86162,-0.07738 z M 1.043478,13.097439 c 1.4e-5,-0.205448 1.165436,-1.093993 1.425486,-1.086823 0.124679,0.003 -0.0081,0.202957 -0.295052,0.443381 -0.657966,0.551265 -1.13044,0.820195 -1.130434,0.643442 z", style: { display: "inline", overflow: "visible", fill: "#0069ff", "fill-opacity": 1, "stroke-width": 0.432432 }
layer id: "Logo-Text", style: { display: "inline" } do
layer id: "Logo-Text-Okyanus" do
path id: "logo-text-okyanus-o", d: "m 1.119949,0.87821179 c -0.105345,0 -0.263362,0.04942 -0.371805,0.101928 -0.09295,0.04942 -0.148721,0.09575 -0.223083,0.19149501 -0.08366,0.101924 -0.13323,0.265623 -0.13323,0.398435 0,0.11428 0.04028,0.290332 0.142525,0.420056 0.123935,0.163695 0.374904,0.237823 0.501937,0.237823 0.148722,0 0.309837,-0.06177 0.446166,-0.142077 0.04957,-0.03087 0.263362,-0.203852 0.263362,-0.534333 0,-0.457123 -0.384199,-0.67332701 -0.625872,-0.67332701 z M 0.986719,1.0172008 c 0.102247,0 0.207591,0.0556 0.272657,0.11119 0.139427,0.126637 0.192099,0.342842 0.192099,0.528159 0,0.18223 -0.06197,0.302689 -0.136328,0.373725 -0.04648,0.04324 -0.117739,0.05868 -0.161116,0.05868 -0.08366,0 -0.195197,-0.02781 -0.306739,-0.148251 -0.07126,-0.08031 -0.154919,-0.222383 -0.154919,-0.420057 0,-0.213117 0.03408,-0.333572 0.123936,-0.426235 0.05267,-0.05251 0.123935,-0.07722 0.17041,-0.07722 z"
path id: "logo-text-okyanus-k", d: "m 2.6038,2.1816208 c 0,0.01546 0.0062,0.01852 0.02169,0.01852 0.06197,0 0.201395,-0.0062 0.32533,-0.0062 0.17041,0 0.250968,0.0062 0.272656,0.0062 0.01549,0 0.02479,-0.003 0.03099,-0.01546 0.0093,-0.0247 0.01239,-0.04633 0.01239,-0.09266 0,-0.03087 -0.0031,-0.04015 -0.02169,-0.04015 -0.02788,0 -0.111541,0.0062 -0.139427,0.0062 -0.03098,0 -0.04648,-0.03704 -0.04648,-0.194586 0,-0.148255 0,-0.197674 0.0031,-0.244001 0.0031,-0.04324 0.0062,-0.05251 0.04028,-0.05251 0.03408,0 0.05887,0.0093 0.09295,0.04633 0.154919,0.160607 0.275755,0.290332 0.393494,0.413878 0.03099,0.03398 0.02169,0.04633 -0.06197,0.0556 -0.01239,0.003 -0.01549,0.0062 -0.0031,0.0525 l 0.0124,0.05251 c 0.0031,0.0093 0.0093,0.01235 0.02479,0.01235 0.213788,-0.003 0.328428,0 0.415183,0.003 0.07126,0.003 0.158017,0.0062 0.185902,0.0062 0.01859,0 0.02788,-0.003 0.02788,-0.02781 0,-0.07722 0,-0.08957 -0.02479,-0.09266 -0.164214,-0.0278 -0.216886,-0.06177 -0.350116,-0.191495 -0.117738,-0.114276 -0.34392,-0.355194 -0.405887,-0.432409 -0.03408,-0.04015 -0.03099,-0.06177 0,-0.08648 0.123935,-0.105015 0.24787,-0.213117 0.331526,-0.265623 0.08366,-0.05251 0.182804,-0.08031 0.269559,-0.09266 0.02479,-0.003 0.03718,-0.0247 0.04338,-0.04324 0.0093,-0.02781 0.0093,-0.04942 0.0093,-0.06486 0,-0.0093 -0.0031,-0.01235 -0.02169,-0.01235 -0.176607,0.01852 -0.405887,0.0247 -0.582494,0.02781 -0.01549,0 -0.02169,0.0093 -0.02479,0.02781 l -0.01859,0.07721 c -0.0031,0.01235 0.0062,0.01852 0.01859,0.01852 0.01859,0 0.03408,0 0.08366,0 0.02788,0 0.03408,0.01546 0.01239,0.04324 -0.05887,0.07104 -0.28505,0.277979 -0.334624,0.321219 -0.03718,0.03398 -0.08366,0.05868 -0.105345,0.05868 -0.02169,0 -0.02479,-0.003 -0.02479,-0.04015 l 0.01239,-0.90188401 c 0.0031,-0.318128 0.0031,-0.435496 0.0031,-0.475649 0,-0.04942 -0.01239,-0.06486 -0.04338,-0.05251 -0.04028,0.01852 -0.347018,0.145163 -0.374903,0.166786 -0.0124,0.0093 -0.0124,0.04324 0.0062,0.06177 0.01239,0.02163 0.05267,0.04942 0.09915,0.09575 0.02788,0.02781 0.03718,0.05251 0.04338,0.157521 0.0062,0.191495 0.0031,0.484914 0.0031,0.75671601 0,0.4077 -0.01239,0.691858 -0.03099,0.775251 -0.0093,0.03704 -0.03099,0.04324 -0.145624,0.06486 -0.01549,0.003 -0.02479,0.01546 -0.02788,0.03704 z"
path id: "logo-text-okyanus-y", d: "m 5.748383,1.0017578 c -0.0031,0.01546 -0.0031,0.03087 0.0124,0.03704 0.142525,0.04324 0.142525,0.06486 0.108442,0.169873 -0.08366,0.234736 -0.219984,0.506537 -0.325329,0.701124 -0.05577,-0.129725 -0.198296,-0.596109 -0.229279,-0.725833 -0.02479,-0.105015 -0.0031,-0.111189 0.161115,-0.166786 0,-0.02163 -0.01859,-0.07413 -0.02788,-0.08957 -0.0031,-0.0062 -0.0093,-0.0093 -0.02788,-0.0093 -0.11464,0 -0.257165,0.0093 -0.498839,0.0093 -0.03099,0 -0.03718,0.003 -0.04648,0.02781 -0.0093,0.04633 -0.0124,0.05868 -0.0124,0.06795 -0.0031,0.01546 0.0031,0.02163 0.02169,0.0278 0.102247,0.04015 0.11464,0.05868 0.145624,0.13899 0.136329,0.361373 0.22928,0.642436 0.322231,0.972921 0.01549,0.05251 0.01549,0.09266 0.0031,0.117372 -0.02169,0.06177 -0.291247,0.525067 -0.309837,0.555955 -0.01859,0.04324 -0.01549,0.08957 0.01239,0.117367 0.03408,0.03087 0.09915,0.04942 0.151821,0.04942 0.02169,0 0.04957,-0.003 0.07436,-0.01852 0.01239,-0.01235 0.01239,-0.0247 0.01239,-0.03398 0.0031,-0.01852 0.0062,-0.05869 0.02788,-0.13899 0.02788,-0.08957 0.105344,-0.299598 0.204492,-0.543603 0.08366,-0.200761 0.219985,-0.500358 0.464756,-0.97292 0.07126,-0.142081 0.127034,-0.231648 0.260264,-0.271801 0.0031,-0.0093 -0.01859,-0.08339 -0.03099,-0.09575 -0.0062,-0.0093 -0.01239,-0.0093 -0.03099,-0.0093 -0.01549,0 -0.05267,0 -0.117738,0.003 -0.08985,0.0062 -0.24787,0.0062 -0.312936,0.0062 -0.0093,0.01235 -0.01549,0.04633 -0.0124,0.07413 z"
path id: "logo-text-okyanus-a", d: "m 7.353069,1.2395838 c 0.01859,-0.0062 0.02169,-0.01546 0.02169,-0.03704 0,-0.108102 0.01239,-0.126633 0.02479,-0.135898 0.01859,-0.0093 0.05887,-0.02163 0.11464,-0.02163 0.09605,0 0.173509,0.03087 0.198296,0.05251 0.03098,0.02781 0.05577,0.101924 0.05577,0.22547 0,0.05868 0,0.13899 -0.0062,0.197674 -0.201395,0.03398 -0.42138,0.08957 -0.59179,0.18223 -0.09295,0.04942 -0.142525,0.105015 -0.142525,0.194582 0,0.123546 0.05267,0.213118 0.102246,0.256358 0.07436,0.06486 0.145624,0.08031 0.192099,0.08031 0.06197,-0.003 0.297444,-0.108102 0.433773,-0.166786 0.02169,0.135898 0.07126,0.166786 0.136328,0.166786 0.105345,0 0.325329,-0.06486 0.365608,-0.09266 0.01239,-0.0062 0.01859,-0.01852 0.02169,-0.0278 l 0.0062,-0.07104 c 0,-0.01235 -0.02169,-0.03398 -0.03099,-0.03398 -0.01859,0.0062 -0.120836,0.04942 -0.167312,0.04942 -0.04957,0 -0.07436,-0.06486 -0.07436,-0.228562 0,-0.206939 0.0062,-0.438587 0.0062,-0.667144 0,-0.04324 -0.01239,-0.111194 -0.06816,-0.16679001 -0.05267,-0.05559 -0.13323,-0.114277 -0.278854,-0.114277 -0.04648,0 -0.111541,0.01546 -0.185902,0.04015 -0.09295,0.03087 -0.328428,0.16987801 -0.393494,0.26562801 -0.01859,0.0278 -0.03099,0.0525 -0.03099,0.07721 0,0.01546 0.03408,0.04324 0.04648,0.04324 0.01859,0 0.03718,-0.003 0.06197,-0.0093 z m 0.123935,0.806135 c -0.108443,0 -0.161115,-0.06486 -0.161115,-0.188409 0,-0.06486 0.01549,-0.08648 0.04028,-0.101924 0.07126,-0.0525 0.192099,-0.08957 0.384198,-0.120454 0.0093,0 0.02169,0.01235 0.02169,0.03704 0,0.04942 -0.0031,0.185317 -0.0062,0.22547 -0.0062,0.03398 -0.03718,0.0556 -0.08056,0.08339 -0.07746,0.04015 -0.167312,0.06486 -0.198296,0.06486 z"
path id: "logo-text-okyanus-n", d: "m 9.115776,2.1877958 c -0.0031,0.01546 0.0031,0.02163 0.0093,0.02163 0.06507,0 0.17041,-0.01546 0.306739,-0.01546 h 0.294346 l 0.01859,-0.07721 c 0.0062,-0.01852 0,-0.0247 -0.01859,-0.03087 -0.173509,-0.02781 -0.182805,-0.03705 -0.182805,-0.08339 0,-0.169878 0,-0.626996 0.0062,-0.747451 0.0031,-0.04015 0.0062,-0.0556 0.04028,-0.07722 0.06197,-0.03704 0.179706,-0.08339 0.263362,-0.08339 0.08985,0 0.158017,0.0247 0.210689,0.07413 0.08056,0.08339 0.08675,0.166786 0.08675,0.352107 0,0.157521 -0.0093,0.336659 -0.02479,0.444766 -0.0124,0.09574 -0.04028,0.114276 -0.139427,0.157521 l 0.0124,0.07104 c 0.0062,0.01235 0.01859,0.01546 0.03718,0.01546 0.127033,0 0.235476,-0.01546 0.542215,-0.01546 0.01549,0 0.02169,0 0.02788,-0.01546 0.0062,-0.01235 0.01549,-0.06795 0.01549,-0.09266 0,-0.02163 -0.0062,-0.03398 -0.01549,-0.03398 -0.06197,0.003 -0.154919,0.01235 -0.182804,0.01235 -0.01239,0 -0.01859,-0.003 -0.01859,-0.02781 0,-0.08339 0,-0.219292 0,-0.45094 0,-0.135903 0,-0.222383 -0.0062,-0.290332 -0.01549,-0.13899 -0.06197,-0.259449 -0.148722,-0.32739801 -0.06816,-0.05251 -0.130132,-0.07413 -0.223083,-0.07413 -0.06197,0 -0.130132,0.01852 -0.185902,0.04324 -0.08676,0.03704 -0.148723,0.07104 -0.285051,0.14207701 -0.01239,0.003 -0.02479,-0.0062 -0.02479,-0.01546 0,-0.0556 -0.0062,-0.12045901 -0.0124,-0.16369901 0,-0.01852 -0.01239,-0.02781 -0.02788,-0.02781 -0.01549,0 -0.03099,0.003 -0.04648,0.01235 -0.02479,0.01546 -0.154919,0.08648 -0.291248,0.14516801 -0.02479,0.01235 -0.03408,0.01852 -0.03408,0.02781 -0.01239,0.06177 -0.0093,0.07104 0.0031,0.07721 0.148722,0.03398 0.158017,0.04633 0.161115,0.08957 0.0062,0.06177 0.01239,0.169877 0.01239,0.302689 0,0.151342 -0.0062,0.327393 -0.01859,0.42623 -0.01239,0.08957 -0.04957,0.11119 -0.154919,0.157521 z"
path id: "logo-text-okyanus-dot", d: "m 11.548178,1.1699658 c -0.06364,0 -0.113636,0.03173 -0.140909,0.09062 -0.05909,0.149527 -0.07727,0.16312 -0.236363,0.199369 -0.04091,0.0091 -0.09091,0.05435 -0.09091,0.09063 0,0.04985 0.02727,0.07703 0.07727,0.09968 0.104545,0.03173 0.145455,0.05891 0.177273,0.131405 0.06364,0.154062 0.09091,0.217496 0.172727,0.217496 0.05,0 0.06364,-0.01362 0.07273,-0.03623 0.07273,-0.240153 0.07727,-0.249217 0.268181,-0.299059 0.02273,-0.0091 0.03182,-0.02268 0.03182,-0.05435 0,-0.07703 -0.02727,-0.104219 -0.06364,-0.117812 -0.15,-0.05891 -0.172727,-0.08156 -0.2,-0.185776 -0.01818,-0.09063 -0.02273,-0.135934 -0.06818,-0.135934 z"
path id: "logo-text-okyanus-u", d: "m 12.640197,0.85111479 c -0.03408,0 -0.316035,0.07413 -0.365608,0.08648 -0.02788,0.003 -0.03099,0.0093 -0.02788,0.04324 0.0093,0.04942 0.02169,0.06177 0.03718,0.07104 0.11464,0.06795 0.127034,0.08339 0.127034,0.138989 0.0031,0.108103 -0.0062,0.324307 -0.0062,0.639349 0,0.07104 0.0031,0.15752 0.04028,0.213117 0.07436,0.120459 0.201394,0.157521 0.322231,0.157521 0.05887,0 0.13323,-0.01852 0.204493,-0.05251 0.08366,-0.04324 0.201394,-0.105015 0.275755,-0.13899 l -0.0031,0.129725 c 0,0.02163 0.0093,0.03087 0.02788,0.0525 0.01239,0.01852 0.03099,0.01852 0.05887,0.01546 0.05267,-0.0093 0.22928,-0.06177 0.396592,-0.08031 0.01859,0 0.02479,-0.0093 0.05267,-0.120455 0.0062,-0.01546 -0.02788,-0.04324 -0.04028,-0.03704 -0.07126,0.01852 -0.148722,0.03704 -0.164214,0.03704 -0.01859,0.003 -0.02788,0 -0.03098,-0.01852 -0.0031,-0.01852 -0.01549,-0.08957 -0.01549,-0.194582 v -0.311955 c 0,-0.203847 0.0124,-0.315041 0.01549,-0.410786 0,-0.09266 0,-0.11428101 -0.0062,-0.14516901 -0.0031,-0.0247 -0.01549,-0.03704 -0.05267,-0.03704 -0.142525,0 -0.424477,0.03398 -0.436871,0.03704 -0.0093,0.003 -0.0093,0.0062 -0.0093,0.01546 0,0.0093 0.0062,0.05251 0.0124,0.06795 0.0031,0.0093 0.0093,0.01852 0.02788,0.02163 0.108443,0.03087 0.142525,0.04015 0.164214,0.07104 0.03718,0.04942 0.03718,0.126638 0.03718,0.333577 0,0.160608 -0.0093,0.287241 -0.02169,0.373725 -0.0062,0.04324 -0.01859,0.05868 -0.04028,0.0803 -0.08056,0.06178 -0.182804,0.108102 -0.291247,0.111193 -0.105345,0 -0.269559,-0.06177 -0.269559,-0.213117 0,-0.203852 0.0093,-0.497271 0.01549,-0.651705 0.0062,-0.13589801 0.0093,-0.20384801 0.0062,-0.22855701 -0.0062,-0.03704 -0.0124,-0.0556 -0.04028,-0.0556 z"
path id: "logo-text-okyanus-s", d: "m 15.608165,1.8302138 c 0,-0.262532 -0.291248,-0.373726 -0.381101,-0.420053 -0.136328,-0.06795 -0.278853,-0.132811 -0.278853,-0.277979 0,-0.114281 0.08675,-0.16060801 0.15182,-0.16060801 0.161115,0 0.244771,0.14516401 0.297444,0.22855701 0.03099,0.04015 0.05267,0.04633 0.102246,0.04633 0.0093,0 0.03408,-0.01852 0.03099,-0.03087 -0.03408,-0.126633 -0.05887,-0.23473501 -0.06197,-0.33048501 0,-0.0062 0,-0.01235 -0.0093,-0.02163 -0.0093,-0.0062 -0.01549,-0.0062 -0.02479,-0.003 -0.0093,0.0062 -0.02788,0.0093 -0.05887,0.0093 -0.06816,-0.003 -0.139427,-0.01546 -0.223083,-0.01546 -0.08366,0 -0.207591,0.03087 -0.297444,0.101928 -0.102246,0.08339 -0.15182,0.16987301 -0.15182,0.27797501 0,0.216205 0.244771,0.32122 0.331526,0.367551 0.102246,0.05559 0.300542,0.123546 0.300542,0.302685 0,0.114281 -0.130131,0.179143 -0.213788,0.179143 -0.04648,0 -0.13323,-0.02781 -0.219984,-0.117368 -0.06817,-0.07104 -0.120837,-0.166786 -0.148722,-0.256357 -0.05577,0.01235 -0.07436,0.01852 -0.08676,0.0247 -0.0093,0.0062 -0.0093,0.01546 -0.0093,0.02781 0.01239,0.129724 0.01549,0.244005 0,0.364459 -0.0031,0.01546 0,0.02781 0.0093,0.03704 0.0124,0.0062 0.02479,0.0093 0.02788,0.0062 0.04648,-0.02163 0.06507,-0.01852 0.120837,-0.0062 0.04957,0.0093 0.192099,0.03087 0.28505,0.03087 0.120837,0 0.244772,-0.02781 0.347018,-0.09266 0.11464,-0.07722 0.161116,-0.176052 0.161116,-0.271802 z"
end.Translate(0, HEIGHT * 0.4)
end
end
end
module Footer
def call(page)
Layer!(Base::Logo, page).Translate((page.grid.width - Base::Logo::WIDTH) / 2.0) if page.respond_to?(:logo) && page.logo
Layer! Base::Page, page if page.topic
end
end
module Page
def call(page)
grid = page.grid
code = page.id.to_s.upcase
text code, id: "#{page.topic}-CODE", "text-anchor": "end", class: "code", x: grid.width, y: 15
end
end
def call(page)
Defaults "sodipodi:insensitive": true
Layer!(Base::Header, page).Translate(0, 10)
Layer!(Base::Footer, page).Translate(0, page.canvas.height - 25)
end
end
# vim: ft=ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment