File tree Expand file tree Collapse file tree 5 files changed +16
-13
lines changed Expand file tree Collapse file tree 5 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,20 @@ export default function CheatsheetLegendComponent({
12
12
return (
13
13
< div
14
14
id = "legend"
15
- className = "border border-violet-300 rounded-lg bg-violet-100"
15
+ className = "border border-violet-300 dark:border-violet-500 rounded-lg bg-violet-100 dark:bg-violet-900 "
16
16
>
17
- < h2 className = "text-xl text-center my-1 text-violet-900" > Legend</ h2 >
17
+ < h2 className = "text-xl text-center my-1 text-violet-900 dark:text-violet-100" >
18
+ Legend
19
+ </ h2 >
18
20
< table className = "w-full" >
19
- < tr className = "text bg-violet-300" >
21
+ < tr className = "text bg-violet-300 dark:bg-violet-500 " >
20
22
< th className = "px-1 font-normal" > Term</ th >
21
23
< th className = "px-1 border-l border-violet-400 font-normal" >
22
24
Definition
23
25
</ th >
24
26
</ tr >
25
27
{ data . map ( ( { term, definition, link } ) => (
26
- < tr className = "odd:bg-violet-200" >
28
+ < tr className = "odd:bg-violet-200 odd:dark:bg-violet-600 dark:bg-violet-800 " >
27
29
< td className = "px-1" > { `<${ term } >` } </ td >
28
30
< td className = "border-l border-violet-400 px-1" >
29
31
{ link != null ? (
Original file line number Diff line number Diff line change @@ -22,18 +22,18 @@ export default function CheatsheetListComponent({
22
22
return (
23
23
< div
24
24
id = { section . id }
25
- className = "border border-stone-300 rounded-lg bg-stone-100"
25
+ className = "border border-stone-300 dark:border-stone-500 rounded-lg bg-stone-100 dark:bg-stone-700 "
26
26
>
27
27
< h2 className = "text-xl text-center my-1" > { section . name } </ h2 >
28
28
< table className = "w-full" >
29
- < tr className = "text bg-stone-300" >
29
+ < tr className = "text bg-stone-300 dark:bg-stone-500 " >
30
30
< th className = "px-1 font-normal" > Spoken form</ th >
31
31
< th className = "px-1 border-l border-stone-400 font-normal" >
32
32
Meaning
33
33
</ th >
34
34
</ tr >
35
35
{ spokenForms . map ( ( { item, spokenForm } ) => (
36
- < tr className = "odd:bg-stone-200" >
36
+ < tr className = "odd:bg-stone-200 dark:odd:bg-stone-600 " >
37
37
< td className = "px-1" >
38
38
< span className = "text-stone-400" > "</ span >
39
39
{ spokenForm . spokenForm }
Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ export default function CheatsheetNotesComponent(): JSX.Element {
5
5
return (
6
6
< div
7
7
id = "notes"
8
- className = "p-2 border border-violet-300 rounded-lg bg-violet-100"
8
+ className = "p-2 border border-violet-300 dark:border-violet-500 rounded-lg bg-violet-100 dark:bg-violet-900 "
9
9
>
10
- < h2 className = "text-xl text-center mb-1 text-violet-900" > Notes</ h2 >
10
+ < h2 className = "text-xl text-center mb-1 text-violet-900 dark:text-violet-100" >
11
+ Notes
12
+ </ h2 >
11
13
< ul >
12
14
< li className = "" >
13
15
See the{ " " }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ type SmartLinkProps = {
14
14
* @returns SmartLink component
15
15
*/
16
16
const SmartLink : React . FC < SmartLinkProps > = ( { to, children } ) => (
17
- < span className = "text-cyan-700 hover:text-violet-700" >
17
+ < span className = "text-blue-500 hover:text-violet-700 dark:text-cyan-400 hover:dark:text-violet-200 " >
18
18
{ to . startsWith ( "https://" ) ? (
19
19
< a href = { to } target = "_blank" rel = "noopener noreferrer" >
20
20
{ children }
Original file line number Diff line number Diff line change @@ -6,17 +6,16 @@ import cheatsheetLegend from "../cheatsheetLegend";
6
6
import Helmet from "react-helmet" ;
7
7
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" ;
8
8
import { faCircleQuestion } from "@fortawesome/free-solid-svg-icons" ;
9
- import { Link } from "gatsby" ;
10
9
import CheatsheetNotesComponent from "../components/CheatsheetNotesComponent" ;
11
10
import SmartLink from "../components/SmartLink" ;
12
11
13
12
// markup
14
13
const CheatsheetPage = ( ) => {
15
14
return (
16
- < main >
15
+ < main className = "dark:text-stone-100" >
17
16
< Helmet
18
17
bodyAttributes = { {
19
- class : "bg-stone-50" ,
18
+ class : "bg-stone-50 dark:bg-stone-800 " ,
20
19
} }
21
20
/>
22
21
< h1 className = "text-2xl md:text-3xl text-center mt-2 mb-1 xl:mt-4" >
You can’t perform that action at this time.
0 commit comments