forked from emre/www_projectmycelium_com
refactor: make Button text responsive and hide HomeAurora background on mobile
- Changed Button text size from text-base to text-sm md:text-base for both solid and outline variants - Updated HomeAurora background image to only display on md+ screens using bg-none md:bg-[url(...)] - Removed inline style attribute in favor of Tailwind class for background image - Cleaned up extra spacing in className
This commit is contained in:
@@ -3,9 +3,9 @@ import clsx from 'clsx'
|
||||
|
||||
const baseStyles = {
|
||||
solid:
|
||||
'inline-flex justify-center rounded-full py-2 px-5 text-base font-semibold transition-colors',
|
||||
'inline-flex justify-center rounded-full py-2 px-5 text-sm md:text-base font-semibold transition-colors',
|
||||
outline:
|
||||
'inline-flex justify-center bg-transparent rounded-full border py-[calc(--spacing(2)-1px)] px-[calc(--spacing(5)-1px)] text-base transition-colors',
|
||||
'inline-flex justify-center bg-transparent rounded-full border py-[calc(--spacing(2)-1px)] px-[calc(--spacing(5)-1px)] text-sm md:text-base transition-colors',
|
||||
}
|
||||
|
||||
const variantStyles = {
|
||||
|
||||
Reference in New Issue
Block a user