Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/components/PageHeader/RootPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const borderStyle = isFilterRoute ? "" : "border-b border-sidebar-type-color";
---

<div
class=`content-grid-simple min-h-[350px] h-[50vh] pt-[11.25rem] lg:pt-4xl bg-accent-color text-accent-type-color pb-md px-5 md:px-lg ${borderStyle}`
class=`content-grid-simple min-h-[350px] pt-[11.25rem] lg:pt-4xl bg-accent-color text-accent-type-color pb-md px-5 md:px-lg ${borderStyle}`
>
<h1 class="whitespace-pre-line col-span-full mb-5">{title}</h1>
<p class="text-h3 !mt-0 mb-3xl col-span-2">{subtitle}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ function draw() {

  fill("green");

  rect(0, horizon, 400, 400);
  rect(0, horizon, 400, 200);

}
```
Expand Down
6 changes: 3 additions & 3 deletions src/content/tutorials/en/repeating-with-loops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ Above `setup()`:
In `draw()`:

- After the code that draws the finish line, declare a new local variable `x` to position all the body segments: `let x = circX;`
- Add a *for loop* using: `for (let i = 0; i < length; i += 1) { }`
- Add a *for loop* using: `for (let i = 0; i < segments; i += 1) { }`
- A *for loop* will repeat the code we write inside the curly brackets multiple times. 
- Move the lines of code that draw the `circle()` into the curly brackets of the *for loop*.
- After the for loop, add: `circX += spacing` 
Expand Down Expand Up @@ -936,7 +936,7 @@ function moveCaterpillars() {
  for (let i = 0; i < numCaterpillars; i += 1) {
    //Give each caterpillar a
    //random speed.
    move = random(5, 30);
    let move = random(5, 30);
    caterpillarEnds[i] += move;
}
}
Expand Down Expand Up @@ -1001,7 +1001,7 @@ function moveCaterpillars() {
  for (let i = 0; i < numCaterpillars; i += 1) {
    //Give each caterpillar a
    //random speed.
    move = random(5, 30);
    let move = random(5, 30);

    // Update caterpillars' x-coordinates
    caterpillarEnds[i] += move;
Expand Down