diff --git a/package-lock.json b/package-lock.json index 67aaef7..e6f1b58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,7 @@ "@types/node": "^20", "@types/react": "^19", "@types/react-dom": "^19", + "@types/react-icons": "^2.2.7", "eslint": "^9", "eslint-config-next": "15.1.0", "postcss": "^8", @@ -903,6 +904,27 @@ "@types/react": "^19.0.0" } }, + "node_modules/@types/react-icon-base": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@types/react-icon-base/-/react-icon-base-2.1.6.tgz", + "integrity": "sha512-ebbN1JjCm6RxBd3HdI1+8VCdiOI4qMjnl9DIHWJFrB/eYLF4mzIgdL34PIqCJBLY3vlwil9v6IHQvzsa8vgMsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/react-icons": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/@types/react-icons/-/react-icons-2.2.7.tgz", + "integrity": "sha512-qxc8xtwgDG5Ub/WILU9tZa7zxz2UZqOU4yXbBa+Xg+0LbP031NB9gvf1d/ALvHLGCsCf3WEVttNoW/wc30jn1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/react": "*", + "@types/react-icon-base": "*" + } + }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "8.18.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.18.0.tgz", diff --git a/package.json b/package.json index 01d8f35..af7c1e3 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@types/node": "^20", "@types/react": "^19", "@types/react-dom": "^19", + "@types/react-icons": "^2.2.7", "eslint": "^9", "eslint-config-next": "15.1.0", "postcss": "^8", diff --git a/public/assets/images/Frame 26952.svg b/public/assets/images/Frame 26952.svg new file mode 100644 index 0000000..88a99db --- /dev/null +++ b/public/assets/images/Frame 26952.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/public/assets/images/HomeIcon.svg b/public/assets/images/HomeIcon.svg new file mode 100644 index 0000000..bbaeb2e --- /dev/null +++ b/public/assets/images/HomeIcon.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/dots-vertical-svgrepo-com.svg b/public/assets/images/dots-vertical-svgrepo-com.svg new file mode 100644 index 0000000..c32261e --- /dev/null +++ b/public/assets/images/dots-vertical-svgrepo-com.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/public/assets/images/jamkaran.png b/public/assets/images/jamkaran.png new file mode 100644 index 0000000..a5595bf Binary files /dev/null and b/public/assets/images/jamkaran.png differ diff --git a/public/assets/images/search-alt-svgrepo-com.svg b/public/assets/images/search-alt-svgrepo-com.svg new file mode 100644 index 0000000..1b12128 --- /dev/null +++ b/public/assets/images/search-alt-svgrepo-com.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/public/assets/images/🦆 icon _play_.svg b/public/assets/images/🦆 icon _play_.svg new file mode 100644 index 0000000..82f6bf3 --- /dev/null +++ b/public/assets/images/🦆 icon _play_.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/api/http.tsx b/src/api/http.tsx index 8264f44..8b51fc4 100644 --- a/src/api/http.tsx +++ b/src/api/http.tsx @@ -1,7 +1,7 @@ import axios from 'axios'; const http = axios.create({ - baseURL: 'http://88.99.212.243:7051', + baseURL: 'https://habibapp.com', // headers: { // 'Authorization': 'Token 36d8be53bed5cab8027b66952b3f2c334cdca664', // }, diff --git a/src/components/layout/header.tsx b/src/components/layout/header.tsx index 65215f9..e26bb7f 100644 --- a/src/components/layout/header.tsx +++ b/src/components/layout/header.tsx @@ -2,10 +2,10 @@ import Logo from "../../../public/assets/images/Hosseiniye.svg"; import Image from "next/image"; import Link from "next/link"; import LanguageSwitcher from "../language-switcher"; -import { HiMiniMagnifyingGlass } from "react-icons/hi2"; +import SearchDuas from "../ui/search-duas"; const Header = () => { return ( -
+
@@ -17,7 +17,7 @@ const Header = () => { Home
  • - About us + About us
  • Last Read @@ -26,16 +26,8 @@ const Header = () => {
  • -
    - - -
    + +
    diff --git a/src/components/layout/sidebar.tsx b/src/components/layout/sidebar.tsx index 3ac52b9..179808a 100644 --- a/src/components/layout/sidebar.tsx +++ b/src/components/layout/sidebar.tsx @@ -1,9 +1,23 @@ +import { useParams } from "next/navigation"; import Tabs from "../sidebar/tabs"; +import { useRouter } from "next/router"; function SideBar() { + const router = useRouter(); + const params = useParams(); + const slug = params?.slug as string; + console.log(router); + + if (router.pathname.includes("/about") || router.pathname.includes("/last-read")) { + return null; + } return ( -