import { PageSection } from "../../components/PageSection.tsx"; const ONE_FILE_EXAMPLE = `import { App } from "fresh"; const app = new App() .get("/", () => new Response("Hello, World!")); app.listen();`; const ADD_JSX_EXAMPLE = `import { App } from "fresh"; const app = new App() .get("/", (ctx) => ctx.render(

Hello!

)); app.listen();`; const ADD_ISLAND_EXAMPLE = `// islands/Counter.tsx import { useSignal } from "@preact/signals"; export function Counter() { const count = useSignal(0); return ( ); }`; export function Simple() { return (

Introducing Fresh:

The framework so simple, you already know it.

Fresh is designed to be easy to use by building on the best well-known tools, conventions, and web standards.

); } function StepCard( props: { step: string; title: string; description: string; code: string }, ) { return (
{props.step}

{props.title}

{props.description}

        {props.code}
      
); }