forked from tqtezos/minter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# This is a combination of 27 commits.
# This is the 1st commit message: coll imgs now scaled down + height:100% coll imgs now scaled down + height:100% # This is the commit message tqtezos#2: removed preview text for UI purposes (tqtezos#262) Removed preview # This is the commit message tqtezos#3: update README (tqtezos#268) PR points to Minter SDK for contracts and updates some of the README # This is the commit message tqtezos#4: Carbon savings message on creation of NFT (tqtezos#264) * added CO2 em. message * Modified copy # This is the commit message tqtezos#5: Add video metadata types to file upload page. Fixes tqtezos#238 (tqtezos#251) # This is the commit message tqtezos#6: feat: Update fa2_tzip16_compate_multi_nft_asset.ts with (tqtezos/minter-sdk#62) code # This is the commit message tqtezos#7: feat: Update git hash in bootstrap-contracts-config.ts # This is the commit message tqtezos#8: Add badge to display network when not on mainnet. # This is the commit message tqtezos#9: Add badge to display network when not on mainnet. # This is the commit message tqtezos#10: Link contract to explorer GUI. Fixes tqtezos#242 # This is the commit message tqtezos#11: added OM favicon replacement (tqtezos#283) # This is the commit message tqtezos#12: shield auto-updates (tqtezos#284) # This is the commit message tqtezos#13: updated shield code # This is the commit message tqtezos#14: Make grid responsive (tqtezos#249) # This is the commit message tqtezos#15: Adding basic netlify redirect config (tqtezos#290) # This is the commit message tqtezos#16: Initial work on marketplace # This is the commit message tqtezos#17: fix formatting # This is the commit message tqtezos#18: Loading spinner for collections # This is the commit message tqtezos#19: Remove "marketplace" header # This is the commit message tqtezos#20: Better icons # This is the commit message tqtezos#21: Only show active sale items # This is the commit message tqtezos#22: Batch "list for sale" transactions. Fixes tqtezos#287 # This is the commit message tqtezos#23: revert marketplace contract to correct version # This is the commit message tqtezos#24: restart bcd api in sandbox on failure # This is the commit message tqtezos#25: feat: Update header to reflect new designs # This is the commit message tqtezos#26: feat: Move logo to common assets, add responsive header logo # This is the commit message tqtezos#27: This should be replace: false, or else the back button will not go back to marketplace
- Loading branch information
Showing
32 changed files
with
724 additions
and
323 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ services: | |
- mq | ||
ports: | ||
- 42000:14000 | ||
restart: on-failure | ||
logging: | ||
options: | ||
max-size: 10m | ||
|
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,4 @@ | ||
[[redirects]] | ||
from = "/*" | ||
to = "/index.html" | ||
status = 200 |
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
Binary file not shown.
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
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,49 @@ | ||
import React from 'react'; | ||
import { Token } from '../../../reducer/slices/collections'; | ||
import { useLocation } from 'wouter'; | ||
import { ipfsUriToGatewayUrl } from '../../../lib/util/ipfs'; | ||
import { AspectRatio, Box, Container, Flex, Spacer, Text, Heading, Stack } from '@chakra-ui/react'; | ||
import { MinterButton } from '../../common'; | ||
import { TokenMedia } from '../../common/TokenMedia'; | ||
|
||
interface FeaturedTokenProps extends Token { | ||
network: string; | ||
} | ||
|
||
export default function FeaturedToken(props: FeaturedTokenProps) { | ||
const [, setLocation] = useLocation(); | ||
return ( | ||
<Container maxW="65em" py={10}> | ||
<Stack direction={{sm: "column", md: "row"}} spacing="24px" mb={10}> | ||
<Box w="400px" h="266px"> | ||
<AspectRatio maxW="400px" maxH="266px" ratio={2 / 3}> | ||
<TokenMedia | ||
src={ipfsUriToGatewayUrl(props.network, props.artifactUri)} | ||
/> | ||
</AspectRatio> | ||
</Box> | ||
<Box> | ||
<Flex flexDir="column" h="100%" w="100%"> | ||
<Heading size="md" mt={4}>{props.title}</Heading> | ||
<Heading size="sm" my={4} color="brand.darkGray">Seller: {props.sale?.seller}</Heading> | ||
<Text fontSize="sm" fontWeight="600" color="gray.500">{props.description}</Text> | ||
<Spacer /> | ||
<Text fontSize="md">Current Price: <Text as="span" fontWeight="600">{props.sale?.price} ꜩ</Text></Text> | ||
<MinterButton | ||
size="md" | ||
variant="primaryAction" | ||
w="150px" | ||
my={4} | ||
onClick={e => { | ||
e.preventDefault(); | ||
setLocation(`/collection/${props.address}/token/${props.id}`, { replace: false }); | ||
}} | ||
> | ||
<Text>View</Text> | ||
</MinterButton> | ||
</Flex> | ||
</Box> | ||
</Stack> | ||
</Container> | ||
); | ||
} |
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,67 @@ | ||
import React from 'react'; | ||
import { Token } from '../../../reducer/slices/collections'; | ||
import { useLocation } from 'wouter'; | ||
import { ipfsUriToGatewayUrl } from '../../../lib/util/ipfs'; | ||
import { AspectRatio, Box, Flex, Text, Heading } from '@chakra-ui/react'; | ||
import { TokenMedia } from '../../common/TokenMedia'; | ||
|
||
interface TokenCardProps extends Token { | ||
network: string; | ||
} | ||
|
||
export default function TokenCard(props: TokenCardProps) { | ||
const [, setLocation] = useLocation(); | ||
return ( | ||
<Flex | ||
flexDir="column" | ||
ratio={1} | ||
w="100%" | ||
bg="white" | ||
border="1px solid" | ||
borderColor="brand.lightBlue" | ||
borderRadius="3px" | ||
overflow="hidden" | ||
boxShadow="0px 0px 0px 4px rgba(15, 97, 255, 0)" | ||
transition="all linear 50ms" | ||
_hover={{ | ||
cursor: 'pointer', | ||
boxShadow: '0px 0px 0px 4px rgba(15, 97, 255, 0.1)' | ||
}} | ||
onClick={() => | ||
setLocation(`/collection/${props.address}/token/${props.id}`) | ||
} | ||
> | ||
<AspectRatio ratio={3 / 2}> | ||
<Box> | ||
<TokenMedia | ||
src={ipfsUriToGatewayUrl(props.network, props.artifactUri)} | ||
/> | ||
</Box> | ||
</AspectRatio> | ||
<Flex | ||
width="100%" | ||
px={4} | ||
py={4} | ||
bg="white" | ||
borderTop="1px solid" | ||
borderColor="brand.lightBlue" | ||
flexDir="column" | ||
> | ||
<Heading size="sm">{props.title}</Heading> | ||
<Text fontSize="sm">Seller: {props.sale?.seller.substr(0, 5)}...{props.sale?.seller.substr(-5)}</Text> | ||
</Flex> | ||
<Flex | ||
px={2} | ||
py={4} | ||
mx={2} | ||
bg="white" | ||
borderTop="1px solid" | ||
borderColor="brand.lightGray" | ||
justify="space-between" | ||
> | ||
<Text fontSize="md">Current Price</Text> | ||
<Text fontSize="md" fontWeight="600">{props.sale?.price} ꜩ</Text> | ||
</Flex> | ||
</Flex> | ||
); | ||
} |
Oops, something went wrong.