Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align #808

Closed
wants to merge 26 commits into from
Closed

Align #808

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
415938f
Merge pull request #761 from invariant-labs/dev
p6te Nov 6, 2024
60362eb
Merge pull request #762 from invariant-labs/staging
p6te Nov 6, 2024
208fd62
Merge pull request #766 from invariant-labs/dev
wojciech-cichocki Nov 9, 2024
af9ea10
Merge pull request #767 from invariant-labs/staging
wojciech-cichocki Nov 9, 2024
b21d093
Merge pull request #768 from invariant-labs/dev
wojciech-cichocki Nov 11, 2024
63d4933
Merge pull request #769 from invariant-labs/staging
wojciech-cichocki Nov 11, 2024
5674d8d
Update static files
wojciech-cichocki Nov 12, 2024
5350fbe
Merge pull request #774 from invariant-labs/dev
p6te Nov 13, 2024
e29a29e
Merge pull request #775 from invariant-labs/staging
p6te Nov 13, 2024
575f1fe
Merge pull request #779 from invariant-labs/dev
wojciech-cichocki Nov 18, 2024
20ed202
Merge pull request #780 from invariant-labs/staging
wojciech-cichocki Nov 18, 2024
3edef40
Merge pull request #783 from invariant-labs/dev
wojciech-cichocki Nov 19, 2024
0f1fc60
Merge pull request #784 from invariant-labs/staging
wojciech-cichocki Nov 19, 2024
d5f952a
Merge pull request #788 from invariant-labs/dev
wojciech-cichocki Nov 21, 2024
1ad7713
Merge pull request #789 from invariant-labs/staging
wojciech-cichocki Nov 21, 2024
b9c17de
Merge pull request #791 from invariant-labs/dev
wojciech-cichocki Nov 22, 2024
706af9c
Merge pull request #792 from invariant-labs/staging
wojciech-cichocki Nov 22, 2024
460a097
Merge pull request #794 from invariant-labs/dev
wojciech-cichocki Nov 26, 2024
e568ac0
Merge pull request #795 from invariant-labs/staging
wojciech-cichocki Nov 26, 2024
e2577f3
Merge pull request #799 from invariant-labs/dev
wojciech-cichocki Dec 3, 2024
a115f45
Merge pull request #800 from invariant-labs/staging
wojciech-cichocki Dec 3, 2024
990ea4e
Merge pull request #803 from invariant-labs/dev
wojciech-cichocki Dec 3, 2024
3bbb6dd
Merge pull request #804 from invariant-labs/staging
wojciech-cichocki Dec 3, 2024
31694d8
Merge pull request #806 from invariant-labs/dev
wojciech-cichocki Dec 6, 2024
aed1c00
Merge pull request #807 from invariant-labs/staging
wojciech-cichocki Dec 6, 2024
514c501
align
zielvna Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ actions:
disabled:
- trunk-announce
- trunk-check-pre-push
enabled:
- trunk-upgrade-available
- trunk-fmt-pre-commit
enabled:
- trunk-upgrade-available
72 changes: 68 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@solana/web3.js": "1.87.6",
"@solflare-wallet/utl-aggregator": "^0.0.8",
"@storybook/addon-actions": "^8.1.10",
"@types/react-slick": "^0.23.13",
"assert": "^2.1.0",
"axios": "^1.6.8",
"buffer": "^6.0.3",
Expand All @@ -47,12 +48,14 @@
"react-hook-form": "^7.53.0",
"react-redux": "^9.1.1",
"react-router-dom": "^6.22.3",
"react-slick": "^0.30.2",
"react-spring": "^9.7.3",
"react-window": "^1.8.10",
"redux": "^5.0.1",
"redux-persist": "^6.0.0",
"redux-saga": "^1.3.0",
"remeda": "^1.61.0",
"slick-carousel": "^1.8.1",
"tss-react": "^4.9.6",
"typed-redux-saga": "^1.5.0",
"vite-plugin-node-polyfills": "^0.22.0",
Expand Down
Binary file modified public/recruitment-tasks.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion src/components/EmptyPlaceholder/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export const useStyles = makeStyles()(() => ({
container: {
width: '100%',
height: '370px',
position: 'absolute',
zIndex: 14
},
root: {
Expand Down
66 changes: 66 additions & 0 deletions src/components/GradientBorder/GradientBorder.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import { Grid } from '@mui/material'
import { useStyles } from './style'
import classNames from 'classnames'

export interface IGradientBorder {
children: React.ReactNode
borderWidth: number
borderColor?: string
opacity?: number
innerClassName?: string
backgroundColor?: string
borderRadius: number
}

const GradientBorder: React.FC<IGradientBorder> = ({
children,
borderColor,
borderWidth,
opacity,
innerClassName,
backgroundColor,
borderRadius
}) => {
const { classes } = useStyles({
borderWidth,
borderColor,
opacity,
backgroundColor,
borderRadius
})

const Content = ({ hidden, hideBackground }: { hidden?: boolean; hideBackground?: boolean }) => {
return (
<Grid
container
className={(classes.innerContainer, hideBackground && classes.noBackground, innerClassName)}
visibility={hidden ? 'hidden' : 'visible'}>
{children}
</Grid>
)
}
return (
<Grid container className={classes.rootContainer}>
<Grid overflow='hidden'>
<Grid container className={classes.positionAbsolute}>
<Grid
container
className={classNames(classes.gradientContainer, classes.gradient)}
overflow='hidden'>
{/* <Content hidden /> */}
</Grid>
</Grid>
</Grid>
<Grid container>
<Grid
container
className={classNames(classes.gradientContainer, classes.noBackground)}
zIndex={1}>
<Content hideBackground />
</Grid>
</Grid>
</Grid>
)
}

export default GradientBorder
52 changes: 52 additions & 0 deletions src/components/GradientBorder/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { colors } from '@static/theme'
import { makeStyles } from 'tss-react/mui'

export const useStyles = makeStyles<{
borderWidth: number
borderColor?: string
opacity?: number
backgroundColor?: string
borderRadius: number
}>()((_theme, { borderWidth, borderColor, opacity, backgroundColor, borderRadius }) => ({
rootContainer: {
position: 'relative'
},
gradientContainer: {
boxSizing: 'border-box',
position: 'relative',
borderRadius: `calc((${borderWidth}px / 2) + ${borderRadius}px)`,
padding: borderWidth ?? 1
},
gradient: {
zIndex: 1,
background:
borderColor ??
`linear-gradient(to bottom, ${colors.invariant.green}, ${colors.invariant.pink})`,
opacity: opacity ?? 1,

'&::before': {
content: '""',
position: 'absolute',
top: borderWidth ?? 1,
left: borderWidth ?? 1,
right: borderWidth ?? 1,
bottom: borderWidth ?? 1,
borderRadius: borderRadius ?? 10,
background: backgroundColor ?? colors.invariant.bodyBackground,
maskComposite: 'exclude',
zIndex: -1
}
},
positionAbsolute: {
position: 'absolute',
width: '100%',
height: '100%',
backgroundColor: colors.invariant.transparentBcg,
overflow: 'hidden',
borderRadius: `calc((${borderWidth}px / 2) + ${borderRadius}px)`
},
innerContainer: {
borderRadius: borderRadius ?? 10
},
noBackground: {}
}))
5 changes: 3 additions & 2 deletions src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ export const Header: React.FC<IHeader> = ({

const isMdDown = useMediaQuery(theme.breakpoints.down('md'))

const routes = ['exchange', 'liquidity', 'statistics']
const routes = ['exchange', 'liquidity', 'portfolio', 'statistics']

const otherRoutesToHighlight: Record<string, RegExp[]> = {
liquidity: [/^newPosition\/*/, /^position\/*/],
exchange: [/^exchange\/*/]
exchange: [/^exchange\/*/],
portfolio: [/^portfolio\/*/]
// creator: [/^creator\/*/]
}

Expand Down
Loading
Loading