Skip to content

Commit

Permalink
ColorPalette: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
steel89ita committed Jul 5, 2024
1 parent 86a7882 commit 2b2500e
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/components/ColorPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,23 @@ export default function ColorPalette({ colors, rawColors }) {
}

return (
<>
{colorArray.map(e =>
<p
style={{
backgroundColor: e.hex,
borderRadius: '20px',
color: '#fff',
padding: '10px',
boxShadow: '0px 2px 10px #20000022'
}}>
<span className="text--bold">{e.name}</span> - {e.hex}
</p>

)}
</>
<>
{colorArray.map((e) => (
<div
style={{
backgroundColor: e.hex,
borderRadius: "20px",
color: "#fff",
padding: "10px",
margin: "2px",
boxSizing: "content-box",
boxShadow: "0px 2px 10px #20000022",
}}
>
<span className='text--bold'>{e.name}</span> - {e.hex}
</div>
))}
</>
)

}

0 comments on commit 2b2500e

Please sign in to comment.