diff --git a/public/abc.jpg b/public/abc.jpg new file mode 100644 index 0000000..347bae7 Binary files /dev/null and b/public/abc.jpg differ diff --git a/src/App.jsx b/src/App.jsx index c4b9226..5f9ea90 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,7 +1,31 @@ -import React from "react"; +import "./App.css"; +import Card from "./components/card"; +import Pop from "./components/modal"; +import { data } from "./components/data"; + +export default function App() { + return ( +
+
+ +
+ +

EVENTS

+ +
+ { + data.map( (d) => ( + + + )) + } +
+
+ ); +} + -export default function App(){ - return( -
start here
- ) -} \ No newline at end of file diff --git a/src/components/abc.jpg b/src/components/abc.jpg new file mode 100644 index 0000000..347bae7 Binary files /dev/null and b/src/components/abc.jpg differ diff --git a/src/components/card.jsx b/src/components/card.jsx new file mode 100644 index 0000000..f493d5c --- /dev/null +++ b/src/components/card.jsx @@ -0,0 +1,18 @@ +import React from "react"; +import { data } from "./data"; + +export default function Card({data}){ + + return( + +
+ {/* */} + +
+

{data.info}

+ +
+
+ ) + } + \ No newline at end of file diff --git a/src/components/data.jsx b/src/components/data.jsx new file mode 100644 index 0000000..2ca7b98 --- /dev/null +++ b/src/components/data.jsx @@ -0,0 +1,40 @@ +export const data = [ + {key :1, + img : "../public/abc.jpg", + info :"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer", + }, + {key :2, + img : "../public/abc.jpg", + info :"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer", + }, + {key :3, + img : "../public/abc.jpg", + info :"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer", + }, + {key :4, + img : "../public/abc.jpg", + info :"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer", + }, + {key :5, + img : "../public/abc.jpg", + info :"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer", + }, + {key :6, + img : "../public/abc.jpg", + info :"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer", + }, + {key :7, + img : "../public/abc.jpg", + info :"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer", + }, + {key :8, + img : "../public/abc.jpg", + info :"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer", + }, + {key :9, + img : "../public/abc.jpg", + info :"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer", + }, + + +] \ No newline at end of file diff --git a/src/components/modal.jsx b/src/components/modal.jsx new file mode 100644 index 0000000..5459486 --- /dev/null +++ b/src/components/modal.jsx @@ -0,0 +1,11 @@ +import React from "react"; + +export default function Pop(props){ + return( +
+ +

{props.title}

+

{props.detail}

+
+ ) +} \ No newline at end of file