diff --git a/components/src/app/cards/page.tsx b/components/src/app/cards/page.tsx index e1db497..3d8b913 100644 --- a/components/src/app/cards/page.tsx +++ b/components/src/app/cards/page.tsx @@ -1,27 +1,14 @@ import React from "react"; -import { QuizCards } from "../../components"; -import { files } from "@/components/QuizCards"; +import { QuizCards } from "../../components"; +import { CardsHolder, files } from "@/components/QuizCards"; function CardsComponent() { - return ( -
-
- -
-
- ); - } - - export default CardsComponent; - \ No newline at end of file + return ( + + + + + ); +} + +export default CardsComponent; diff --git a/components/src/components/QuizCards/CardsHolder.tsx b/components/src/components/QuizCards/CardsHolder.tsx new file mode 100644 index 0000000..3411f8a --- /dev/null +++ b/components/src/components/QuizCards/CardsHolder.tsx @@ -0,0 +1,24 @@ +import React from 'react' + +export const CardsHolder = ({ children }: { children: React.ReactNode }) => { + return ( +
+
+
+ {children} +
+
+
+ ) +} diff --git a/components/src/components/QuizCards/index.ts b/components/src/components/QuizCards/index.ts index 344baf3..09d41e2 100644 --- a/components/src/components/QuizCards/index.ts +++ b/components/src/components/QuizCards/index.ts @@ -2,3 +2,4 @@ export * from './QuizCards'; export * from './QuizComponent'; export * from './ScoreModal'; export * from './StaticData'; +export * from './CardsHolder'; diff --git a/components/src/components/index.ts b/components/src/components/index.ts index c76e304..666347e 100644 --- a/components/src/components/index.ts +++ b/components/src/components/index.ts @@ -1,4 +1,4 @@ -export {QuizCards, QuizComponent, ScoreModal} from './QuizCards'; +export {QuizCards, QuizComponent, ScoreModal,CardsHolder} from './QuizCards'; export {ExampleComponent} from './ExampleComponent' export {CountdownComponent,AnimatedBackground} from './CountDown' export {MainLandingPage } from './LandingPage'