Skip to content

Commit 0dd6ba2

Browse files
authored
Merge pull request #29 from Marvie-03/master
feat: Replace text labels in navigation button with icons
2 parents 8861019 + 68d6953 commit 0dd6ba2

File tree

5 files changed

+34
-2
lines changed

5 files changed

+34
-2
lines changed

doc/package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"postcss": "^8.4.47",
1616
"react": "^18.3.1",
1717
"react-dom": "^18.3.1",
18+
"react-icons": "^5.3.0",
1819
"react-router-dom": "^6.26.2",
1920
"react-syntax-highlighter": "^15.5.0",
2021
"tailwindcss": "^3.4.13"

doc/src/components/introduction.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
const Introduction = () => {
23
return (
34
<div className="p-6 bg-gray-900 shadow-lg rounded-lg md:p-8 lg:p-10">
@@ -48,6 +49,7 @@ const Introduction = () => {
4849
<li className="mb-2">
4950
<strong>Secure:</strong> Built-in security features to protect your applications
5051
and data.
52+
5153
</li>
5254
</ul>
5355
</div>

doc/src/layout.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Link, NavLink } from "react-router-dom";
22
import Header from "./components/header";
33
import Typography from "./components/general/typography";
4+
import { CiMenuBurger, CiCircleChevLeft } from "react-icons/ci";
45
import { useState } from "react";
56

67
const Layout = ({ children }) => {
@@ -78,12 +79,17 @@ const Layout = ({ children }) => {
7879
</li>
7980
</ul>
8081
</nav>
82+
{
83+
// Updated the navigation button to replace the text labels with icons for better visual appeal and user experience.
84+
// The button now uses <CiCircleChevLeft /> to indicate "Close Menu" and <CiMenuBurger /> for "Open Menu".
85+
// Added Tailwind CSS class "text-2xl" for appropriate icon sizing.
86+
}
8187
<main className="flex-1 p-4 bg-gray-800 text-white">
8288
<button
83-
className="md:hidden mb-4 text-blue-500"
89+
className="md:hidden mb-4 text-blue-500 text-2xl"
8490
onClick={() => setIsNavOpen(!isNavOpen)}
8591
>
86-
{isNavOpen ? "Close Menu" : "Open Menu"}
92+
{isNavOpen ? <CiCircleChevLeft /> : <CiMenuBurger />}
8793
</button>
8894
{children}
8995
</main>

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)