Skip to content

Commit

Permalink
add components/src/components/QuizCards/CardsHolder.tsx for rendering…
Browse files Browse the repository at this point in the history
… quiz card layout with a background image and children elements
  • Loading branch information
mitch1009 committed Sep 19, 2024
1 parent 5feb8d1 commit 87e9d5c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions components/src/components/QuizCards/CardsHolder.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react'

export const CardsHolder = ({ children }: { children: React.ReactNode }) => {
return (
<div>
<div
style={{
backgroundImage: 'url("/cards/flag.svg")',
backgroundSize: 'cover',
backgroundPosition: 'center',
height: '100vh',
width: '100vw',
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
}}
>
<div className="p-4 m-6 rounded-lg shadow-md w-full bg-white">
{children}
</div>
</div>
</div>
)
}

0 comments on commit 87e9d5c

Please sign in to comment.