-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
475 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,86 @@ | ||
@keyframes background-scroll { | ||
0% { | ||
background-position-y: 0rem; | ||
} | ||
100% { | ||
background-position-y: 1.75rem; | ||
} | ||
} | ||
|
||
.tutorial { | ||
width: 35rem; | ||
|
||
& h1 { | ||
margin-bottom: 0.5rem; | ||
} | ||
|
||
&.floating { | ||
margin: 0; | ||
} | ||
|
||
& .border { | ||
border-image: url("/src/assets/images/shop/upgrades/upgrades-frame.png") | ||
30 24 stretch; | ||
border-image-width: 0.8rem; | ||
padding: 0.6rem 0.7rem 0.5rem 0.7rem; | ||
} | ||
|
||
& .container { | ||
display: flex; | ||
gap: 1rem; | ||
align-items: flex-start; | ||
margin-bottom: 1rem; | ||
} | ||
|
||
& .lime-text { | ||
color: lime; | ||
} | ||
|
||
& .violet-text { | ||
color: violet; | ||
} | ||
|
||
& .crimson-text { | ||
color: crimson; | ||
-webkit-text-stroke-color: white; | ||
} | ||
|
||
& .yellow-text { | ||
color: yellow; | ||
} | ||
|
||
& .gold-text { | ||
background-image: linear-gradient( | ||
0deg, | ||
yellow 25%, | ||
white 50%, | ||
yellow 75% | ||
); | ||
background-clip: text; | ||
-webkit-background-clip: text; | ||
color: transparent; | ||
animation: 2s background-scroll linear infinite forwards; | ||
} | ||
|
||
& .rainbow-text { | ||
background-image: linear-gradient( | ||
0deg, | ||
#ff32d1, | ||
#ff202d, | ||
#ff7600, | ||
#d5f300, | ||
#00ff00, | ||
#00b7f6, | ||
#ff32d1 | ||
); | ||
background-clip: text; | ||
-webkit-background-clip: text; | ||
color: transparent; | ||
animation: 5s background-scroll linear infinite forwards; | ||
} | ||
|
||
& > .controls { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/components/popups/tutorial/steps/clicker/index.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@keyframes background-scroll { | ||
0% { | ||
background-position-y: 0rem; | ||
} | ||
100% { | ||
background-position-y: 1.75rem; | ||
} | ||
} | ||
|
||
.clicker { | ||
& .coin { | ||
height: 384px; | ||
} | ||
|
||
& .spill { | ||
height: 80px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import coin from "@/assets/images/tutorial/clicker.png"; | ||
import spill from "@/assets/images/spill.png"; | ||
|
||
import tutorialClasses from "../../index.module.css"; | ||
|
||
import classes from "./index.module.css"; | ||
|
||
export function Clicker() { | ||
return ( | ||
<article className={classes.clicker}> | ||
<h1>Fuyo Coin</h1> | ||
<div className={tutorialClasses.container}> | ||
<div className={tutorialClasses.border}> | ||
<img src={coin} className={classes.coin}></img> | ||
</div> | ||
<div> | ||
<h2>Collecting Coins</h2> | ||
<p> | ||
Click on the{" "} | ||
<span className={tutorialClasses["gold-text"]}> | ||
Fuyo Coin | ||
</span>{" "} | ||
repeatedly to steal coins. Depending on upgrades, this | ||
can be quite powerful! | ||
</p> | ||
<h2>Fuyonade</h2> | ||
<p> | ||
A{" "} | ||
<span className={tutorialClasses["rainbow-text"]}> | ||
certain liquid | ||
</span>{" "} | ||
will fill up over time, granting a short bonus to | ||
production. Whenever it fills up, be sure to spill it! | ||
</p> | ||
<img src={spill} className={classes.spill} /> | ||
</div> | ||
</div> | ||
</article> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { Placement } from "@floating-ui/dom"; | ||
import { ComponentType } from "react"; | ||
|
||
import { PopupsRefs } from "../.."; | ||
|
||
import { Start } from "./start"; | ||
import { Clicker } from "./clicker"; | ||
import { Repro } from "./repro"; | ||
import { Shop } from "./shop"; | ||
|
||
export enum Step { | ||
START, | ||
CLICKER, | ||
REPRO, | ||
SHOP, | ||
END, | ||
} | ||
|
||
export interface StepMeta { | ||
component: ComponentType; | ||
position?: { | ||
reference: keyof PopupsRefs; | ||
placement: Placement; | ||
}; | ||
} | ||
|
||
export const meta: Partial<Record<Step, StepMeta>> = { | ||
[Step.START]: { | ||
component: Start, | ||
}, | ||
[Step.CLICKER]: { | ||
component: Clicker, | ||
position: { | ||
reference: "clicker", | ||
placement: "right", | ||
}, | ||
}, | ||
[Step.REPRO]: { | ||
component: Repro, | ||
position: { | ||
reference: "repro", | ||
placement: "left", | ||
}, | ||
}, | ||
[Step.SHOP]: { | ||
component: Shop, | ||
position: { | ||
reference: "shop", | ||
placement: "left", | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.