-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New and improved Product Hub (#3810)
* simplify hub page and add redirect * replace nls with pseudo tabs * new filtering * basic filters support * store filters in querystring * load initial filters from querystring * remove promo cards * fix icon on multiselect * add categories component * filtering categories * format fix * tags component * filter by tags * format fix * group generic select * featured for navigation only * featured row * featured steakhouse * featured steakhouse on hp * automations in db * generic select search * help button * remove yield loop filtering * separator * sticky row * help links * refinance stuff * bluechip assets * mobile ver * format fix * automations in the table * ajna weekly rewards * min liquiditiy * ajna rewards rate * yield loop filtering * tags tooltips * button border fix * tags refinements * remove liquidity from earn * landing page adjustments * empty list * clear search * update name of steakhouse positions * fix limiting rows on homepage * remove memes from borrow * fix oracless pool rewards * lp only tag * automations control * mixpanel events * fix tag hover * extend featured filtering * fixed featured rows * fix table row height * fix typing on landing page * database query for marketing pages * update faq * remove incorrect product hub usage in refinance * format fix * fix the thing * post review fixes --------- Co-authored-by: Marcin Ciarka <[email protected]>
- Loading branch information
1 parent
99bf5db
commit 998a0f7
Showing
156 changed files
with
3,589 additions
and
3,539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { | ||
getGradientColor, | ||
summerBrandGradient, | ||
summerFadedBrandGradient, | ||
} from 'helpers/getGradientColor' | ||
import type { FC } from 'react' | ||
import React from 'react' | ||
import type { ThemeUIStyleObject } from 'theme-ui' | ||
import { Box, Text } from 'theme-ui' | ||
|
||
interface BrandTagProsp { | ||
sx?: ThemeUIStyleObject | ||
} | ||
|
||
export const BrandTag: FC<BrandTagProsp> = ({ children, sx }) => ( | ||
<Box | ||
as="span" | ||
sx={{ | ||
position: 'relative', | ||
display: 'inline-flex', | ||
alignItems: 'center', | ||
height: '28px', | ||
px: '12px', | ||
background: summerFadedBrandGradient, | ||
borderRadius: 'roundish', | ||
verticalAlign: 'bottom', | ||
...sx, | ||
'*&::before': { | ||
content: '""', | ||
position: 'absolute', | ||
top: '1px', | ||
left: '1px', | ||
bottom: '1px', | ||
right: '1px', | ||
background: 'neutral10', | ||
borderRadius: 'roundish', | ||
}, | ||
}} | ||
> | ||
<Text | ||
variant="paragraph4" | ||
sx={{ position: 'relative', ...getGradientColor(summerBrandGradient) }} | ||
> | ||
{children} | ||
</Text> | ||
</Box> | ||
) |
Oops, something went wrong.