forked from Scaffold-Stark/scaffold-stark-2
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
071259d
commit 0fff75d
Showing
14 changed files
with
2,597 additions
and
2,584 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
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import ButtonStyle from "~~/components/ButtonStyle/ButtonStyle" | ||
import { MyHoldings } from "~~/components/SimpleNFT/MyHoldings" | ||
import ButtonStyle from "~~/components/ButtonStyle/ButtonStyle"; | ||
import { MyHoldings } from "~~/components/SimpleNFT/MyHoldings"; | ||
|
||
function Page() { | ||
return ( | ||
<main className="flex flex-col flex-1"> | ||
<div className="flex flex-col items-center p-10"> | ||
<h1 className="text-4xl font-bold text-center mb-4">My NFTs</h1> | ||
<ButtonStyle>Mint NFT</ButtonStyle> | ||
<MyHoldings></MyHoldings> | ||
</div> | ||
</main> | ||
) | ||
return ( | ||
<main className="flex flex-col flex-1"> | ||
<div className="flex flex-col items-center p-10"> | ||
<h1 className="text-4xl font-bold text-center mb-4">My NFTs</h1> | ||
<ButtonStyle>Mint NFT</ButtonStyle> | ||
<MyHoldings></MyHoldings> | ||
</div> | ||
</main> | ||
); | ||
} | ||
|
||
export default Page | ||
export default Page; |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
.base_button__small { | ||
padding-block: 14px; | ||
padding-inline: 24px; | ||
border-radius: 7px; | ||
padding-block: 14px; | ||
padding-inline: 24px; | ||
border-radius: 7px; | ||
} | ||
|
||
.base_button__large { | ||
width: 490px; | ||
padding: 16px 33px; | ||
border: none; | ||
border-radius: 8px; | ||
} | ||
width: 490px; | ||
padding: 16px 33px; | ||
border: none; | ||
border-radius: 8px; | ||
} |
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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
|
||
interface ButtonProps { | ||
children: string; | ||
size?: "small" | "large"; | ||
onClick?: () => void; | ||
} | ||
const ButtonStyle = ({ children, size = "small", onClick }: ButtonProps) => { | ||
const isSmall = size === "small"; | ||
return ( | ||
<button | ||
onClick={onClick} | ||
className={`btn btn-secondary base_button__${isSmall ? "small" : "large"}`} | ||
> | ||
{children} | ||
</button> | ||
); | ||
}; | ||
children: string; | ||
size?: "small" | "large"; | ||
onClick?: () => void; | ||
} | ||
|
||
const ButtonStyle = ({ children, size = "small", onClick }: ButtonProps) => { | ||
const isSmall = size === "small"; | ||
return ( | ||
<button | ||
onClick={onClick} | ||
className={`btn btn-secondary base_button__${isSmall ? "small" : "large"}`} | ||
> | ||
{children} | ||
</button> | ||
); | ||
}; | ||
|
||
export default ButtonStyle | ||
export default ButtonStyle; |
Oops, something went wrong.