Pavle Golubovic 2 лет назад
Родитель
Сommit
23a956df17
2 измененных файлов: 4 добавлений и 2 удалений
  1. 1
    1
      frontend/src/layout/Wrapper.jsx
  2. 3
    1
      frontend/src/styles/buttons.css

+ 1
- 1
frontend/src/layout/Wrapper.jsx Просмотреть файл



const Wrapper = ({bg, padding ,children, hideOverflow, gradient}) => { const Wrapper = ({bg, padding ,children, hideOverflow, gradient}) => {
return ( return (
<div className={"w-full h-fit" + (bg ? "bg-baby-blue dark:bg-dg-primary-1600" : "")+(padding)+(hideOverflow ? ' overflow-hidden' : '') + (gradient ? " bg-gradient-to-r from-[#90278F] to-[#8468BF]" : "")}>
<div className={"w-full h-fit" + (bg ? " bg-baby-blue dark:bg-dg-primary-1600" : "")+(padding)+(hideOverflow ? ' overflow-hidden' : '') + (gradient ? " bg-gradient-to-r from-[#90278F] to-[#8468BF]" : "")}>
<div className="max-w-custom relative mx-auto px-16p"> <div className="max-w-custom relative mx-auto px-16p">
{children} {children}
</div> </div>

+ 3
- 1
frontend/src/styles/buttons.css Просмотреть файл

@apply px-16p py-12p rounded-32 cursor-pointer text-p font-medium font-secondary text-dg-primary-900 bg-dg-primary-400 @apply px-16p py-12p rounded-32 cursor-pointer text-p font-medium font-secondary text-dg-primary-900 bg-dg-primary-400
} }


//PrimaryButton


.btn-primary { .btn-primary {
@apply px-32p py-20p sm:px-64p text-center @apply px-32p py-20p sm:px-64p text-center
text-btn uppercase font-semibold rounded-16 border-transparent cursor-pointer bg-gradient-to-r from-dg-secondary to-dg-primary-900 transition-all hover:bg-gradient-to-r hover:to-dg-secondary hover:from-dg-primary-900 hover:transition-all text-white; text-btn uppercase font-semibold rounded-16 border-transparent cursor-pointer bg-gradient-to-r from-dg-secondary to-dg-primary-900 transition-all hover:bg-gradient-to-r hover:to-dg-secondary hover:from-dg-primary-900 hover:transition-all text-white;

Загрузка…
Отмена
Сохранить