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
}
]
12 changes: 12 additions & 0 deletions src/_data/extLinksRedesign.json
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.

Нет смысла создавать подобные отдельный файлы на редизайн, может только в некоторых местах. Тут просто ссылки: их набор никак не влияет

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.

Еще раз: отдельные файлы с данными для редизайна не нужны

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"name":"X",
"icon":"xcom",
"link":"https://x.com/mlutcss"
},
{
"name":"Github",
"icon":"github",
"link":"https://github.com/mlutcss/mlut"
}
]
22 changes: 22 additions & 0 deletions src/_data/navLinksRedesign.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"link":"#0",
"text":"Features"
},
{
"link":"/arts",
"text":"Art"
},
{
"link":"#0",
"text":"Showcase"
},
{
"link":"https://docs.mlut.style/",
"text":"Docs"
},
{
"link":"https://play.mlut.style/",
"text":"Sandbox"
}
]
22 changes: 22 additions & 0 deletions src/_includes/redesign/components/link-button.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<%
const css = {
buttonShape:"-Sz100p D-f Jc-c Ai-c P10 Fns4u Lnh100p Lts0 Fnst-n Fnw400 Bdrd8 Ts-$shortTs Bd1;s;$brand",
}

if (it.variant === 'brand') {
css.buttonColors = "Bgc-$brand Bgc-$brand500_h Bgc-$brand200_a";
css.textColor = "C#fff";
} else {
css.buttonColors = "Bgc-$white100 Bgc-$white200_h Bgc-$white300_a";
css.textColor = "C#22141A";
}

if (!it.tag) {
it.tag = 'a'
} else {
href = ''
}
%>
<<%= it.tag %> class="btn <%= css.buttonShape %> <%= css.buttonColors %> <%= css.textColor %>" href="<%= it.url %>">
<%= it.text %>
</<%= it.tag %>>
23 changes: 23 additions & 0 deletions src/_includes/redesign/components/sm-link.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<%
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>
13 changes: 13 additions & 0 deletions src/_includes/redesign/header/burger.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<input type="checkbox" id="menu-toggle" hidden
class="-Ctx-burger Zi5 md_D-n">

<label for="menu-toggle"
class="D md_D-n P1u Bd-n Bdrd1u H90p Apcr1 Ps-r Bgc-n Zi5 Tsd-$transD Cs
D_af,b Ct_af,b W4u_af,b H0.5u_af,b M0;0;1u_af,b Bgc-$accent900_af,b Zi10_af,b Bdrd2u_af,b
Bxsd0;1.5u;0;0;$accent900_af
:c:+_Bgc-$brand :c:+_Bdc-$brand :c:+_Bgc-$accent900_af,b :c:+_Bxsd0;1.5u;0;0;$accent900_af :c:+_Bdc-n">
</label>

<label id="overlay" for="menu-toggle"
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.

2 лейбла на 1 инпут - это что-то странное

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.

Не исправлено

class="Ps-a W100vw Tsd-$transD H100vh T0 R0 D-n Bgc-n :c:~_D :c:~_Bgc#000*60p md_D-n">
</label>
59 changes: 59 additions & 0 deletions src/_includes/redesign/header/header.ejs
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.

Меняем основной хедер, отдельный шаблон не нужен

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.

На мобильном не соответствует макету + логотип надо чуть побольше: 64px хотя бы

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.

Исправил

Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<%
const css = {
navLinkDesktop: "md_Txd-n md_C-$brand_h Ts-$shortTs",
navLinkMobile: "C-$accent900 Txd-n C-$brand_a Pb2u Bdb1;s;$brand md_Bdb-n",
navLi: "md_Pb0 md_Bd-n md_M10"
}
%>

<header class=" D-f Jc-sb Ai-c P15u;4u;2u md_P0;5.5p Bgc-$core950 Bcf -Blr0.4 Ps-f H-$headerH W100p C-$headerC Zi20">
<%# Logo %>
<a href="/#hero-section" id="header-logo" class="D-f Jc-c Ai-c <%= it.cssHeaderLogoVisibility %> Ts-O;$shortTs">
<img src="/assets/img/logo.svg" alt="mlut logo" class="W64 md_W116 H-a">
</a>

<%# Menu %>
<div class="D-f Fld-r Jc-fe md_D-f md_Jc-e md_Gap8u md_Fns-$headerFns">
<%- include('./burger.ejs') %>
<div class="Bgc-$core950 Ps-a R0 T-$headerH Ts-$longTs Tf -Trx101p Bd1;s;$brand Bdr-n Bdtlr3u Bdblr3u Mxw50u ^burger:c:~_-Trx0 W50vw P10u;0 md_All-ust @:h<420_P3u;0">
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.

@:h<420 странное решение, при чем тут высота?

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.

md_All-ust тоже выглядит сомнительно

