From bcc2d10e564dff466030bdd59f7530fc035eb281 Mon Sep 17 00:00:00 2001 From: Marek Piasecki Date: Tue, 17 Jan 2023 21:14:02 +0100 Subject: [PATCH] writing documentation in progress --- src/index.js | 3 +- src/main.imba | 137 +++++++++------------------------- src/router.imba | 3 +- src/router_tag.imba | 6 +- src/views.json | 1 + src/views/home.imba | 18 +++++ src/views/installation.imba | 30 ++++++++ src/views/usage.imba | 144 ++++++++++++++++++++++++++++++++++++ 8 files changed, 232 insertions(+), 110 deletions(-) create mode 100644 src/views.json create mode 100644 src/views/home.imba create mode 100644 src/views/installation.imba create mode 100644 src/views/usage.imba diff --git a/src/index.js b/src/index.js index f72e144..737b6bb 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,2 @@ import './router.imba' -import './main.imba' -R.url_changed() // the best if you move it right before imba.mount \ No newline at end of file +import './main.imba' \ No newline at end of file diff --git a/src/main.imba b/src/main.imba index 104c1e4..2db5eba 100644 --- a/src/main.imba +++ b/src/main.imba @@ -1,13 +1,16 @@ -css +global css html, body m:0 p:0 body ff:mono bgc:gray9 a c:violet6 td:none td@hover:underline - .active, .activated filter:brightness(130%) + .active filter:brightness(130%) + .activated bgc:violet3 + .disabled, .disabled@hover filter:grayscale(100%) + .zoomed scale:1.05 .button d:inline-block m:2px bgc:none c:violet7 td:none bxs:sm us:none - .button@hover, .button.active bxs:md filter:hue-rotate(5deg) ml:0px pl:12px td:none + .button@hover, .button.active bxs:md filter:hue-rotate(5deg) mb:0px pt:12px td:none .button, code, .bordered p:10px bd:2px solid violet5 rd:10px d:inline-block .bordered p:2.5px bw:1.5px c:violet9 - .night filter:invert(100%) + .night filter:invert(20%) .gradient bg:linear-gradient(to right,violet7,blue6,violet7) fw:normal @@ -19,12 +22,12 @@ tag App d:bbox mx:auto my:50px bgc:white p:40px rd:5px maw:1024px of:auto @lt-xs m:0 px:0 rd:0 - + "pro-router-imba2: Imba2 integration with pro-router" <[d:flex flw:wrap w:100% jc:space-between]> - - + + ### "b/project/2" "c/book/3" @@ -32,104 +35,26 @@ tag App ### -tag Menu - +tag app-menu + v.toUpperCase! for v in R.views - ### - 'WRONG WAY!' - -