Skip to content

Commit

Permalink
Add help content for summer theme
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijsgroen committed Jan 21, 2025
1 parent 6913cda commit d9ce831
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/summer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Summer

It's Summer time! Enjoy the hot sun with some fresh cool blocks!

### Summer levels ☀️

During this season a new level type is available, **Summer levels**. In these levels, your
blocks are served on a cool plate, making them freeze up!

Make sure you remember what was where, because the blocks get slowly hidden!

Have fun!
13 changes: 13 additions & 0 deletions src/modules/Help/HelpContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ReactComponent as RefreshInstallationIOS } from "@/../docs/how-to-refre
import { ReactComponent as LevelTypes } from "@/../docs/level-types.md";
import { ReactComponent as Motivation } from "@/../docs/making-of.md";
import { ReactComponent as Spring } from "@/../docs/spring.md";
import { ReactComponent as Summer } from "@/../docs/summer.md";
import { ReactComponent as ZenMode } from "@/../docs/zen-mode.md";
import { getActiveTheme } from "@/game/themes";
import { getToday } from "@/support/schedule";
Expand Down Expand Up @@ -66,6 +67,11 @@ const HelpContent: React.FC<Props> = () => {
label: "Spring theme",
section: "spring",
disabled: activeTheme !== "spring"
},
{
label: "Summer theme",
section: "summer",
disabled: activeTheme !== "summer"
}
]}
/>
Expand Down Expand Up @@ -163,6 +169,13 @@ const HelpContent: React.FC<Props> = () => {
</HelpSection>
);
}
if (section === "summer") {
return (
<HelpSection onBack={() => setSection(null)} title="Summer theme">
<Summer />
</HelpSection>
);
}
return null;
};

Expand Down

0 comments on commit d9ce831

Please sign in to comment.