Skip to content

Commit

Permalink
Merge pull request #131 from dappforce/change-staking-bg
Browse files Browse the repository at this point in the history
Change bg for creator staking banner section
  • Loading branch information
olehmell authored Dec 27, 2023
2 parents fd9d525 + cda2c99 commit a35c7a3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
Binary file modified public/images/banners/staking-bg-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/banners/staking-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,14 @@ video {
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.bg-white\/20 {
background-color: rgb(255 255 255 / 0.2);
}

.bg-white\/50 {
background-color: rgb(255 255 255 / 0.5);
}

.bg-opacity-25 {
--tw-bg-opacity: 0.25;
}
Expand Down Expand Up @@ -1914,6 +1922,10 @@ video {
color: rgb(255 255 255 / 0.8);
}

.text-text-dark\/80 {
color: rgb(var(--text-dark) / 0.8);
}

.opacity-0 {
opacity: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/creatorsStaking/Banner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const Banner = () => {
)}
>
<div className='flex md:flex-row gap-6 flex-col justify-between md:items-start items-center w-full'>
<div className='flex flex-col gap-2 text-white md:items-start items-center'>
<div className='flex flex-col gap-2 text-text-dark md:items-start items-center'>
<div className='text-4xl md:text-left text-center UnboundedFont'>
Creator Staking Beta
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/components/creatorsStaking/Banner/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ type StatsCardProps = {

export const DashboardCard = ({ title, value, desc, infoTitle }: StatsCardProps) => {
return (
<CardWrapper className='bg-background-stats-card/20 min-h-[116px] backdrop-blur-[24.5px]'>
<div className='text-white/80 flex items-center gap-2'>
<CardWrapper className='bg-white/50 min-h-[116px] backdrop-blur-[24.5px]'>
<div className='text-text-dark/80 flex items-center gap-2'>
{title}
{infoTitle && <Tooltip title={infoTitle}><QuestionCircleOutlined /></Tooltip>}
</div>
<div>
<div className='text-white md:text-2xl text-[19px] font-semibold'>{value}</div>
{desc && <div className='text-white/80 text-sm'>{desc}</div>}
<div className='text-text-dark md:text-2xl text-[19px] font-semibold'>{value}</div>
{desc && <div className='text-text-dark/80 text-sm'>{desc}</div>}
</div>
</CardWrapper>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const SuccessModal = ({
<Button
variant='primary'
href='https://subsocial.network/active-staking-details'
className='w-max md:!px-6 !px-4 text-sm'
className='w-max md:!px-6 !px-4 text-sm hover:text-white'
size='md'
>
Learn more
Expand Down

0 comments on commit a35c7a3

Please sign in to comment.