Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions src/_data/arts.json
Original file line number Diff line number Diff line change
@@ -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
}
]
5 changes: 0 additions & 5 deletions src/_data/extLinks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,5 @@
"name":"Github",
"icon":"github",
"link":"https://github.com/mlutcss/mlut"
},
{
"name":"Documentation",
"icon":"book",
"link":"https://docs.mlut.style/"
}
]
45 changes: 15 additions & 30 deletions src/_data/features.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
14 changes: 11 additions & 3 deletions src/_data/navLinks.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/_includes/components/code-block.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% if(it.src) {%>
<div class="W100p Bdrd2u P0 M0;0;2u">
<pre class="D M0 Fns2u xxl_Fns2.2u Lnh1.8 code"><code class="language-<%= it.lang%> "><%- include(it.src)%></code></pre>
<div class="-Sz100p Bdrd2u P0">
<pre class=" M0 Fns2.2u xxl_Fns2.4u Lnh1.8 code H100p"><code class="language-<%= it.lang%>"><%- include(it.src)%></code></pre>
</div>
<% } else {%>
<p class="C-red"> Invalid source</p>
Expand Down
45 changes: 9 additions & 36 deletions src/_includes/components/link-button.ejs
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -23,27 +17,6 @@
href = ''
}
%>
<<%= it.tag %> <%= href %>
class="btn <%= css.buttonShape %> <%= css.buttonColors %>">
<% if (it.icon) {%>
<div class=" <%= css.contentContainer %>">
<div class="<%= css.iconContainer %>">
<svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
class="<%= css.icon %> <%= css.svgColors %>">
<use href="/assets/img/icons.svg#<%= it.icon %>"></use>
</svg>
</div>
<span class="<%= css.span %> button-text">
<%= it.text %>
</span>
</div>
<% } else { %>
<div class="<%= css.contentContainer%>">
<span class="<%= css.span %> button-text">
<%= it.text %>
</span>
</div>
<% } %>
</<%= it.tag %>>

<<%= it.tag %> class="btn <%= css.buttonShape %> <%= css.buttonColors %> <%= css.textColor %>" href="<%= it.url %>">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В текущем варианте у кнопки всегда будет href, хотя и ссылка и button могут быть без href

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

исправил

<%= it.text %>
</<%= it.tag %>>
47 changes: 23 additions & 24 deletions src/_includes/components/sm-link.ejs
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
<% if (it.icon != 'github') {%>
<a href="<%= it.link %>" alt="Link to the project's GitHub" target="_blank"
class="-Ctx-logo D Ps Bxs-cb H100p Apcr1">
<svg
viewBox="0 0 100 100"
class="W100p Mxw25u Apcr1 Fi-$accent850 Fio1 ^logo:h:_Fi-$brand Ts-$shortTs">
<use href="/assets/img/icons.svg#<%= it.icon %>"></use>
</svg>
</a>
<% } else { %>
<a href="<%= it.link %>" alt="Link to the project's GitHub" target="_blank"
class="-Ctx-logo D-f Jc-sb Ai-c Ps Txd-n Ts-$shortTs H100p W50p Mxw15u md_Mxw12u Bd1;s;$accent850 Bdc-$brand_h Bdrd10u Bdl-n">
<svg
viewBox="0 0 100 100"
class="H100p Mxw25u Apcr1 Fi-$accent850 Fio1 ^logo:h:_Fi-$brand Ts-$shortTs">
<use class="-Sz100p" href="/assets/img/icons.svg#<%= it.icon %>"></use>
</svg>
<svg
viewBox="0 0 100 100"
class="W40p Pr10p Mxw25u Apcr1 Fi-$accent850 Fio1 ^logo:h:_Fi#ffd700 Ts-$shortTs">
<use href="/assets/img/icons.svg#star"></use>
</svg>
</a>
<% } %>
<%
if(it.name === "X") {
css.width = "24",
css.height = "24"
} else {
css.width = "26",
css.height = "26"
}
%>

<a
href="<%= it.link %>"
target="_blank"
class="-Ctx-logo Ps -Sz32 D-f Jc-c Ai-c"
>
<svg
class="Fi-$accent900 Fio1 ^logo:h:_Fi-$brand Ts-$shortTs"
width="<%= css.width %>"
height="<%= css.height %>"
>
<use href="/assets/img/icons.svg#<%= it.icon %>"></use>
</svg>
</a>
Loading