diff --git a/public/screenshots/capture.png b/public/screenshots/capture.png new file mode 100644 index 0000000..a94c44c Binary files /dev/null and b/public/screenshots/capture.png differ diff --git a/public/screenshots/twitter.png b/public/screenshots/twitter.png new file mode 100644 index 0000000..e8cb9f9 Binary files /dev/null and b/public/screenshots/twitter.png differ diff --git a/src/pages/_middleware.ts b/src/pages/_middleware.ts index 8342137..c0f9e69 100644 --- a/src/pages/_middleware.ts +++ b/src/pages/_middleware.ts @@ -4,7 +4,6 @@ import { NextRequest, NextResponse } from "next/server"; export async function middleware(req: NextRequest) { const { pathname, searchParams } = req.nextUrl; - console.log(pathname); if (pathname === "/dashboards") { const dashboardId = searchParams.get("dashboardId"); if (dashboardId) { diff --git a/src/pages/tools.tsx b/src/pages/tools.tsx index 772eb3b..d5c51ca 100644 --- a/src/pages/tools.tsx +++ b/src/pages/tools.tsx @@ -1,14 +1,19 @@ import { NextPage } from "next"; +import Image from "next/image"; import Link from "next/link"; import React from "react"; +import captureImg from "../../public/screenshots/capture.png"; +import dashboardImg from "../../public/screenshots/dashboard.png"; +import frontpageImg from "../../public/screenshots/frontpage.png"; +import twitterImg from "../../public/screenshots/twitter.png"; import { Card } from "../web/common/Card"; import { Layout } from "../web/common/Layout"; type AnyTool = { title: string; description: string; - img?: string; + img?: StaticImageData; }; type InnerTool = AnyTool & { innerLink: string }; @@ -24,7 +29,7 @@ const ToolCard: React.FC = (tool) => {
{tool.title}
{tool.description}
- {tool.img && } + {tool.img && }
); @@ -52,27 +57,27 @@ const ToolsPage: NextPage = () => { title: "Search", description: "Find forecasting questions on many platforms.", innerLink: "/", - img: "/screenshots/frontpage.png", + img: frontpageImg, }, { title: "[Beta] Present", description: "Present forecasts in dashboards.", innerLink: "/dashboards", - img: "/screenshots/dashboard.png", + img: dashboardImg, }, { title: "Capture", description: "Capture forecasts save them to Imgur. Useful for posting them somewhere else as images. Currently rate limited by Imgur, so if you get a .gif of a fox falling flat on his face, that's why. Capture button can be found on individual questions pages.", innerLink: "/", - img: "https://i.imgur.com/EXkFBzz.png", + img: captureImg, }, { title: "Summon", description: "Summon metaforecast on Twitter by mentioning @metaforecast, or on Discord by using Fletcher and !metaforecast, followed by search terms.", externalLink: "https://twitter.com/metaforecast", - img: "https://i.imgur.com/BQ4Zzjw.png", + img: twitterImg, }, { title: "[Beta] Request",