Skip to content

Commit

Permalink
feat: fixed styles issue, enhancend some styles, added container clas…
Browse files Browse the repository at this point in the history
…s, added D_D favicon.ico file
  • Loading branch information
Markkos89 committed Nov 3, 2023
1 parent ee8bdb3 commit 36a8cf3
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 312 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NEXT_PUBLIC_WALLETCONNECTCLOUD_PROJECT_ID=""

NEXT_PUBLIC_TIERNFT_CONTRACT_ADDRESS=""
Binary file modified public/favicon.ico
Binary file not shown.
111 changes: 98 additions & 13 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function Home() {
}, [tokenData, tokenURI]);

return (
<>
<div className={styles.container}>
<Head>
<title>NFT Minter</title>
<meta
Expand All @@ -91,15 +91,15 @@ export default function Home() {
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
</Head>
<header className="header">
<header style={header}>
<h1>TierNFTs</h1>
<ConnectButton />
</header>
{isUserConnected ? (
<main className={styles.main}>
<div className="NFTFlex">
<div className="NFTCard">
Tier 0
<div style={NFTFlex}>
<div style={NFTCard}>
<h2> Tier 0</h2>
<Image
src="/nfts/0_basic.svg"
width="200"
Expand All @@ -109,14 +109,14 @@ export default function Home() {
<button
value="0.01"
onClick={(e) => mintToken(e)}
className="NFTMint"
style={NFTMint}
disabled={isMintLoading}
>
Mint
</button>
</div>
<div className="NFTCard">
Tier 1
<div style={NFTCard}>
<h2> Tier 1</h2>
<Image
src="/nfts/1_medium.svg"
width="200"
Expand All @@ -126,14 +126,14 @@ export default function Home() {
<button
value="0.02"
onClick={(e) => mintToken(e)}
className="NFTMint"
style={NFTMint}
disabled={isMintLoading}
>
Mint
</button>
</div>
<div className="NFTCard">
Tier 2
<div style={NFTCard}>
<h2>Tier 2</h2>
<Image
src="/nfts/2_premium.svg"
width="200"
Expand All @@ -143,7 +143,7 @@ export default function Home() {
<button
value="0.05"
onClick={(e) => mintToken(e)}
className="NFTMint"
style={NFTMint}
disabled={isMintLoading}
>
Mint
Expand Down Expand Up @@ -202,6 +202,91 @@ export default function Home() {
<div>Please connect your wallet.</div>
</main>
)}
</>
</div>
);
}

const header = {
display: "flex",
alignItems: "center",
justifyContent: "space-between",
paddingTop: "20px",
paddingLeft: "50px",
paddingRight: "50px",
};

const NFTFlex = {
display: "flex",
alignItems: "center",
justifyContent: "space-evenly",
gap: "50px",
};

const NFTCard = {
display: "flex",
flexDirection: "column",
border: "2px solid white",
borderRadius: "10px",
padding: "20px",
alignItems: "center",
gap: "10px",
fontWeight: "bold",
};

const NFTMint = {
fontWeight: "700",
padding: "5px 20px",
border: "2px solid white",
color: "white",
backgroundColor: "black",
borderRadius: "5px",
cursor: "pointer",
};

const modal = {
position: "fixed",
left: "0",
top: "0",
right: "0",
bottom: "0",
backgroundColor: "rgba(0, 0, 0, 0.8)",
display: "flex",
alignItems: "center",
justifyContent: "center",
textAlign: "center",
zIndex: "1",
};

const modalContent = {
backgroundColor: "#fff",
padding: "10px 30px",
borderRadius: "16px",
color: "#000",
};

const modalBody = {
padding: "20px",
borderTop: "1px solid #eee",
borderBottom: "1px solid #eee",
};

const modalFooter = {
display: "flex",
flexDirection: "column",
gap: "10px",
padding: "20px",
justifyContent: "space-evenly",
};

const modalButton = {
padding: "10px 20px",
backgroundColor: "#fff",
color: "#666",
border: "0",
borderRadius: "10px",
fontSize: "18px",
fontWeight: "700",
boxShadow:
"0 0.2em 0.4em 0 rgba(0, 0, 0, 0.2), 0 0.3em 1em 0 rgba(0, 0, 0, 0.19)",
cursor: "pointer",
};
Loading

0 comments on commit 36a8cf3

Please sign in to comment.