diff --git a/src/App.css b/src/App.css
index 469f23d..b64daa6 100644
--- a/src/App.css
+++ b/src/App.css
@@ -142,6 +142,30 @@
);
}
+.text-animate{
+
+ animation-name: text;
+ animation-duration: 4s;
+ animation-iteration-count: infinite;
+}
+
+@keyframes text {
+ 0% {
+ color: #0B0B27;
+ /* margin-bottom: -40px; */
+ }
+ 30% {
+ letter-spacing: 15px;
+ /* margin-bottom: -40px; */
+ }
+ 85% {
+ letter-spacing: 8px;
+ /* margin-bottom: -40px; */
+ }
+ 100% {
+ /* margin-bottom: 20px; */
+ }
+}
.rotate{
diff --git a/src/Pages/BlogsAndArticles/AddBlogsAndArticles.jsx b/src/Pages/BlogsAndArticles/AddBlogsAndArticles.jsx
index f49b01f..bb886e4 100644
--- a/src/Pages/BlogsAndArticles/AddBlogsAndArticles.jsx
+++ b/src/Pages/BlogsAndArticles/AddBlogsAndArticles.jsx
@@ -110,6 +110,17 @@ const AddBlogsAndArticles = () => {
});
reset();
navigate("/blogs-articles");
+ }else if(response?.error?.status === 500){
+ setIsLoading(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+
}
})
.catch((error) => {
diff --git a/src/Pages/BlogsAndArticles/EditBlogsAndArticles.jsx b/src/Pages/BlogsAndArticles/EditBlogsAndArticles.jsx
index d7f35db..b5fd980 100644
--- a/src/Pages/BlogsAndArticles/EditBlogsAndArticles.jsx
+++ b/src/Pages/BlogsAndArticles/EditBlogsAndArticles.jsx
@@ -129,6 +129,7 @@ const EditBlogsAndArticles = () => {
updateBlog({ id: id, data: formData })
.then((response) => {
// Handle the response here
+ console.log("Mutation response:", response?.error?.status);
console.log("Mutation response:", response?.data?.statusCode);
console.log("Mutation response:", response?.data?.message);
console.log(response);
@@ -145,6 +146,17 @@ const EditBlogsAndArticles = () => {
});
reset();
navigate("/blogs-articles");
+ }else if(response?.error?.status === 500){
+ setIsLoading01(false);
+ toast({
+ render: () => (
+
+ ),
+ });
+
}
})
.catch((error) => {
@@ -204,208 +216,6 @@ const EditBlogsAndArticles = () => {
-
-
- {/*
- Author's Info
-
-
- Select the platform for which you need to create this campaign.
-
-
- */}
-
-
- Author's display profile
-
-
- Below is the profile that will be displayed on the community page.
-
-
-
- {selectedImage === fallbackImage ? (
- ""
- ) : (
-
- {smallImageData?.name}
-
- {(smallImageData?.size / (1024 * 1024)).toFixed(2)} mb
-
-
- )}
-
-
-
-
-
-
-
- Author name
-
-
- {errors.name && (
-
- {" "}
- {errors.author_name.message}
-
- )}
-
-
-
-
- Author designation
-
-
- {errors.author_designation && (
-
- {" "}
- {errors.author_designation.message}
-
- )}
-
-
-
-
- Display profile
-
- {/* */}
-
-
-
-
-
-
-
- Drop images here
-
-
- or click to upload
-
-
-
-
-
-
-
-
- {errors.profile_image && (
-
- {" "}
- {errors.profile_image.message}
-
- )}
-
- Maximum limit of image is 5mb.
-
-
-
-
- }
- color={"whitesmoke"}
- backgroundColor={"purple.900"}
- _hover={{
- backgroundColor: "purple.800",
- }}
- type="submit"
- size="sm"
- rounded={"sm"}
- >
- Save edit
-
-
-
-
-
@@ -434,7 +244,7 @@ const EditBlogsAndArticles = () => {
className="d-flex w-100 p-2 justify-content-center flex-column align-items-center gap-3"
>
{false ? (
-
+
{/*
Display profile
*/}
@@ -686,7 +496,7 @@ const EditBlogsAndArticles = () => {
)}
-
+
Blog banner
@@ -779,6 +589,210 @@ const EditBlogsAndArticles = () => {
+
+
+
+
+
+ {/*
+ Author's Info
+
+
+ Select the platform for which you need to create this campaign.
+
+
+ */}
+
+
+ Author's display profile
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+ {selectedImage === fallbackImage ? (
+ ""
+ ) : (
+
+ {smallImageData?.name}
+
+ {(smallImageData?.size / (1024 * 1024)).toFixed(2)} mb
+
+
+ )}
+
+
+
+
+
+
+
+ Author name
+
+
+ {errors.name && (
+
+ {" "}
+ {errors.author_name.message}
+
+ )}
+
+
+
+
+ Author designation
+
+
+ {errors.author_designation && (
+
+ {" "}
+ {errors.author_designation.message}
+
+ )}
+
+
+
+
+ Display profile
+
+ {/* */}
+
+
+
+
+
+
+
+ Drop images here
+
+
+ or click to upload
+
+
+
+
+
+
+
+
+ {errors.profile_image && (
+
+ {" "}
+ {errors.profile_image.message}
+
+ )}
+
+ Maximum limit of image is 5mb.
+
+
+
+
+ }
+ color={"whitesmoke"}
+ backgroundColor={"purple.900"}
+ _hover={{
+ backgroundColor: "purple.800",
+ }}
+ type="submit"
+ size="sm"
+ rounded={"sm"}
+ >
+ Save edit
+
+
+
+
);
diff --git a/src/Pages/BlogsAndArticles/ViewBlogsAndArticles.jsx b/src/Pages/BlogsAndArticles/ViewBlogsAndArticles.jsx
index 77f797a..8e14462 100644
--- a/src/Pages/BlogsAndArticles/ViewBlogsAndArticles.jsx
+++ b/src/Pages/BlogsAndArticles/ViewBlogsAndArticles.jsx
@@ -40,52 +40,6 @@ const ViewBlogsAndArticles = () => {
/>
-
-
-
-
- Author's display profile
-
-
- Below is the profile that will be displayed on the community page.
-
-
-
-
-
-
-
-
-
-
- Author name
-
-
- {blog?.author_name}
-
-
-
-
-
- Author designation
-
-
- {blog?.author_designation}
-
-
-
-
-
-
@@ -219,6 +173,53 @@ const ViewBlogsAndArticles = () => {
+
+
+
+
+
+ Author's display profile
+
+
+ Below is the profile that will be displayed on the community page.
+
+
+
+
+
+
+
+
+
+
+ Author name
+
+
+ {blog?.author_name}
+
+
+
+
+
+ Author designation
+
+
+ {blog?.author_designation}
+
+
+
+
+
+
);
diff --git a/src/Pages/Usecase/AddUseCase.jsx b/src/Pages/Usecase/AddUseCase.jsx
index eabbbda..c2bc8d1 100644
--- a/src/Pages/Usecase/AddUseCase.jsx
+++ b/src/Pages/Usecase/AddUseCase.jsx
@@ -118,7 +118,7 @@ const AddUseCase = () => {
createUsecase(formData)
.then((response) => {
// Handle the response here
- console.log("Mutation response:", response?.data?.statusCode);
+ console.log("Mutation response:", response);
console.log("Mutation response:", response?.data?.message);
if (response?.data?.statusCode === 200) {
@@ -134,16 +134,18 @@ const AddUseCase = () => {
reset();
setIsLoading(false)
navigate("/usecase");
- } else if (response?.data?.statusCode === 500) {
+ } else if(response?.error?.status === 500){
+ console.log(response?.error?.data?.error?.message);
setIsLoading(false);
toast({
render: () => (
),
});
+
}
})
.catch((error) => {
diff --git a/src/Pages/WelcomePage.jsx b/src/Pages/WelcomePage.jsx
new file mode 100644
index 0000000..a4e11f4
--- /dev/null
+++ b/src/Pages/WelcomePage.jsx
@@ -0,0 +1,27 @@
+import { Box, Text } from '@chakra-ui/react'
+import React from 'react'
+
+const WelcomePage = () => {
+ return (
+
+
+ Welcome to rubix
+
+
+ )
+}
+
+export default WelcomePage
\ No newline at end of file
diff --git a/src/Routes/Routes.js b/src/Routes/Routes.js
index 3eae009..8837733 100644
--- a/src/Routes/Routes.js
+++ b/src/Routes/Routes.js
@@ -55,9 +55,10 @@ import ViewUseCase from "../Pages/Usecase/ViewUseCase";
import EditUseCase from "../Pages/Usecase/EditUseCase";
import Policy from "../Pages/Privacy/Privacy";
import Whitepapers from "../Pages/Whitepapers/Whitepapers";
+import WelcomePage from "../Pages/WelcomePage";
export const RouteLink = [
- { path: "/", Component: UnderConstruction },
+ { path: "/", Component: WelcomePage },
{ path: "/banner", Component: Banner },
{ path: "/help-and-support", Component: HelpAndSupport },