diff --git a/packages/backend/index.js b/packages/backend/index.js
index cdd9d6b5..ce023c42 100644
--- a/packages/backend/index.js
+++ b/packages/backend/index.js
@@ -390,6 +390,83 @@ app.get("/challenges", withRole("admin"), async (request, response) => {
}
});
+app.post("/api/frame", (req, res) => {
+ const baseUrl = "https://speedrunethereum.com";
+ const SRE_BACKEND = "https://scaffold-directory-dev.ew.r.appspot.com";
+
+ const challengeButtons = {
+ 0: {
+ label: "🎟 Simple NFT Example",
+ link: "https://speedrunethereum.com/challenge/simple-nft-example",
+ },
+ 1: {
+ label: "🥩 Staking App",
+ link: "https://speedrunethereum.com/challenge/decentralized-staking",
+ },
+ 2: {
+ label: "🏵 Token Vendor",
+ link: "https://speedrunethereum.com/challenge/token-vendor",
+ },
+ 3: {
+ label: "🎲 Dice Game",
+ link: "https://speedrunethereum.com/challenge/dice-game",
+ },
+ 4: {
+ label: "⚖️ Build a DEX",
+ link: "https://speedrunethereum.com/challenge/minimum-viable-exchange",
+ },
+ 5: {
+ label: "📺 State Channel App",
+ link: "https://speedrunethereum.com/challenge/state-channels",
+ },
+ };
+
+ try {
+ const { query } = req;
+
+ let idAsNumber = 0;
+
+ if (query && query.id) {
+ idAsNumber = Number(query.id);
+ }
+
+ const nextId = idAsNumber + 1;
+
+ if (idAsNumber === 6) {
+ res.status(200).send(`
+ Speed Run Ethereum
+
+
+
+
+
+
+
+
+
+
+
+
+ `);
+ } else {
+ res.status(200).send(`
+ Speed Run Ethereum
+
+
+
+
+
+
+
+
+ `);
+ }
+ } catch (err) {
+ console.log("err", err);
+ res.status(500).send({ error: "failed to load frame" });
+ }
+});
+
// If nothing processed the request, return 404
app.use((req, res) => {
console.log(`Request to ${req.path} resulted in 404`);
diff --git a/packages/react-app/public/frames/buidlguidl.jpg b/packages/react-app/public/frames/buidlguidl.jpg
new file mode 100644
index 00000000..0c96efbc
Binary files /dev/null and b/packages/react-app/public/frames/buidlguidl.jpg differ
diff --git a/packages/react-app/public/frames/challenge-0.png b/packages/react-app/public/frames/challenge-0.png
new file mode 100644
index 00000000..873c5d6e
Binary files /dev/null and b/packages/react-app/public/frames/challenge-0.png differ
diff --git a/packages/react-app/public/frames/challenge-1.png b/packages/react-app/public/frames/challenge-1.png
new file mode 100644
index 00000000..287eb954
Binary files /dev/null and b/packages/react-app/public/frames/challenge-1.png differ
diff --git a/packages/react-app/public/frames/challenge-2.png b/packages/react-app/public/frames/challenge-2.png
new file mode 100644
index 00000000..cf8a8121
Binary files /dev/null and b/packages/react-app/public/frames/challenge-2.png differ
diff --git a/packages/react-app/public/frames/challenge-3.png b/packages/react-app/public/frames/challenge-3.png
new file mode 100644
index 00000000..a27581af
Binary files /dev/null and b/packages/react-app/public/frames/challenge-3.png differ
diff --git a/packages/react-app/public/frames/challenge-4.png b/packages/react-app/public/frames/challenge-4.png
new file mode 100644
index 00000000..985f093b
Binary files /dev/null and b/packages/react-app/public/frames/challenge-4.png differ
diff --git a/packages/react-app/public/frames/challenge-5.png b/packages/react-app/public/frames/challenge-5.png
new file mode 100644
index 00000000..64d88b9d
Binary files /dev/null and b/packages/react-app/public/frames/challenge-5.png differ
diff --git a/packages/react-app/public/frames/challenge-6.png b/packages/react-app/public/frames/challenge-6.png
new file mode 100644
index 00000000..35218fb8
Binary files /dev/null and b/packages/react-app/public/frames/challenge-6.png differ
diff --git a/packages/react-app/public/frames/challenge-7.png b/packages/react-app/public/frames/challenge-7.png
new file mode 100644
index 00000000..79bafb06
Binary files /dev/null and b/packages/react-app/public/frames/challenge-7.png differ
diff --git a/packages/react-app/public/index.html b/packages/react-app/public/index.html
index 3d10480d..05a6bc05 100644
--- a/packages/react-app/public/index.html
+++ b/packages/react-app/public/index.html
@@ -8,12 +8,22 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
Speed Run Ethereum