diff --git a/src/_data/arts.json b/src/_data/arts.json index b018c33..e2c0cba 100644 --- a/src/_data/arts.json +++ b/src/_data/arts.json @@ -1,38 +1,47 @@ [ { "artId":"ghost", - "bgColor":"Bgc-$artGhost" + "bgColor":"Bgc-$artGhost", + "showInMain": true }, { "artId":"flushed-emoji", - "bgColor":"Bgc-$artFlushedEmoji" + "bgColor":"Bgc-$artFlushedEmoji", + "showInMain": true }, { "artId":"penrose-triangle", - "bgColor":"Bgc-$artPenroseTriangle" + "bgColor":"Bgc-$artPenroseTriangle", + "showInMain": true }, { "artId":"exploding-head", - "bgColor":"Bgc-$artExplodingHead" + "bgColor":"Bgc-$artExplodingHead", + "showInMain": true }, { "artId":"clown-emoji", - "bgColor":"Bgc-$artClownEmoji" + "bgColor":"Bgc-$artClownEmoji", + "showInMain": false }, { "artId":"mushroom", - "bgColor":"Bgc-$artMushroom" + "bgColor":"Bgc-$artMushroom", + "showInMain": true }, { "artId":"robot-hare", - "bgColor":"Bgc-$artRobotHare" + "bgColor":"Bgc-$artRobotHare", + "showInMain": true }, { "artId":"funny-cake", - "bgColor":"Bgc-$artFunnyCake" + "bgColor":"Bgc-$artFunnyCake", + "showInMain": false }, { "artId":"cat", - "bgColor":"Bgc-$artCat" + "bgColor":"Bgc-$artCat", + "showInMain": false } ] \ No newline at end of file diff --git a/src/_data/extLinks.json b/src/_data/extLinks.json index c67127c..f6b6530 100644 --- a/src/_data/extLinks.json +++ b/src/_data/extLinks.json @@ -8,10 +8,5 @@ "name":"Github", "icon":"github", "link":"https://github.com/mlutcss/mlut" - }, - { - "name":"Documentation", - "icon":"book", - "link":"https://docs.mlut.style/" } ] diff --git a/src/_data/features.json b/src/_data/features.json index 861586e..951eddc 100644 --- a/src/_data/features.json +++ b/src/_data/features.json @@ -1,32 +1,17 @@ [ - { - "title": "Short and consistent naming ", - "text": "The abbreviations are based on the popularity of CSS properties and are compiled according to a single algorithm. If you know CSS, you almost know mlut", - "img": "lightning", - "bg": "-Gdl120d,$primary800,$primary750", - "bgH":"-Gdl120d,$primary700,$primary650_h", - "imgBg": "-Gdl120d,$primaryBright600,$primaryBright650", - "headC":"C-$primary300", - "textC":"C-$primary400" - }, - { - "title": "Rich and native syntax", - "text": "It is like Vim for CSS. Conveniently create complex styles with a powerful syntax that is conceptually close to CSS", - "img": "angled-brackets", - "bg": "-Gdl120d,$secondary800,$secondary750", - "bgH":"-Gdl120d,$secondary700,$secondary650_h", - "imgBg": "-Gdl120d,$secondaryBright600,$secondaryBright650", - "headC":"C-$secondary300", - "textC":"C-$secondary400" - }, - { - "title": "Written in Sass", - "text": "Leverage the full power of the preprocessor in your handwritten CSS and easily link it to utility classes", - "img": "sass", - "bg": "-Gdl120d,$tertiary800,$tertiary750", - "bgH":"-Gdl120d,$tertiary700,$tertiary650_h", - "imgBg": "-Gdl120d,$tertiaryBright600,$tertiaryBright650", - "headC":"C-$tertiary300", - "textC":"C-$tertiary400" - } + { + "title": "Rich syntax", + "text": "Powerful, Vim-like syntax for complex styles. Achieve more with less code while staying conceptually close to native CSS logic.", + "img": "curly-braces" + }, + { + "title": "Easy naming", + "text": "Abbreviations are generated by a single algorithm based on CSS property popularity. If you know CSS, you already know mlut.", + "img": "ease-name" + }, + { + "title": "Sass availability", + "text": "Full Sass power at your fingertips. Easily integrate preprocessor logic with utility classes for maximum flexibility.", + "img": "sass-availability" + } ] diff --git a/src/_data/navLinks.json b/src/_data/navLinks.json index 1bfd6cf..9e52a91 100644 --- a/src/_data/navLinks.json +++ b/src/_data/navLinks.json @@ -1,16 +1,24 @@ [ { - "link":"/#features", + "link":"/redesign-preview/#key-features", "text":"Features" }, { - "link":"/#comparison", + "link":"/redesign-preview/#comparison", "text":"Comparison" }, { - "link":"/arts", + "link":"#0", "text":"Art" }, + { + "link":"#0", + "text":"Showcase" + }, + { + "link":"https://docs.mlut.style/", + "text":"Docs" + }, { "link":"https://play.mlut.style/", "text":"Sandbox" diff --git a/src/_includes/components/code-block.ejs b/src/_includes/components/code-block.ejs index cdb304d..f482135 100644 --- a/src/_includes/components/code-block.ejs +++ b/src/_includes/components/code-block.ejs @@ -1,6 +1,6 @@ <% if(it.src) {%> -
<%- include(it.src)%>
+ <%- include(it.src)%>
Invalid source
diff --git a/src/_includes/components/link-button.ejs b/src/_includes/components/link-button.ejs index 6ee7847..d88491c 100644 --- a/src/_includes/components/link-button.ejs +++ b/src/_includes/components/link-button.ejs @@ -1,20 +1,14 @@ <% const css = { - buttonShape:"-Sz100p D-f Jc-c Ai-c P1u;3u Fns0.8r Bdrd1u Ts-$shortTs Bd1;s;$brand", - contentContainer: "D-f Jc-c Ai-c Fld-r Gap3u Fns1.1r ", - iconContainer: "D Apcr1 W0.9r", - icon:"D W100p Mxw25u Apcr1 Stw2", - span:"D Fns0.9r " + buttonShape:"-Sz100p D-f Jc-c Ai-c P10 Fns4u Lnh100p Lts0 Fnst-n Fnw400 Bdrd8 Ts-$shortTs Bd1;s;$brand", } - href=`href=${it.url}` - - if (it.variant === 'dark'){ - css.buttonColors = "Bgc-n C-$brand Bgc-$brand200_h"; - css.svgColors = "Fi-n St-$brand"; + if (it.variant === 'brand') { + css.buttonColors = "Bgc-$brand Bgc-$brand500_h Bgc-$brand200_a"; + css.textColor = "C#fff"; } else { - css.buttonColors = "Bgc-$brand Bgc-$brand500_h C#fff"; - css.svgColors = " Fi-$brand St#fff"; + css.buttonColors = "Bgc-$white100 Bgc-$white200_h Bgc-$white300_a"; + css.textColor = "C#22141A"; } if (!it.tag) { @@ -23,27 +17,6 @@ href = '' } %> -<<%= it.tag %> <%= href %> - class="btn <%= css.buttonShape %> <%= css.buttonColors %>"> - <% if (it.icon) {%> -