Skip to content

Commit 9a56a5a

Browse files
committed
Update claim and thanks
1 parent 9b5204b commit 9a56a5a

3 files changed

Lines changed: 35 additions & 6 deletions

File tree

src/components/ClaimForm.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import emailRobot from "@swizec/gatsby-theme-course-platform/src/images/email-ro
66
import { useLocalStorage } from "./useLocalStorage"
77

88
async function createUser({ name, email }) {
9-
const res = await fetch(
9+
await fetch(
1010
"https://tq43ps6oh2.execute-api.us-east-1.amazonaws.com/dev/gumroadPing",
1111
{
1212
method: "POST",
@@ -18,7 +18,6 @@ async function createUser({ name, email }) {
1818
}).toString(),
1919
}
2020
)
21-
console.log(res)
2221
}
2322

2423
export const ClaimForm = () => {

src/pages/claim.mdx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,39 @@
1+
import { Box } from "theme-ui"
12
import { ClaimForm } from "../components/ClaimForm"
23

34
# Claim your digital copy
45

56
Access interactive features, clickable links, copypasta code, and the latest updates.
67

8+
<Box
9+
sx={{
10+
width: "100%",
11+
height: 0,
12+
paddingBottom: 900 / 16 + "%",
13+
position: "relative",
14+
overflow: "hidden",
15+
"& > iframe": {
16+
position: "absolute",
17+
width: "100%",
18+
height: "100%",
19+
top: 0,
20+
bottom: 0,
21+
left: 0,
22+
border: 0,
23+
},
24+
}}
25+
>
26+
<iframe
27+
width="100%"
28+
height="100%"
29+
src="https://www.youtube.com/embed/9hhEorVr5Mk"
30+
frameborder="0"
31+
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
32+
allowfullscreen
33+
></iframe>
34+
</Box>
35+
<br />
36+
737
Hello 👋
838

939
You came here from the back cover of Serverless Handbook, or one of the prompts offering interactive features. I hope that means you're enjoying the book :)

src/pages/thanks.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ import { TypeformLink } from "@swizec/gatsby-theme-course-platform"
2828
<iframe
2929
width="100%"
3030
height="100%"
31-
src="https://www.youtube.com/embed/uruePC5l6FE"
31+
src="https://www.youtube.com/embed/cgmjsd9biyE"
3232
frameborder="0"
3333
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
3434
allowfullscreen
3535
></iframe>
3636
</Box>
3737

38-
Hey thanks again for supporting Serverless Handbook. I really appreciate it and I hope it helps you on your journey.
38+
Hey thanks again for supporting Serverless Handbook. I hope it helps you on your journey.
3939

4040
Here's what happens next 👇
4141

4242
I just saved a cookie in your browser. Now it knows that you have full access to the content. No more opt-in buttons, hidden content, or anything like that. Get started with the menu on the left, or click the Back button to see the page you were looking at before.
4343

44-
Gumroad sent you an email with a link that unlocks this book on other computers.
44+
My robots created an account for you and sent an email with further instructions. **You'll have to set a password.**
4545

46-
And I'll send you an email every time I publish a new chapter. ✌️
46+
Over the next few weeks, you'll get a chapter in your inbox every 3 days or so. Because buying books and reading books are different hobbies :)
4747

4848
Wanna help improve Serverless Handbook? Answer 2 quick questions
4949

0 commit comments

Comments
 (0)