From ed680798bd00ada715b149f43ca45eeec481aa57 Mon Sep 17 00:00:00 2001 From: Oleg Ostapchuk Date: Sun, 3 May 2026 19:31:07 +0300 Subject: [PATCH 1/4] feat(art): add art funny-cake --- src/_data/arts.json | 4 ++ src/arts/funny-cake.ejs | 115 ++++++++++++++++++++++++++++++++++++ src/assets/style/style.scss | 2 + 3 files changed, 121 insertions(+) create mode 100644 src/arts/funny-cake.ejs diff --git a/src/_data/arts.json b/src/_data/arts.json index 475f78f..156989a 100644 --- a/src/_data/arts.json +++ b/src/_data/arts.json @@ -22,5 +22,9 @@ { "artId":"robot-hare", "bgColor":"Bgc-$artRobotHare" + }, + { + "artId":"funny-cake", + "bgColor":"Bgc-$artFunnyCake" } ] \ No newline at end of file diff --git a/src/arts/funny-cake.ejs b/src/arts/funny-cake.ejs new file mode 100644 index 0000000..c17fcd6 --- /dev/null +++ b/src/arts/funny-cake.ejs @@ -0,0 +1,115 @@ +<% + const css = { + bead: 'Ps-a Apcr4/3 -Bdy2 -Bdys-s -Bdyc-$cakeBlack Bdrd50p Tf -Tr-50p;-50p Bgc-$cakeWhite Bxsd-i;0;0;2u;2;$cakeRed', + creamW: 'Ps-a -Sz100p Bdrd50p Bgc-$cakeWhite', + creamY: 'Ps-a Apcr2/1 Bdrd50p Bgc-$cakeYellow Ov-h' + } +%> + +
+
+ +
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/assets/style/style.scss b/src/assets/style/style.scss index 84524c0..ebbd06e 100644 --- a/src/assets/style/style.scss +++ b/src/assets/style/style.scss @@ -98,6 +98,7 @@ html{ --ml-artExplodingHead:#003b2a; --ml-artClownEmoji: #065054; --ml-artRobotHare: #6f592b; + --ml-artFunnyCake: #1f3e6e; } } @@ -156,6 +157,7 @@ html{ --ml-artExplodingHead:#9cffe5; --ml-artClownEmoji: #10bac3; --ml-artRobotHare: #947e4f; + --ml-artFunnyCake: #6295e3; } } From bad5cc321677bcd477f1ca50e7fa51a8725e6283 Mon Sep 17 00:00:00 2001 From: Oleg Ostapchuk Date: Mon, 4 May 2026 18:24:36 +0300 Subject: [PATCH 2/4] fix(art): add cycle for beads --- src/arts/funny-cake.ejs | 53 +++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/src/arts/funny-cake.ejs b/src/arts/funny-cake.ejs index c17fcd6..e3bf2e8 100644 --- a/src/arts/funny-cake.ejs +++ b/src/arts/funny-cake.ejs @@ -3,7 +3,16 @@ bead: 'Ps-a Apcr4/3 -Bdy2 -Bdys-s -Bdyc-$cakeBlack Bdrd50p Tf -Tr-50p;-50p Bgc-$cakeWhite Bxsd-i;0;0;2u;2;$cakeRed', creamW: 'Ps-a -Sz100p Bdrd50p Bgc-$cakeWhite', creamY: 'Ps-a Apcr2/1 Bdrd50p Bgc-$cakeYellow Ov-h' - } + }; + + const leftBeads = [ + { top: -10, left: 1, width: 6 }, + { top: 0, left: 3, width: 8 }, + { top: 16, left: 7, width: 10 }, + { top: 28, left: 13, width: 12 }, + { top: 38, left: 22, width: 15 }, + { top: 45, left: 34, width: 18 } + ]; %>
@@ -31,20 +40,13 @@
-
-
-
-
-
-
- -
-
-
-
-
-
- + <% leftBeads.forEach((bead) => { %> + +
+ +
+ <% }); %> +
@@ -56,20 +58,13 @@
-
-
-
-
-
-
- -
-
-
-
-
-
- + <% leftBeads.forEach((bead) => { %> + +
+ +
+ <% }); %> +
From 5cc071272bc2a1a85a88e96949fecc80438cec0b Mon Sep 17 00:00:00 2001 From: Oleg Ostapchuk Date: Tue, 5 May 2026 16:32:18 +0300 Subject: [PATCH 3/4] fix(art): fix cycle beads --- src/arts/funny-cake.ejs | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/src/arts/funny-cake.ejs b/src/arts/funny-cake.ejs index e3bf2e8..a177288 100644 --- a/src/arts/funny-cake.ejs +++ b/src/arts/funny-cake.ejs @@ -4,15 +4,8 @@ creamW: 'Ps-a -Sz100p Bdrd50p Bgc-$cakeWhite', creamY: 'Ps-a Apcr2/1 Bdrd50p Bgc-$cakeYellow Ov-h' }; - - const leftBeads = [ - { top: -10, left: 1, width: 6 }, - { top: 0, left: 3, width: 8 }, - { top: 16, left: 7, width: 10 }, - { top: 28, left: 13, width: 12 }, - { top: 38, left: 22, width: 15 }, - { top: 45, left: 34, width: 18 } - ]; + const leftBeads = ['T-10p L1p W6p', 'T0p L3p W8p', 'T16p L7p W10p', 'T28p L13p W12p', 'T38p L22p W15p', 'T45p L34p W18p']; + const rightBeads = ['T-10p L99p W6p', 'T0p L97p W8p', 'T16p L93p W10p', 'T28p L87p W12p', 'T38p L78p W15p', 'T45p L66p W18p']; %>
@@ -40,12 +33,12 @@
- <% leftBeads.forEach((bead) => { %> + <% for (let i = 0; i < leftBeads.length; i++) { %> -
+
-
- <% }); %> +
+ <% }; %>
@@ -58,12 +51,12 @@
- <% leftBeads.forEach((bead) => { %> + <% for (let i = 0; i < leftBeads.length; i++) { %> -
+
-
- <% }); %> +
+ <% }; %>
From 0af5d138b2baee2881b235ee149e6d6a308c6bb5 Mon Sep 17 00:00:00 2001 From: Oleg Ostapchuk Date: Wed, 6 May 2026 16:03:50 +0300 Subject: [PATCH 4/4] fix(art): add cycle for cream and fix style eyes --- src/arts/funny-cake.ejs | 74 ++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 46 deletions(-) diff --git a/src/arts/funny-cake.ejs b/src/arts/funny-cake.ejs index a177288..9a3e863 100644 --- a/src/arts/funny-cake.ejs +++ b/src/arts/funny-cake.ejs @@ -1,11 +1,14 @@ <% const css = { + eye: 'Ps-a Apcr1 Bdrd50p', bead: 'Ps-a Apcr4/3 -Bdy2 -Bdys-s -Bdyc-$cakeBlack Bdrd50p Tf -Tr-50p;-50p Bgc-$cakeWhite Bxsd-i;0;0;2u;2;$cakeRed', - creamW: 'Ps-a -Sz100p Bdrd50p Bgc-$cakeWhite', - creamY: 'Ps-a Apcr2/1 Bdrd50p Bgc-$cakeYellow Ov-h' + creamWhite: 'Ps-a -Sz100p Bdrd50p Bgc-$cakeWhite', + creamYellow: 'Ps-a Apcr2/1 Bdrd50p Bgc-$cakeYellow Ov-h', + leftBeads: ['T-10p L1p W6p', 'T0p L3p W8p', 'T16p L7p W10p', 'T28p L13p W12p', 'T38p L22p W15p', 'T45p L34p W18p'], + rightBeads: ['T-10p L99p W6p', 'T0p L97p W8p', 'T16p L93p W10p', 'T28p L87p W12p', 'T38p L78p W15p', 'T45p L66p W18p'], + sizeCreamWhite: ['B-5p R10p', 'B-5p L10p', 'T-5p L-10p', 'T-10p L-10p', 'T-5p R-10p', 'T-10p R-10p', 'T-10p L0p', 'T-10p L5p', 'T-10p R5p'], + sizeCreamYellow: ['T-20p L55p W30p', 'T-20p L15p W30p', 'T15p L72p W30p', 'T35p L60p W30p', 'T15p L-2p W30p', 'T35p L10p W30p', 'T45p L35p W30p', 'T5p L20p W25p', 'T5p L55p W25p'] }; - const leftBeads = ['T-10p L1p W6p', 'T0p L3p W8p', 'T16p L7p W10p', 'T28p L13p W12p', 'T38p L22p W15p', 'T45p L34p W18p']; - const rightBeads = ['T-10p L99p W6p', 'T0p L97p W8p', 'T16p L93p W10p', 'T28p L87p W12p', 'T38p L78p W15p', 'T45p L66p W18p']; %>
@@ -13,18 +16,18 @@
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
@@ -33,11 +36,11 @@
- <% for (let i = 0; i < leftBeads.length; i++) { %> + <% for (let i = 0; i < css.leftBeads.length; i++) { %> -
+
-
+
<% }; %>
@@ -51,24 +54,19 @@
- <% for (let i = 0; i < leftBeads.length; i++) { %> + <% for (let i = 0; i < css.leftBeads.length; i++) { %> -
+
-
- <% }; %> +
+ <% } %>
-
-
-
-
-
-
+
@@ -77,27 +75,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ <% for (let i = 0; i < css.sizeCreamWhite.length; i++) { %> +
+
+
+ <% } %>