Skip to content

Instantly share code, notes, and snippets.

@Chuloo
Created October 28, 2021 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chuloo/60b43b2f8b5839764aa95f6c0948461c to your computer and use it in GitHub Desktop.
Save Chuloo/60b43b2f8b5839764aa95f6c0948461c to your computer and use it in GitHub Desktop.
Post checkout page template for shoppable video
import router from "next/router";
export default function Checkout() {
return (
<div
style={{
display: "flex",
justifyContent: "center",
}}
>
<div
style={{
display: "flex",
flexDirection: "column",
justifyContent: "center",
}}
>
<div
style={{
display: "flex",
justifyContent: "center",
marginTop: "14px",
}}
>
<TickSVG />
</div>
<div
style={{
display: "flex",
justifyContent: "center",
marginBottom: "30px",
}}
>
<h2>Checkout successful!!</h2>
</div>
<div
style={{
display: "flex",
justifyContent: "center",
}}
>
<button onClick={() => router.push("/")}>Go to Homepage</button>
</div>
</div>
</div>
);
}
function TickSVG() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
height="48px"
viewBox="0 0 24 24"
width="48px"
fill="#008002"
>
<path d="M0 0h24v24H0V0z" fill="none" />
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z" />
</svg>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment