Skip to content

Commit

Permalink
refactor code to be used correctly
Browse files Browse the repository at this point in the history
install react icons
  • Loading branch information
JSA-Code committed Nov 15, 2023
1 parent 42f46eb commit ad7bee0
Show file tree
Hide file tree
Showing 13 changed files with 58 additions and 13 deletions.
11 changes: 10 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@
"lint": "next lint"
},
"dependencies": {
"next": "14.0.2",
"react": "^18",
"react-dom": "^18",
"next": "14.0.2"
"react-icons": "^4.12.0"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.0.2",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"eslint": "^8",
"eslint-config-next": "14.0.2"
"typescript": "^5"
}
}
7 changes: 7 additions & 0 deletions src/components/authLinks/AuthLinks.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import styles from "./authLinks.module.css";

const AuthLinks = () => {
return <div className={styles.container}>AuthLinks</div>;
};

export default AuthLinks;
Empty file.
2 changes: 1 addition & 1 deletion src/components/cardList/CardList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import styles from "./cardList.module.css";
import Pagination from "@/components/pagination/Pagination";

export const CardList = () => {
const CardList = () => {
return (
<div className={styles.container}>
<Pagination />
Expand Down
2 changes: 1 addition & 1 deletion src/components/categoryList/CategoryList.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import styles from "./categoryList.module.css";

export const CategoryList = () => {
const CategoryList = () => {
return <div className={styles.container}>CategoryList</div>;
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/featured/Featured.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import styles from "./featured.module.css";

export const Featured = () => {
const Featured = () => {
return <div className={styles.container}>Featured</div>;
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import styles from "./footer.module.css";

export const Footer = () => {
const Footer = () => {
return <div className={styles.container}>Footer</div>;
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/Menu.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import styles from "./menu.module.css";

export const Menu = () => {
const Menu = () => {
return <div className={styles.container}>Menu</div>;
};

Expand Down
25 changes: 23 additions & 2 deletions src/components/navbar/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
import React from "react";
import styles from "./navbar.module.css";
import Link from "next/link";
import AuthLinks from "@/components/authLinks/AuthLinks";
import ThemeToggle from "@/components/themeToggle/ThemeToggle";
import { FaFacebook, FaInstagram, FaTiktok, FaYoutube } from "react-icons/fa";

export const Navbar = () => {
return <div className={styles.container}>Navbar</div>;
const Navbar = () => {
return (
<div className={styles.container}>
<div className={styles.social}></div>

<FaFacebook />
<FaInstagram />
<FaTiktok />
<FaYoutube />
<div className={styles.logo}>ExampleBlog</div>
<div className={styles.links}>
<ThemeToggle />
<Link href="/">Homepage</Link>
<Link href="/">Contact</Link>
<Link href="/">About</Link>
<AuthLinks />
</div>
</div>
);
};

export default Navbar;
2 changes: 1 addition & 1 deletion src/components/pagination/Pagination.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import styles from "./pagination.module.css";

export const Pagination = () => {
const Pagination = () => {
return <div className={styles.container}>Pagination</div>;
};

Expand Down
7 changes: 7 additions & 0 deletions src/components/themeToggle/ThemeToggle.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import styles from "./themeToggle.module.css";

const ThemeToggle = () => {
return <div className={styles.container}>ThemeToggle</div>;
};

export default ThemeToggle;
Empty file.

0 comments on commit ad7bee0

Please sign in to comment.