diff --git a/package-lock.json b/package-lock.json
index 0b8ccf6..4a1135b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23,6 +23,7 @@
"react-google-recaptcha": "^3.1.0",
"react-hook-form": "^7.51.2",
"react-intersection-observer": "^9.8.1",
+ "react-phone-input-2": "^2.15.1",
"react-redux": "^9.1.1",
"react-router-dom": "^6.22.3",
"swiper": "^11.1.0"
@@ -2854,6 +2855,11 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
+ "node_modules/classnames": {
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz",
+ "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow=="
+ },
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
@@ -4498,6 +4504,16 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/lodash.debounce": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
+ "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow=="
+ },
+ "node_modules/lodash.memoize": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
+ "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag=="
+ },
"node_modules/lodash.merge": {
"version": "4.6.2",
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
@@ -4509,6 +4525,16 @@
"resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz",
"integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ=="
},
+ "node_modules/lodash.reduce": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz",
+ "integrity": "sha512-6raRe2vxCYBhpBu+B+TtNGUzah+hQjVdu3E17wfusjyrXBka2nBS8OH/gjVZ5PvHOhWmIZTYri09Z6n/QfnNMw=="
+ },
+ "node_modules/lodash.startswith": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/lodash.startswith/-/lodash.startswith-4.2.1.tgz",
+ "integrity": "sha512-XClYR1h4/fJ7H+mmCKppbiBmljN/nGs73iq2SjCT9SF4CBPoUHzLvWmH1GtZMhMBZSiRkHXfeA2RY1eIlJ75ww=="
+ },
"node_modules/loose-envify": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
@@ -5040,6 +5066,23 @@
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
},
+ "node_modules/react-phone-input-2": {
+ "version": "2.15.1",
+ "resolved": "https://registry.npmjs.org/react-phone-input-2/-/react-phone-input-2-2.15.1.tgz",
+ "integrity": "sha512-W03abwhXcwUoq+vUFvC6ch2+LJYMN8qSOiO889UH6S7SyMCQvox/LF3QWt+cZagZrRdi5z2ON3omnjoCUmlaYw==",
+ "dependencies": {
+ "classnames": "^2.2.6",
+ "lodash.debounce": "^4.0.8",
+ "lodash.memoize": "^4.1.2",
+ "lodash.reduce": "^4.6.0",
+ "lodash.startswith": "^4.2.1",
+ "prop-types": "^15.7.2"
+ },
+ "peerDependencies": {
+ "react": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0",
+ "react-dom": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0"
+ }
+ },
"node_modules/react-redux": {
"version": "9.1.1",
"resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.1.1.tgz",
diff --git a/package.json b/package.json
index 0a18478..36a2b04 100644
--- a/package.json
+++ b/package.json
@@ -25,6 +25,7 @@
"react-google-recaptcha": "^3.1.0",
"react-hook-form": "^7.51.2",
"react-intersection-observer": "^9.8.1",
+ "react-phone-input-2": "^2.15.1",
"react-redux": "^9.1.1",
"react-router-dom": "^6.22.3",
"swiper": "^11.1.0"
diff --git a/src/components/Card/CommCard.jsx b/src/components/Card/CommCard.jsx
index 81f7415..f2904f5 100644
--- a/src/components/Card/CommCard.jsx
+++ b/src/components/Card/CommCard.jsx
@@ -15,7 +15,7 @@ import games from "../../assets/images/discot.png";
import { Link } from "react-router-dom";
const CommCard = ({ id, img, name, designation, description, link }) => {
- console.log(img);
+ // console.log(img);
const imgHeight = {
minWidth: `214px`,
height: "240px",
diff --git a/src/components/Community/CommunityBanner.jsx b/src/components/Community/CommunityBanner.jsx
index 631b7b0..4624be3 100644
--- a/src/components/Community/CommunityBanner.jsx
+++ b/src/components/Community/CommunityBanner.jsx
@@ -23,181 +23,181 @@ const BannerContent = [
const CommunityBanner = ({ onClick }) => {
const { data } = useGetCommunitiesBannerQuery();
const content = data?.data.rows;
- // const loop = () => {
- // blogPosts.map((item) => {
- // console.log(item);
- // });
- // };
- // loop();
- console.log(content);
+ const filteredContent = content?.filter((item) => item.status === true);
+ console.log(filteredContent);
return (
-
-
+ <>
+ {filteredContent?.map((item) => (
-
-
- {content?.[1]?.Heading}
-
-
- {/* {BannerContent[0].heading2} */}
-
-
-
- {content?.[1]?.sub_heading}
-
-
-
+
+
+
+ {item.Heading}
+
+
+ {/* {BannerContent[0].heading2} */}
+
+
+
+ {item.sub_heading}
+
+
+
+
+
-
-
+ ))}
+ >
);
};
diff --git a/src/components/HomePage/Partner.jsx b/src/components/HomePage/Partner.jsx
index 789c81e..83217dc 100644
--- a/src/components/HomePage/Partner.jsx
+++ b/src/components/HomePage/Partner.jsx
@@ -101,7 +101,7 @@ export default function Partner() {
navigation={false}
modules={[Navigation, Pagination, Autoplay]}
autoplay={{
- delay: 5000,
+ delay: 10000,
disableOnInteraction: false,
}}
loop={true}
diff --git a/src/components/MobileComponent/MobileSubnet.jsx b/src/components/MobileComponent/MobileSubnet.jsx
index 4af0449..1f21d9b 100644
--- a/src/components/MobileComponent/MobileSubnet.jsx
+++ b/src/components/MobileComponent/MobileSubnet.jsx
@@ -16,14 +16,15 @@ const MobileSubnet = () => {
return (
<>
{
sx={{
"@media (max-width: 1024px)": {},
"@media (max-width: 375px)": {
- fontSize: "18px",
+ fontSize: "22px",
},
}}
>
diff --git a/src/components/MobileComponent/MobileSubnet2.jsx b/src/components/MobileComponent/MobileSubnet2.jsx
index bba2856..4226aea 100644
--- a/src/components/MobileComponent/MobileSubnet2.jsx
+++ b/src/components/MobileComponent/MobileSubnet2.jsx
@@ -28,7 +28,7 @@ const MobileSubnet2 = ({ font }) => {
sx={{
"@media (max-width: 1024px)": {},
"@media (max-width: 375px)": {
- fontSize: "18px",
+ fontSize: "22px",
},
}}
>
diff --git a/src/components/MobileComponent/MobileSubnet3.jsx b/src/components/MobileComponent/MobileSubnet3.jsx
index 54d9726..be2c36f 100644
--- a/src/components/MobileComponent/MobileSubnet3.jsx
+++ b/src/components/MobileComponent/MobileSubnet3.jsx
@@ -30,7 +30,7 @@ const MobileSubnet3 = ({ font }) => {
sx={{
"@media (max-width: 1024px)": {},
"@media (max-width: 375px)": {
- fontSize: "18px",
+ fontSize: "22px",
},
}}
>
diff --git a/src/components/NewsPage/NewsContent.jsx b/src/components/NewsPage/NewsContent.jsx
index 4c2e441..900ff3f 100644
--- a/src/components/NewsPage/NewsContent.jsx
+++ b/src/components/NewsPage/NewsContent.jsx
@@ -76,24 +76,32 @@ const contents = [
const NewsContent = () => {
const { data } = useGetNewsQuery();
- const newsCard = data?.data;
+ const newsCard = data?.data?.rows;
console.log(newsCard);
- const [currentPage, setCurrentPage] = useState(1);
- const itemsPerPage = 9;
- const totalPages = Math.ceil(contents.length / itemsPerPage);
+ // const [currentPage, setCurrentPage] = useState(1);
+ // const itemsPerPage = 9;
+ // const totalPages = Math.ceil(newsCard.length / itemsPerPage);
- const handlePageChange = (newPage) => {
- setCurrentPage(newPage);
- window.scrollTo({ top: 0, behavior: "smooth" });
- };
+ // const handlePageChange = (newPage) => {
+ // setCurrentPage(newPage);
+ // window.scrollTo({ top: 0, behavior: "smooth" });
+ // };
- const startIndex = (currentPage - 1) * itemsPerPage;
- const endIndex = Math.min(startIndex + itemsPerPage, contents.length);
- const currentPageContents = contents.slice(startIndex, endIndex);
+ // const startIndex = (currentPage - 1) * itemsPerPage;
+ // const endIndex = Math.min(startIndex + itemsPerPage, contents.length);
+ // const currentPageContents = contents.slice(startIndex, endIndex);
return (
<>
-
+
{
rowGap={"3rem"}
justifyContent={"space-between"}
alignItems={"center"}
+ sx={{
+ "@media (max-width: 1024px)": {
+ justifyContent: "space-around",
+ },
+ }}
>
- {currentPageContents.map((content) => (
+ {newsCard?.map((content) => (
<>
{
},
}}
>
-
+
{
minHeight={"40px"}
maxWidth={"420px"}
>
- {content.contetn}
+ {content.content}
{/* {
))}
-
+ /> */}
>
);
};
diff --git a/src/index.css b/src/index.css
index b0b2ac0..a42af21 100644
--- a/src/index.css
+++ b/src/index.css
@@ -228,6 +228,13 @@ span.swiper-pagination-bullet {
-ms-transform: translateY(0%);
-o-transform: translateY(0%);
}
+
+ .subnet-mobile .swiper-button-prev {
+ left: 0;
+ }
+ .subnet-mobile .swiper-button-next {
+ right: 0;
+ }
}
@media only screen and (max-width: 375px) {