Skip to content

Commit de5317f

Browse files
committed
fixing the colors
1 parent 9ae67cb commit de5317f

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/components/chapters/ChapterBox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import HeadingThree from "../typography/HeadingThree"
44
import BodyOne from "../typography/BodyOne"
55
import PropTypes from "prop-types"
66

7-
const ChapterBox = ({ text, edges, collapse }) => {
7+
const ChapterBox = ({ text, edges, collapse, color }) => {
88
const [open, setOpen] = useState(false)
99

1010
const openChapters = () => {
@@ -38,7 +38,7 @@ const ChapterBox = ({ text, edges, collapse }) => {
3838
</>
3939
) : (
4040
<>
41-
<HeadingThree className="">{text}</HeadingThree>
41+
<HeadingThree className={color}>{text}</HeadingThree>
4242

4343
{edges.map(edge => (
4444
<BodyOne className="text-blue-dark m-3" key={edge.node.id}>

src/components/chapters/Chapters.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,12 @@ const Chapters = ({
202202
]
203203
return (
204204
<>
205-
<div className="mt-10 text-center">
206-
<HeadingTwo className="text-center">Chapters</HeadingTwo>
205+
<div className="mt-10 text-left">
206+
<HeadingTwo className="text-center font-bold">Chapters</HeadingTwo>
207207
{/* chAPTERS GRID */}
208-
<HeadingThree className="text-center">Backend</HeadingThree>
208+
<HeadingThree className="text-center text-green font-bold">
209+
Backend
210+
</HeadingThree>
209211

210212
<div className="grid lg:grid-cols-2 sm:grid-cols-1">
211213
{/* <ChapterBox edges={epilouges} text="Epilouge" />
@@ -220,7 +222,9 @@ const Chapters = ({
220222
<ChapterBox edges={i.chapterEdge} text={i.chapterTitle} />
221223
))}
222224
</div>
223-
<HeadingThree className="text-center">Frontend</HeadingThree>
225+
<HeadingThree className="text-center text-blue font-bold">
226+
Frontend
227+
</HeadingThree>
224228

225229
<div className="flex justify-around">
226230
<FrameworkButton

0 commit comments

Comments
 (0)