-
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
11 changed files
with
210 additions
and
30 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
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
33 changes: 33 additions & 0 deletions
33
src/app/pages/ColorGame/components/Instructions/Instructions.jsx
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,33 @@ | ||
import clsx from "clsx"; | ||
import { memo, useRef } from "react"; | ||
import cn from "./Instructions.module.scss"; | ||
import { Text } from "app/components"; | ||
import COLOR_BREAKDOWN from "./breakdown.png"; | ||
|
||
export const Instructions = memo(function Instructions() { | ||
return ( | ||
<div className={clsx(cn.container, "slim")}> | ||
<div className={cn.header}> | ||
<Text color="blue" className={clsx(cn.title, "bold")} size="L"> | ||
How to play | ||
</Text> | ||
</div> | ||
<p> | ||
Hex colors are made up of 6 hexadecimal characters (hexadecimals | ||
are numbers that go from 0-9, A, B, C, D, E, F, rather than just | ||
0-9 in our normal decimal system) and are split into 3 sections: | ||
Red, Green and Blue - commonly known as RGB. | ||
</p> | ||
<img | ||
src={COLOR_BREAKDOWN} | ||
alt="color hex code with individual groups color coded with highlights" | ||
/> | ||
<p> | ||
Each hex color is essentially a blend of these three primary | ||
colors. Compared to traditional print (CYMK), adding more of | ||
each color makes the overall color brighter so #FFFFFF would be | ||
white and #000000 would be black. | ||
</p> | ||
</div> | ||
); | ||
}); |
32 changes: 32 additions & 0 deletions
32
src/app/pages/ColorGame/components/Instructions/Instructions.module.scss
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,32 @@ | ||
.container { | ||
padding: 20px; | ||
border: 2px solid var(--silver); | ||
border-radius: 18px; | ||
// width: min-content; | ||
|
||
.header { | ||
display: grid; | ||
grid-template-columns: 1fr auto; | ||
width: 100%; | ||
} | ||
|
||
p { | ||
margin: 20px 0; | ||
line-height: 1.3em; | ||
width: fit-content; | ||
font-size: 1.3em; | ||
|
||
@media screen and (max-width: 1000px) { | ||
font-size: 1em; | ||
} | ||
|
||
} | ||
img { | ||
margin: 0 auto; | ||
max-height: 200px; | ||
|
||
@media screen and (max-width: 1000px) { | ||
max-height: 100px; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.