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.

+
+ This interactive tutorial will teach you the basic building blocks to start building great apps with Angular. ## How to use this tutorial diff --git a/adev/src/content/tutorials/learn-angular/steps/25-next-steps/README.md b/adev/src/content/tutorials/learn-angular/steps/25-next-steps/README.md index f7a6fb5abec..256ddd9a91c 100644 --- a/adev/src/content/tutorials/learn-angular/steps/25-next-steps/README.md +++ b/adev/src/content/tutorials/learn-angular/steps/25-next-steps/README.md @@ -1,5 +1,10 @@ # Ready to explore more of Angular? +
+ +

You've done it! You completed the Learn Angular tutorial and learned the essentials of building apps.

+
+ You can also learn more in our [guides](overview) and [reference](api), or `ng new`. diff --git a/adev/src/content/tutorials/signal-forms/intro/README.md b/adev/src/content/tutorials/signal-forms/intro/README.md index bb767be6ca9..112ebc10ba5 100644 --- a/adev/src/content/tutorials/signal-forms/intro/README.md +++ b/adev/src/content/tutorials/signal-forms/intro/README.md @@ -1,5 +1,10 @@ # Learn Angular Signal Forms +
+ +

Welcome! Let's build forms with signals.

+
+ This interactive tutorial will teach you how to build reactive forms using Angular's Signal Forms API. ## How to use this tutorial diff --git a/adev/src/content/tutorials/signal-forms/steps/6-next-steps/README.md b/adev/src/content/tutorials/signal-forms/steps/6-next-steps/README.md index 750b90919fe..061094ad1ff 100644 --- a/adev/src/content/tutorials/signal-forms/steps/6-next-steps/README.md +++ b/adev/src/content/tutorials/signal-forms/steps/6-next-steps/README.md @@ -1,6 +1,9 @@ # Congratulations! -You've completed the Signal Forms tutorial and built a complete login form from scratch! +
+ +

You've done it! You completed the Signal Forms tutorial and built a login form from scratch.

+
## What you learned diff --git a/adev/src/content/tutorials/signals/intro/README.md b/adev/src/content/tutorials/signals/intro/README.md index b9d8df86d99..bbbfe98b877 100644 --- a/adev/src/content/tutorials/signals/intro/README.md +++ b/adev/src/content/tutorials/signals/intro/README.md @@ -1,5 +1,10 @@ # Learn Angular signals +
+ +

Welcome! Let's explore signals.

+
+ This interactive tutorial will teach you the fundamentals of Angular signals and how to use them to build reactive applications. ## How to use this tutorial diff --git a/adev/src/content/tutorials/signals/steps/11-next-steps/README.md b/adev/src/content/tutorials/signals/steps/11-next-steps/README.md index 55de1ae4c7f..3b95424cfa8 100644 --- a/adev/src/content/tutorials/signals/steps/11-next-steps/README.md +++ b/adev/src/content/tutorials/signals/steps/11-next-steps/README.md @@ -1,5 +1,10 @@ # Want to dive deeper into signals? +
+ +

You've done it! You completed the Signals tutorial and learned to manage reactive state with signals.

+
+ You can also learn more about signals with the following resources: