-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contract deployer socials widget and success page (#149)
* Add Success Page + Socials in Contract Deployer Example * add success + socials * naming
- Loading branch information
1 parent
38bdfcd
commit fd335ec
Showing
10 changed files
with
322 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
{ | ||
"name": "NFT-Contract-Deployer-Mintbase-Templates", | ||
"version": "0.1.0", | ||
"keywords": ["templates", "mintbase", "web3", "nextjs", "react", "blog","contract","contract-deployer"], | ||
"keywords": [ | ||
"templates", | ||
"mintbase", | ||
"web3", | ||
"nextjs", | ||
"react", | ||
"blog", | ||
"contract", | ||
"contract-deployer" | ||
], | ||
"repository": "https://github.com/mintbase/templates.git", | ||
"homepage": "https;//templates.mintbase.xyz/contract-deployer", | ||
"author": "Mintbase Team <[email protected]>", | ||
|
@@ -26,7 +35,9 @@ | |
"next": "14.0.3", | ||
"react": "^18", | ||
"react-dom": "^18", | ||
"react-github-btn": "^1.4.0", | ||
"react-hook-form": "^7.48.2", | ||
"react-share": "^5.1.0", | ||
"tailwind-merge": "^2.0.0", | ||
"tailwindcss-animate": "^1.0.7", | ||
"zod": "^3.22.4" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,59 @@ | ||
// @ts-nocheck | ||
|
||
"use client"; | ||
|
||
import GitHubButton from "react-github-btn"; | ||
import { | ||
FacebookIcon, | ||
FacebookShareButton, | ||
LinkedinIcon, | ||
LinkedinShareButton, | ||
TelegramIcon, | ||
TelegramShareButton, | ||
TwitterShareButton, | ||
XIcon, | ||
} from "react-share"; | ||
|
||
export const SocialMedias = () => { | ||
const url = "https://contract-deployer-template.mintbase.xyz"; | ||
const title = "Mintbase Templates - Contract Deployer"; | ||
|
||
return ( | ||
<div className="absolute pt-5 top-2 left-0 w-full h-[30px] z-50"> | ||
<div className="flex gap-2 justify-end flex-wrap pr-4"> | ||
<GitHubButton | ||
href="https://github.com/mintbase/templates/generate" | ||
data-color-scheme="no-preference: light; light: light; dark: dark;" | ||
data-size="large" | ||
aria-label="Use this template mintbase/templates on GitHub" | ||
> | ||
Use this template | ||
</GitHubButton> | ||
<GitHubButton | ||
href="https://github.com/mintbase/templates" | ||
data-color-scheme="no-preference: dark; light: light; dark: dark;" | ||
data-icon="octicon-star" | ||
data-size="large" | ||
aria-label="Star mintbase/templates on GitHub" | ||
> | ||
Star | ||
</GitHubButton>{" "} | ||
<div className="social-networks"> | ||
<FacebookShareButton url={url}> | ||
<FacebookIcon size={24} round /> | ||
</FacebookShareButton> | ||
<TwitterShareButton url={url} title={title}> | ||
<XIcon size={24} round /> | ||
</TwitterShareButton> | ||
|
||
<TelegramShareButton url={url} title={title}> | ||
<TelegramIcon size={24} round /> | ||
</TelegramShareButton> | ||
<LinkedinShareButton url={url}> | ||
<LinkedinIcon size={24} round /> | ||
</LinkedinShareButton> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.