diff --git a/adev/shared-docs/styles/docs/_tutorial-mascot.scss b/adev/shared-docs/styles/docs/_tutorial-mascot.scss new file mode 100644 index 00000000000..77148995b3e --- /dev/null +++ b/adev/shared-docs/styles/docs/_tutorial-mascot.scss @@ -0,0 +1,52 @@ +@use '../media-queries' as mq; + +@mixin docs-tutorial-mascot() { + .docs-tutorial-mascot { + display: flex; + align-items: flex-start; + gap: 1rem; + margin-block: 1.5rem; + + &__angie { + flex: none; + width: clamp(150px, 18vw, 200px); + height: auto; + margin: 0; + } + + &__bubble { + position: relative; + flex: 0 1 auto; + min-width: 0; + max-width: 34ch; + margin-block-start: 1rem; + margin-inline-start: -0.25rem; + padding: 1rem 1.5rem; + border-radius: 1.25rem; + background: var(--septenary-contrast); + + &::before { + content: ''; + position: absolute; + inset-block-start: 1.5rem; + inset-inline-start: -0.4rem; + width: 1rem; + height: 1rem; + background: inherit; + transform: rotate(45deg); + } + } + } + + @include mq.for-phone-only { + .docs-tutorial-mascot { + &__angie { + width: clamp(104px, 28vw, 140px); + } + + &__bubble { + padding: 0.75rem 1.25rem; + } + } + } +} diff --git a/adev/shared-docs/styles/global-styles.scss b/adev/shared-docs/styles/global-styles.scss index ab4ac9141a4..72d1b817823 100644 --- a/adev/shared-docs/styles/global-styles.scss +++ b/adev/shared-docs/styles/global-styles.scss @@ -29,6 +29,7 @@ @use 'docs/pill'; @use 'docs/steps'; @use 'docs/table'; +@use 'docs/tutorial-mascot'; @use 'docs/video'; @use 'docs/mermaid'; @@ -81,6 +82,7 @@ $theme: mat.m2-define-light-theme( @include pill.docs-pill(); @include steps.docs-steps(); @include table.docs-table(); +@include tutorial-mascot.docs-tutorial-mascot(); @include video.docs-video(); // Include custom angular.dev styles diff --git a/adev/src/content/tutorials/learn-angular/intro/README.md b/adev/src/content/tutorials/learn-angular/intro/README.md index 92210d53066..f016d54203c 100644 --- a/adev/src/content/tutorials/learn-angular/intro/README.md +++ b/adev/src/content/tutorials/learn-angular/intro/README.md @@ -1,5 +1,10 @@ # Welcome to the Angular tutorial +
Welcome! Let's learn the building blocks of Angular.
+You've done it! You completed the Learn Angular tutorial and learned the essentials of building apps.
+Welcome! Let's build forms with signals.
+You've done it! You completed the Signal Forms tutorial and built a login form from scratch.
+Welcome! Let's explore signals.
+You've done it! You completed the Signals tutorial and learned to manage reactive state with signals.
+