Skip to content

Commit

Permalink
responsive color palette generator
Browse files Browse the repository at this point in the history
  • Loading branch information
juanArias8 committed Dec 1, 2023
1 parent 71c7397 commit 0223918
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const ColorPaletteGenerator = (props: ColorPaletteGeneratorProps) => {
<h2 className="headline-3 white">Generate Color Palette</h2>

<canvas ref={canvasRef} width={500} height={500} hidden />
<div className="w-[500px] h-[500px] grid mt-5 p-1 bg-white">
<div className="w-full h-[300px] md:w-[500px] md:h-[500px] grid mt-5 p-1 bg-white">
{colors.map((color, index) => (
<div key={index}>
<input
Expand All @@ -81,15 +81,18 @@ const ColorPaletteGenerator = (props: ColorPaletteGeneratorProps) => {
Add Color
</button>

<span className="material-icons text-white" onClick={resetColors}>
<span
className="material-icons text-white cursor-pointer"
onClick={resetColors}
>
replay
</span>

<span onClick={props.closeModal}>
<span onClick={props.closeModal} className="cursor-pointer">
<CloseIcon width={"24"} height={"24"} color={"#FFFFFF"} />
</span>

<span onClick={handleCompleted}>
<span onClick={handleCompleted} className="cursor-pointer">
<CheckIcon width={"24"} height={"24"} color={"#FFFFFF"} />
</span>
</div>
Expand Down

0 comments on commit 0223918

Please sign in to comment.