diff --git a/adev/src/content/tutorials/playground/3-minigame/src/assets/angry.svg b/adev/src/content/tutorials/playground/3-minigame/src/assets/angry.svg new file mode 100644 index 00000000000..0f8c92a2e4e --- /dev/null +++ b/adev/src/content/tutorials/playground/3-minigame/src/assets/angry.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/adev/src/content/tutorials/playground/3-minigame/src/assets/coffee.svg b/adev/src/content/tutorials/playground/3-minigame/src/assets/coffee.svg new file mode 100644 index 00000000000..9e0f119c08d --- /dev/null +++ b/adev/src/content/tutorials/playground/3-minigame/src/assets/coffee.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/adev/src/content/tutorials/playground/3-minigame/src/assets/error.svg b/adev/src/content/tutorials/playground/3-minigame/src/assets/error.svg new file mode 100644 index 00000000000..cae8db62f54 --- /dev/null +++ b/adev/src/content/tutorials/playground/3-minigame/src/assets/error.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/adev/src/content/tutorials/playground/3-minigame/src/assets/greeting.svg b/adev/src/content/tutorials/playground/3-minigame/src/assets/greeting.svg new file mode 100644 index 00000000000..21fd754dcab --- /dev/null +++ b/adev/src/content/tutorials/playground/3-minigame/src/assets/greeting.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/adev/src/content/tutorials/playground/3-minigame/src/assets/laughing.svg b/adev/src/content/tutorials/playground/3-minigame/src/assets/laughing.svg new file mode 100644 index 00000000000..5ac679258f4 --- /dev/null +++ b/adev/src/content/tutorials/playground/3-minigame/src/assets/laughing.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/adev/src/content/tutorials/playground/3-minigame/src/assets/sad.svg b/adev/src/content/tutorials/playground/3-minigame/src/assets/sad.svg new file mode 100644 index 00000000000..2f62614f04d --- /dev/null +++ b/adev/src/content/tutorials/playground/3-minigame/src/assets/sad.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/adev/src/content/tutorials/playground/3-minigame/src/assets/superhero.svg b/adev/src/content/tutorials/playground/3-minigame/src/assets/superhero.svg new file mode 100644 index 00000000000..16f228d98bd --- /dev/null +++ b/adev/src/content/tutorials/playground/3-minigame/src/assets/superhero.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/adev/src/content/tutorials/playground/3-minigame/src/game.css b/adev/src/content/tutorials/playground/3-minigame/src/game.css index 4980150df4c..3dc8572885b 100644 --- a/adev/src/content/tutorials/playground/3-minigame/src/game.css +++ b/adev/src/content/tutorials/playground/3-minigame/src/game.css @@ -234,38 +234,73 @@ a.gradient-button:focus-visible span:nth-of-type(2) { top: 50%; left: 50%; transform: translate(-50%, -50%); - width: 50%; + width: min(90%, 480px); display: flex; flex-direction: column; - justify-content: space-around; + justify-content: center; align-items: center; + gap: 1rem; padding: 2rem; z-index: 10; } -svg.personified { - height: 125px; +.angie-reaction { + display: flex; + align-items: flex-start; + gap: 0.75rem; } -.personified .g { - fill: #fff; +.personified { + height: 160px; + width: auto; + flex: none; + animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); } -.personified .h { - stroke-miterlimit: 10; - stroke-width: 4px; +@keyframes pop-in { + from { + opacity: 0; + transform: scale(0.6) translateY(10px); + } + + to { + opacity: 1; + transform: scale(1) translateY(0); + } } -.personified .h, -.personified .i { - fill: none; - stroke: #000; - stroke-linecap: round; +.result-quote { + position: relative; + margin-top: 2rem; + max-width: 32ch; + padding: 0.85rem 1.25rem; + border-radius: 1rem; + background: #f1f1f3; + text-align: center; + animation: fade-in 0.4s ease 0.15s both; } -.personified .i { - stroke-linejoin: round; - stroke-width: 3px; +.result-quote::before { + content: ''; + position: absolute; + top: 1.1rem; + left: -0.4rem; + width: 0.9rem; + height: 0.9rem; + background: inherit; + transform: rotate(45deg); +} + +@keyframes fade-in { + from { + opacity: 0; + transform: translateY(6px); + } + + to { + opacity: 1; + transform: translateY(0); + } } #close { diff --git a/adev/src/content/tutorials/playground/3-minigame/src/game.html b/adev/src/content/tutorials/playground/3-minigame/src/game.html index 2f6d646b150..3c635edc86c 100644 --- a/adev/src/content/tutorials/playground/3-minigame/src/game.html +++ b/adev/src/content/tutorials/playground/3-minigame/src/game.html @@ -170,73 +170,12 @@ {{ animatedAccuracy() | number: '1.1-1' }}% accurate - -