<nav class="M0;0;9u md_M0">
<h2 class="P0;5u M0;0;7u Txa-r C-$brand md_D-n @:h<420_M0;0;4u"> Menu </h2>
<ul id="nav-menu" class="C-$accent900 H40p D-f Jc-c Fld-c Gap5u P0;5u Txa-r Fns4u Lsst-n M0 md_Fld-r md_Jc-sb md_P0 md_H100p lg_Gap8u md_Txa-c @:h<420:w<gMd_Fld-r @:h<420:w<gMd_Flw-w @:h<420:w<gMd_Jc-fe">
<% for (let navLink of it.navLinksRedesign) {%>
<li class=" <%= css.navLi %>">
<a href="<%= navLink.link %>" class="<%= css.navLinkMobile %> <%= css.navLinkDesktop %>">
<%= navLink.text %>
</a>
</li>
<% }%>
</ul>
</nav>

<%# External links %>
<div>
<h2 class="P0;5u Txa-r M0;0;3u C-$brand md_D-n @:h<420_M0;0;4u"> Find us</h2>
<div class="D-f Fld-r Jc-fe Ai-c Gap3u P0;5u H8u md_D-n">
<% for (let extLink of it.extLinksRedesign) {%>
<%- include('../components/sm-link.ejs',{
icon: `${extLink.icon}`,
link: `${extLink.link}`,
name: `${extLink.name}`
}) %>
<% }%>
</div>
</div>
</div>

<%# Desktop links %>
<div class="Ai-c Jc-sb P1u;2.5u D-n md_D-f md_Gap8u md_P0">
<% for (let extLink of it.extLinksRedesign) { %>
<%- include('../components/sm-link.ejs',{
icon: `${extLink.icon}`,
link: `${extLink.link}`,
name: `${extLink.name}`
}) %>
<% } %>
</div>
</div>

</header>
3 changes: 2 additions & 1 deletion src/arts/exploding-head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
artLayer: "W100p Apcr1 Bdrd100p Ps-a"
}
%>
<div class="Ctnt-s M7u;a;0 H100p Apcr1 Plci-c;c Plcc-c D-f -ExplodingOrangeA#ee980d -ExplodingOrangeB#f8c829 -ExplodingBrownA#662800 -ExplodingBrownB#6f2810 -ExplodingBrownC#9c2a00 -ExplodingBrownD#934800 -ExplodingBrownE#9b3c18 -ExplodingBrownF#a24b0b -ExplodingBrownG#f7ae48 -ExplodingBrownH#d2a55a -ExplodingBrownI#efd3ac">

<div class="Ctnt-s H100p Apcr1 M1u;a;0 Plci-c;c Plcc-c D-f -ExplodingOrangeA#ee980d -ExplodingOrangeB#f8c829 -ExplodingBrownA#662800 -ExplodingBrownB#6f2810 -ExplodingBrownC#9c2a00 -ExplodingBrownD#934800 -ExplodingBrownE#9b3c18 -ExplodingBrownF#a24b0b -ExplodingBrownG#f7ae48 -ExplodingBrownH#d2a55a -ExplodingBrownI#efd3ac">
<!-- Head -->
<div class="Apcr1 Bdrd100p @c:apcr>=1/1_H80p @c:apcr<=1/1_W80p M-a Ps-r">
<!-- Back of the head parts -->
Expand Down
2 changes: 1 addition & 1 deletion src/arts/mushroom.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div class="-Sz100p Ctnt-s D-f Jc-c Ai-c -MushroomBrown#ad511c -MushroomRed#fc0522 -MushroomBlue#51dbc4 -MushroomBody#fffac7 -MushroomGreen#819e49 -MushroomDarkGreen#072b09 -MushroomBlack#000 -MushroomPink#e57e8a -MushroomWhite#fff -MushroomYellow#ece74f Ov-h">
<!-- Frame -->
<div class="@c:apcr>=1_H85p @c:apcr<=1_W85p Apcr1 Ps-r Bd1u;s;$mushroomBlack -Gdl0d,$mushroomGreen;40p,$mushroomBlack;40p;41p,$mushroomBlue;41p;100p">
<div class="@c:apcr>=1_H80p @c:apcr<=1_W80p Apcr1 Ps-r Bd1u;s;$mushroomBlack -Gdl0d,$mushroomGreen;40p,$mushroomBlack;40p;41p,$mushroomBlue;41p;100p">
<div class="<%= css.mushroomShadow %>"></div>
<!-- mushroom body -->
<div class="Ps-a T27p L12p W70p Apcr3/2 Bd1u;s;$mushroomBlack Bdt-tp Bdrd40p;60p;40p;60p/65p;65p;35p;35p Bgc-$mushroomBody Bxsd-i;-1u;-3u;5u;2u;$mushroomBrown">
Expand Down
36 changes: 36 additions & 0 deletions src/assets/img/decor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/img/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading