global css
html, body m:0 p:0
body ff:mono bgc:gray9 mt:80px mt@portrait: 0
a c:violet6 td:none td@hover:underline
.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 cursor:pointer
.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(20%)
.gradient
bg:linear-gradient(to right,violet7,blue6,violet7)
fw:normal
-webkit-background-clip:text
-webkit-text-fill-color:transparent
tag App
css
d:vcc mx:auto my:50px bgc:white p:40px pb:60px 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"
###
tag app-menu
v.toUpperCase! for v in R.views
tag param-preview
"{R.view}: {JSON.stringify(R.params).replace(/"/g, ' ')}"
tag imba-code < pre
prop file
prop url
css
&.no-code code.content p:0
code d:block bd:0 rd:0 bgc:gray8
&.file bgc:amber3
&.content c:gray3
&.url bgc:gray3
.url bgc:white c:gray7 rd:full p:4px
file if file
<.url> url if url
tag code-inline < imba-code
css
d:inline
code d:inline-block
tag c-el
css d:inline c:gray3
tag c-op < c-el
css c:white fw:bold
tag c-fl < c-el
css c:purple5
tag c-c < c-el
css c:blue3
tag c-com < c-el
css c:gray5
"# "
tag c-str < c-el
"'{<[c:amber6 d:inline]>}'"
global css .c-br c:amber4 d:inline
tag c-tag < c-el
"<"
<[c:blue4 d:inline]>
">"
tag c-tag-def < c-el
"tag "
<[c:green5 d:inline]>
tag c-let < c-el
"let "
tag pro-tip
<[c:violet7 fw:bold txs:amber4 bdb:1.5px solid violet4]> "PRO TIP: "
global def Goto(target)
R.go(location.href)
target.scrollIntoView!
global css
.c-list
bgc:yellow1 py:30px mb:60px w:fit-content
li pr: 35px
li@hover cursor:pointer
ul fw:bold
li li fw:normal c:blue6
li li@hover c:blue4
tag content-list < ul
import './views/home.imba'
import './views/installation.imba'
import './views/usage.imba'
import './views/choosing-router-style.imba'
imba.mount if import.meta.env.MODE is 'development'