Skip to main content
Module

x/fastro/pages/example.tsx

The Web Framework for Full Stack Apps
Go to Latest
File
import React from "https://esm.sh/react@18.2.0";import Footer from "../components/footer.tsx";import Header from "../components/header.tsx";
type Example = { name: string; ext: string; file: string;};
export default function Example( props: { version: string; path: string; examples: Example[] },) { const list = props.examples.map((e) => { const path = `https://github.com/fastrodev/fastro/blob/main/examples/${e.file}`; return ( <a href={path} className="me-2 mb-2 border rounded-3" > <div style={{ padding: 10 }}> {e.name} </div> </a> ); }); return ( <> <Header path={props.path} /> <main> <div className="d-flex flex-wrap justify-content-center"> {list} </div> </main> <Footer version={props.version} /> </> );}