diff --git a/client/src/components/Header/Header.component.jsx b/client/src/components/Header/Header.component.jsx index dff761e..b809194 100644 --- a/client/src/components/Header/Header.component.jsx +++ b/client/src/components/Header/Header.component.jsx @@ -70,7 +70,7 @@ const Header = () => { }, }} > -
+

Shivam Gavandi

@@ -87,14 +87,36 @@ const Header = () => {
-
+
+ {" "} BUY TOKENS
-
+
+ VIEW BALANCE
+
+ +

User Settings

+
+
+ +

Logout

+
diff --git a/client/src/pages/book/SingleBook.component.jsx b/client/src/pages/book/SingleBook.component.jsx new file mode 100644 index 0000000..0d47680 --- /dev/null +++ b/client/src/pages/book/SingleBook.component.jsx @@ -0,0 +1,83 @@ +import React from "react"; +import { Icon } from "@iconify/react"; +import StyledButton from "../../components/CustomButton/StyledButton"; +import { Avatar } from "@mui/material"; + +const book = { + name: "The Alchemist", + author: "Paulo Coelho", + reads: 453, + cover: "https://m.media-amazon.com/images/I/71aFt4+OTOL.jpg", + price: 0.003, + description: + "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic", +}; + +const SingleBook = () => { + return ( +
+
+ +
+

About Author

+
+

14 books published

+

334 overall read

+

#34 debinder rank

+
+
+
+

45th dbinder ranking

+
+
+
+

{book.name}

+

- by {book.author}

+

+ {book.description} +

+
+ Adventure +
+

+ {" "} + +
+ 450 debi tokens{" "} + (5 tokens per page) +
+

+ + + START READING{" "} + +
+

Reviews

+
+ {[...Array(5)].map((item) => ( +
+ +
+

Aryan Shinde

+

+ Lorem Ipsum is simply dummy text of the printing and + typesetting industry. Lorem Ipsum has been the industry's + standard dummy text ever since the 1500 +

+
+
+ ))} +
+
+
+
+ ); +}; + +export default SingleBook; diff --git a/client/src/routes/routes.index.js b/client/src/routes/routes.index.js index 04bb417..f1875c0 100644 --- a/client/src/routes/routes.index.js +++ b/client/src/routes/routes.index.js @@ -43,6 +43,10 @@ export default function Router() { path: "home", element: , }, + { + path: "books/:id", + element: , + }, ], }, { @@ -80,3 +84,7 @@ const WriterHome = Loadable( const VerifyOTP = Loadable( lazy(() => import("../pages/landing/verify.component")) ); + +const SingleBook = Loadable( + lazy(() => import("../pages/book/SingleBook.component")) +);