Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
21e5208d
Unverified
Commit
21e5208d
authored
Nov 28, 2022
by
lynn
Committed by
GitHub
Nov 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: nft explore banner polish (#5410)
* init * fix * undo * oops
parent
6b09aa94
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
NftExploreBanner.tsx
src/nft/components/nftExploreBanner/NftExploreBanner.tsx
+18
-7
No files found.
src/nft/components/nftExploreBanner/NftExploreBanner.tsx
View file @
21e5208d
...
...
@@ -4,9 +4,10 @@ import { Box } from 'nft/components/Box'
import
{
bodySmall
,
subhead
}
from
'
nft/css/common.css
'
import
{
X
}
from
'
react-feather
'
import
{
useNavigate
}
from
'
react-router-dom
'
import
{
Link
}
from
'
react-router-dom
'
import
{
useHideNftPromoBanner
}
from
'
state/user/hooks
'
import
styled
from
'
styled-components/macro
'
import
{
StyledInternalLink
}
from
'
theme
'
import
styled
,
{
css
}
from
'
styled-components/macro
'
import
{
ClickableStyle
}
from
'
theme
'
import
{
Z_INDEX
}
from
'
theme/zIndex
'
import
nftPromoImage1
from
'
../nftExploreBanner/nftArt1.png
'
...
...
@@ -59,14 +60,14 @@ const InnerContainer = styled.div`
display: flex;
position: relative;
gap: 8px;
padding:
8
px;
padding:
12
px;
`
const
TextContainer
=
styled
.
div
`
display: flex;
flex-direction: column;
flex: 1;
justify-content:
center
;
justify-content:
flex-start
;
`
const
StyledXButton
=
styled
(
X
)
`
...
...
@@ -80,13 +81,23 @@ const StyledXButton = styled(X)`
`
const
StyledImageContainer
=
styled
(
Box
)
`
width: 2
3
%;
width: 2
0
%;
cursor: pointer;
aspectratio: 1;
transition: transform 0.25s ease 0s;
object-fit: contain;
`
const
LinkStyle
=
css
`
color:
${({
theme
})
=>
theme
.
accentActive
}
;
stroke:
${({
theme
})
=>
theme
.
accentActive
}
;
`
const
StyledLink
=
styled
(
Link
)
`
${
ClickableStyle
}
${
LinkStyle
}
`
export
default
function
NftExploreBanner
()
{
const
[
hideNftPromoBanner
,
toggleHideNftPromoBanner
]
=
useHideNftPromoBanner
()
const
navigate
=
useNavigate
()
...
...
@@ -110,9 +121,9 @@ export default function NftExploreBanner() {
{
/* <Description> */
}
<
div
className=
{
bodySmall
}
>
<
Trans
>
Buy and sell NFTs across more listings at better prices.
</
Trans
>
{
'
'
}
<
Styled
Internal
Link
to=
"/nfts"
>
<
StyledLink
to=
"/nfts"
>
<
Trans
>
Explore NFTs
</
Trans
>
</
Styled
Internal
Link
>
{
'
'
}
</
StyledLink
>
{
'
'
}
</
div
>
</
TextContainer
>
{
/* </Description> */
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment