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/ReferenceDirectoryWithFilter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const ReferenceDirectoryWithFilter = ({
return (
<div>
<div class="h-0 overflow-visible">
<div class="content-grid-simple absolute -left-0 -right-0 -top-[60px] h-[75px] border-b border-sidebar-type-color bg-accent-color px-5 pb-lg md:px-lg ">
<div class="content-grid-simple absolute -left-0 -right-0 -top-[30px] h-[75px] border-b border-sidebar-type-color bg-accent-color px-5 pb-lg md:px-lg ">
<div class="text-body col-span-2 flex w-full max-w-[750px] border-b border-accent-type-color text-accent-type-color">
<input
type="text"
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
2 changes: 1 addition & 1 deletion src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const headerTopic = topic
</div>
{
HeaderContent && (
<div class="px-5 md:px-lg pt-sm pb-lg">
<div class="px-5 md:px-lg pt-xl pb-lg">
<div class="rendered-markdown">
<HeaderContent />
</div>
Expand Down