diff --git a/app/components/Home_Banner.tsx b/app/components/Home_Banner.tsx index bd96199..a2bc388 100644 --- a/app/components/Home_Banner.tsx +++ b/app/components/Home_Banner.tsx @@ -1,18 +1,21 @@ -import React from 'react' +import React from "react"; -export const Home_Banner = () => { +export const Home_Banner: React.FC = () => { return ( -
-
-

Bring Your Story to Life

-

Start creating your own ebook today — share your voice, inspire readers, and publish to the world in just a few clicks.

- -
-
-
-
-
-
+
+
+

Bring Your Story to Life

+

+ Start creating your own ebook today — share your voice, inspire readers, + and publish to the world in just a few clicks. +

+ +
+
+
+
+
+
- ) -} + ); +}; diff --git a/app/components/Recent_Card.tsx b/app/components/Recent_Card.tsx index 80bbb2e..97e58d9 100644 --- a/app/components/Recent_Card.tsx +++ b/app/components/Recent_Card.tsx @@ -1,21 +1,28 @@ import Image from "next/image"; import React from "react"; -const Recent_Card = (props: any) => { +interface RecentCardProps { + image: string; + title: string; + tag: string; + description: string; +} + +const Recent_Card: React.FC = ({ image, title, tag, description }) => { return (
image
-

{props.title}

+

{title}

- {props.tag} {" "} {props.description} + {tag} {description}

); diff --git a/app/components/Recent_Creation.tsx b/app/components/Recent_Creation.tsx index f75a346..259e066 100644 --- a/app/components/Recent_Creation.tsx +++ b/app/components/Recent_Creation.tsx @@ -2,9 +2,8 @@ import Image from "next/image"; import React from "react"; import { FaSlidersH } from "react-icons/fa"; import Recent_Card from "./Recent_Card"; -import { title } from "process"; -const Recent_Creation = () => { +const Recent_Creation: React.FC = () => { return (
@@ -13,34 +12,34 @@ const Recent_Creation = () => {
diff --git a/app/creator/page.tsx b/app/creator/page.tsx index ab3943f..346e990 100644 --- a/app/creator/page.tsx +++ b/app/creator/page.tsx @@ -1,11 +1,13 @@ import { Home_Banner } from "../components/Home_Banner"; import Recent_Creation from "../components/Recent_Creation"; -export default function CreatorPage() { - return ( +const CreatorPage: React.FC = () => { + return (
- ) -} \ No newline at end of file + ); +}; + +export default CreatorPage; diff --git a/app/page.tsx b/app/page.tsx index 9e33e8c..010190d 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,11 +1,16 @@ +import React from "react"; - -export default function Home() { +const Home: React.FC = () => { return ( -
+
Home Page
); -} +}; + +export default Home;