├── test └── .gitkeep ├── contracts ├── .gitkeep └── PixelNFT.sol ├── migrations ├── .gitkeep └── 2_deploy_contracts.js ├── public ├── assets │ ├── 1.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── logo.png │ ├── nft │ │ ├── 1.png │ │ ├── 10.png │ │ ├── 11.png │ │ ├── 12.png │ │ ├── 2.png │ │ ├── 3.png │ │ ├── 4.png │ │ ├── 5.png │ │ ├── 6.png │ │ ├── 7.png │ │ ├── 8.png │ │ └── 9.png │ └── pixel-logo.png ├── placeholder-logo.png ├── placeholder.jpg ├── placeholder-user.jpg ├── placeholder-logo.svg └── placeholder.svg ├── postcss.config.mjs ├── lib ├── utils.ts └── ipfs.ts ├── components ├── ui │ ├── aspect-ratio.tsx │ ├── skeleton.tsx │ ├── collapsible.tsx │ ├── use-mobile.tsx │ ├── textarea.tsx │ ├── label.tsx │ ├── input.tsx │ ├── separator.tsx │ ├── progress.tsx │ ├── toaster.tsx │ ├── sonner.tsx │ ├── checkbox.tsx │ ├── slider.tsx │ ├── switch.tsx │ ├── badge.tsx │ ├── tooltip.tsx │ ├── hover-card.tsx │ ├── popover.tsx │ ├── avatar.tsx │ ├── radio-group.tsx │ ├── toggle.tsx │ ├── alert.tsx │ ├── scroll-area.tsx │ ├── resizable.tsx │ ├── toggle-group.tsx │ ├── tabs.tsx │ ├── button.tsx │ ├── card.tsx │ ├── accordion.tsx │ ├── input-otp.tsx │ ├── calendar.tsx │ ├── breadcrumb.tsx │ ├── pagination.tsx │ ├── table.tsx │ ├── drawer.tsx │ ├── dialog.tsx │ ├── use-toast.ts │ ├── sheet.tsx │ ├── form.tsx │ ├── alert-dialog.tsx │ ├── toast.tsx │ ├── command.tsx │ ├── navigation-menu.tsx │ ├── select.tsx │ ├── carousel.tsx │ ├── context-menu.tsx │ ├── dropdown-menu.tsx │ └── menubar.tsx ├── PdfDownloadButton.tsx ├── Modal.tsx └── connect-wallet-button.tsx ├── next-env.d.ts ├── .gitignore ├── constants.ts ├── components.json ├── hooks ├── use-mobile.tsx └── use-toast.ts ├── tsconfig.json ├── .env.local ├── app ├── layout.tsx ├── marketplace │ └── [id] │ │ └── page.tsx ├── components │ ├── DeploymentStatus.tsx │ ├── BackgroundCollage.tsx │ ├── Header.tsx │ └── WalletCard.tsx ├── globals.css ├── history │ └── page.tsx └── my-collection │ └── page.tsx ├── truffle-config.js ├── next.config.mjs ├── styles └── globals.css ├── package.json ├── tailwind.config.ts └── README.md /test/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /contracts/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/assets/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/1.png -------------------------------------------------------------------------------- /public/assets/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/2.png -------------------------------------------------------------------------------- /public/assets/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/3.png -------------------------------------------------------------------------------- /public/assets/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/4.png -------------------------------------------------------------------------------- /public/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/logo.png -------------------------------------------------------------------------------- /public/assets/nft/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/1.png -------------------------------------------------------------------------------- /public/assets/nft/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/10.png -------------------------------------------------------------------------------- /public/assets/nft/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/11.png -------------------------------------------------------------------------------- /public/assets/nft/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/12.png -------------------------------------------------------------------------------- /public/assets/nft/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/2.png -------------------------------------------------------------------------------- /public/assets/nft/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/3.png -------------------------------------------------------------------------------- /public/assets/nft/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/4.png -------------------------------------------------------------------------------- /public/assets/nft/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/5.png -------------------------------------------------------------------------------- /public/assets/nft/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/6.png -------------------------------------------------------------------------------- /public/assets/nft/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/7.png -------------------------------------------------------------------------------- /public/assets/nft/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/8.png -------------------------------------------------------------------------------- /public/assets/nft/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/nft/9.png -------------------------------------------------------------------------------- /public/assets/pixel-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ayaanoski/pixel8r/HEAD/public/assets/pixel-logo.png -------------------------------------------------------------------------------- /migrations/2_deploy_contracts.js: -------------------------------------------------------------------------------- 1 | const PixelNFT = artifacts.require("PixelNFT"); 2 | 3 | module.exports = function(deployer) { 4 | deployer.deploy(PixelNFT); 5 | }; -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('postcss-load-config').Config} */ 2 | const config = { 3 | plugins: { 4 | tailwindcss: {}, 5 | }, 6 | }; 7 | 8 | export default config; 9 | -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- 1 | import { clsx, type ClassValue } from "clsx" 2 | import { twMerge } from "tailwind-merge" 3 | 4 | export function cn(...inputs: ClassValue[]) { 5 | return twMerge(clsx(inputs)) 6 | } 7 | -------------------------------------------------------------------------------- /components/ui/aspect-ratio.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio" 4 | 5 | const AspectRatio = AspectRatioPrimitive.Root 6 | 7 | export { AspectRatio } 8 | -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | // NOTE: This file should not be edited 5 | // see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env 3 | .next 4 | # Hardhat files 5 | /cache 6 | /artifacts 7 | 8 | # TypeChain files 9 | /typechain 10 | /typechain-types 11 | 12 | # solidity-coverage files 13 | /coverage 14 | /coverage.json 15 | 16 | # Hardhat Ignition default folder for deployments against a local node 17 | ignition/deployments/chain-31337 18 | -------------------------------------------------------------------------------- /components/ui/skeleton.tsx: -------------------------------------------------------------------------------- 1 | import { cn } from "@/lib/utils" 2 | 3 | function Skeleton({ 4 | className, 5 | ...props 6 | }: React.HTMLAttributes) { 7 | return ( 8 |
12 | ) 13 | } 14 | 15 | export { Skeleton } 16 | -------------------------------------------------------------------------------- /components/ui/collapsible.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import * as CollapsiblePrimitive from "@radix-ui/react-collapsible" 4 | 5 | const Collapsible = CollapsiblePrimitive.Root 6 | 7 | const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger 8 | 9 | const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent 10 | 11 | export { Collapsible, CollapsibleTrigger, CollapsibleContent } 12 | -------------------------------------------------------------------------------- /constants.ts: -------------------------------------------------------------------------------- 1 | export const MARKETPLACE_CONTRACT_ADDRESS="0x40eFc4108Cb9102c1cf5d8E68D1Cf5A700ceC72f"; 2 | export const NFT_CONTRACT_ADDRESS="0xE5c50286723cc4d3920CE4f705Be4aA7611F2a9e"; 3 | 4 | export const REQUIRED_NETWORK = { 5 | chainId: "0x29", 6 | chainName: "Telos EVM Testnet", 7 | nativeCurrency: { 8 | name: "Ether", 9 | symbol: "TLOS", 10 | decimals: 18 11 | }, 12 | rpcUrls: ["https://testnet.telos.net/evm"], 13 | blockExplorerUrls: ["https://testnet.teloscan.io/"] 14 | }; -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://ui.shadcn.com/schema.json", 3 | "style": "default", 4 | "rsc": true, 5 | "tsx": true, 6 | "tailwind": { 7 | "config": "tailwind.config.ts", 8 | "css": "app/globals.css", 9 | "baseColor": "neutral", 10 | "cssVariables": true, 11 | "prefix": "" 12 | }, 13 | "aliases": { 14 | "components": "@/components", 15 | "utils": "@/lib/utils", 16 | "ui": "@/components/ui", 17 | "lib": "@/lib", 18 | "hooks": "@/hooks" 19 | }, 20 | "iconLibrary": "lucide" 21 | } -------------------------------------------------------------------------------- /public/placeholder-logo.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR�M��0PLTEZ? tRNS� �@��`P0p���w �IDATx��ؽJ3Q�7'��%�|?� ���E�l�7���(X�D������w`����[�*t����D���mD�}��4; ;�DDDDDDDDDDDD_�_İ��!�y�`�_�:�� ;Ļ�'|� ��;.I"����3*5����J�1�� �T��FI�� ��=��3܃�2~�b���0��U9\��]�4�#w0��Gt\&1 �?21,���o!e�m��ĻR�����5�� ؽAJ�9��R)�5�0.FFASaǃ�T�#|�K���I�������1� 4 | M������N"��$����G�V�T� ��T^^��A�$S��h(�������G]co"J׸^^�'�=���%� �W�6Ы�W��w�a�߇*�^^�YG�c���`'F����������������^5_�,�S�%IEND�B`� -------------------------------------------------------------------------------- /hooks/use-mobile.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | const MOBILE_BREAKPOINT = 768 4 | 5 | export function useIsMobile() { 6 | const [isMobile, setIsMobile] = React.useState(undefined) 7 | 8 | React.useEffect(() => { 9 | const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`) 10 | const onChange = () => { 11 | setIsMobile(window.innerWidth < MOBILE_BREAKPOINT) 12 | } 13 | mql.addEventListener("change", onChange) 14 | setIsMobile(window.innerWidth < MOBILE_BREAKPOINT) 15 | return () => mql.removeEventListener("change", onChange) 16 | }, []) 17 | 18 | return !!isMobile 19 | } 20 | -------------------------------------------------------------------------------- /components/ui/use-mobile.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | const MOBILE_BREAKPOINT = 768 4 | 5 | export function useIsMobile() { 6 | const [isMobile, setIsMobile] = React.useState(undefined) 7 | 8 | React.useEffect(() => { 9 | const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`) 10 | const onChange = () => { 11 | setIsMobile(window.innerWidth < MOBILE_BREAKPOINT) 12 | } 13 | mql.addEventListener("change", onChange) 14 | setIsMobile(window.innerWidth < MOBILE_BREAKPOINT) 15 | return () => mql.removeEventListener("change", onChange) 16 | }, []) 17 | 18 | return !!isMobile 19 | } 20 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": ["dom", "dom.iterable", "esnext"], 4 | "allowJs": true, 5 | "target": "ES6", 6 | "skipLibCheck": true, 7 | "strict": true, 8 | "noEmit": true, 9 | "esModuleInterop": true, 10 | "module": "esnext", 11 | "moduleResolution": "bundler", 12 | "resolveJsonModule": true, 13 | "isolatedModules": true, 14 | "jsx": "preserve", 15 | "incremental": true, 16 | "plugins": [ 17 | { 18 | "name": "next" 19 | } 20 | ], 21 | "paths": { 22 | "@/*": ["./*"] 23 | } 24 | }, 25 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 26 | "exclude": ["node_modules"] 27 | } 28 | -------------------------------------------------------------------------------- /components/ui/textarea.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | import { cn } from "@/lib/utils" 4 | 5 | const Textarea = React.forwardRef< 6 | HTMLTextAreaElement, 7 | React.ComponentProps<"textarea"> 8 | >(({ className, ...props }, ref) => { 9 | return ( 10 |