Skip to content

Commit

Permalink
feat(app): 2-column color picker buttons for mobile UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Dec 11, 2023
1 parent e066f37 commit f739126
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 193 deletions.
2 changes: 1 addition & 1 deletion src/components/ColorPicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const ColorPicker: React.FC<ColorPickerProps> = (props) => {
return (
<>
<div className='flex items-center justify-center'>
<div className='w-full md:w-2/3 lg:w-1/2 sm:mx-32 grid grid-cols-4 gap-2 sm:gap-7'>
<div className='w-full md:w-2/3 lg:w-1/2 sm:mx-32 grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-7'>
{Object.entries(props.colors).map(([name, color], i) => (
<ColorPickerButton
key={i}
Expand Down
8 changes: 4 additions & 4 deletions src/components/svgs/gems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
if (props.gems === 'Amber') {
return (
<svg
className='fill-current h-7 sm:h-16'
className='fill-current h-10 md:h-16'
viewBox='0 0 500 500'
fill='none'
xmlns='http://www.w3.org/2000/svg'>
Expand Down Expand Up @@ -86,7 +86,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
} else if (props.gems === 'Ice') {
return (
<svg
className='fill-current h-7 sm:h-16'
className='fill-current h-10 md:h-16'
viewBox='0 0 500 500'
fill='none'
xmlns='http://www.w3.org/2000/svg'>
Expand Down Expand Up @@ -169,7 +169,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
} else if (props.gems === 'Classic') {
return (
<svg
className='fill-current h-7 sm:h-16'
className='fill-current h-10 md:h-16'
viewBox='0 0 500 500'
fill='none'
xmlns='http://www.w3.org/2000/svg'>
Expand Down Expand Up @@ -250,7 +250,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
} else {
return (
<svg
className='fill-current h-7 sm:h-16'
className='fill-current h-10 md:h-16'
viewBox='0 0 500 500'
fill='none'
xmlns='http://www.w3.org/2000/svg'>
Expand Down
Loading

0 comments on commit f739126

Please sign in to comment.