Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions components/marketplace/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function Item({
mt={2}
minW={110}
mr={1}
color='black'
>
<Text fontWeight="medium" fontSize={14}>
Price {price}
Expand Down
6 changes: 3 additions & 3 deletions components/marketplace/Market.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function Market() {
overflow="scroll"
height="76vh"
spacing={2}
p="0 16px"
p="0 16px 200px 0"
bgColor="#C8BB98"
align="center"
>
Expand All @@ -161,7 +161,7 @@ function Market() {
Selling NFT
</Text>
</Box>
<Image
{/* <Image
src="/images/marketplace/header.webp"
alt="header"
position="absolute"
Expand All @@ -173,7 +173,7 @@ function Market() {
zIndex={-1}
w={`${210 * 0.6}px`}
h={`${160 * 0.6}px`}
/>
/> */}
</Box>

{loading && <Spinner />}
Expand Down
65 changes: 8 additions & 57 deletions pages/market/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ function MarketPlace() {
const [nav, setNav] = useState(1)

return (
<MarketPlaceCSS>
<div style={{
position: 'relative',
zIndex: 1,
}}>
<Head>
<title>Marketplace</title>
</Head>
Expand All @@ -20,6 +23,9 @@ function MarketPlace() {
justifyContent="space-evenly"
gap={2}
backgroundColor="black"
style={{
padding: '16px'
}}
>
<Box>
<Center
Expand Down Expand Up @@ -48,63 +54,8 @@ function MarketPlace() {
<div>
{nav === 1 ? <Market /> : nav === 2 ? <DashBoard /> : <History />}
</div>
</MarketPlaceCSS>
</div>
)
}

const MarketPlaceCSS = styled.div({
'.nav': {
display: 'flex',
backgroundColor: 'black',
color: 'white',
'.nav-items-1': {
flex: 1,
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
img: {
marginLeft: '100px',
'@media(max-width: 950px)': {
marginLeft: '20px',
},
},
'@media(max-width: 520px)': {
justifyContent: 'flex-end',
img: {
display: 'none',
},
},
},
'.nav-items-2': {
display: 'flex',
alignItems: 'center',
},
'.nav-items-3': {
flex: 1,
display: 'flex',
alignItems: 'center',
},
'.nav-items-1, .nav-items-2, .nav-items-3': {
div: {
padding: '20px 100px',
fontWeight: '700',
fontSize: '22px',
'@media(max-width: 1020px)': {
padding: '20px 50px',
},
'@media(max-width: 640px)': {
padding: '20px 10px',
},
'@media(max-width: 520px)': {
fontSize: '18px',
padding: '15px 10px',
},
},
'.select': {
color: '#FFB966',
},
},
},
})

export default MarketPlace