Skip to content
Merged
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
13 changes: 12 additions & 1 deletion site/lib/_sass/components/_tutorial_pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,19 @@
margin: 3rem 1rem;
}

img {
img {
display:flex;
justify-self: center;
max-width: 500px;
width: 100%;
}
}

// Images are centered and have a
// max width of 500px within the /learn directory
.learn-image-wrapper {
display: block;
margin: 0 auto;
max-width: 500px;
width: 100%;
}
2 changes: 1 addition & 1 deletion src/content/learn/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ showToc: false
---

<img src='/assets/images/docs/learn/learn-flutter-anyway.png'
alt="An image of Dash in front of a blackboard." class="image-wrapper" style="max-width: 500px; display:flex; justify-self: center;">
alt="An image of Dash in front of a blackboard." class="image-wrapper learn-image-wrapper">

## For beginners

Expand Down
2 changes: 1 addition & 1 deletion src/content/learn/pathway.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Deepen your understanding of how Flutter works under the hood by watching this v

</Stepper>

<img src="/assets/images/docs/learn/beginner.jpg" alt="Dash with question marks around her; looking curious." class="image-wrapper" style="max-width: 500px; display:flex; justify-self: center;">
<img src="/assets/images/docs/learn/beginner.jpg" alt="Dash with question marks around her; looking curious." class="image-wrapper learn-image-wrapper">



Expand Down
2 changes: 1 addition & 1 deletion src/content/learn/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ If either of those aren't true, please start at the [Learning pathway page](/lea

</div>
<div class="centered-rows">
<DashImage figure image="learn/tutorial-hero.png" alt="Dash with magnifying glass" img-style="max-width: 500px;" />
<DashImage figure image="learn/tutorial-hero.png" alt="Dash with magnifying glass" img-class="learn-image-wrapper" />
</div>
</div>

Expand Down
Loading