diff --git a/examples/simple-example/components/Footer.tsx b/examples/simple-example/components/Footer.tsx new file mode 100644 index 00000000..20b5ba09 --- /dev/null +++ b/examples/simple-example/components/Footer.tsx @@ -0,0 +1,16 @@ +export default function Footer() { + return ( + + ); +} diff --git a/examples/simple-example/components/NavBar.tsx b/examples/simple-example/components/NavBar.tsx new file mode 100644 index 00000000..ddb5ecca --- /dev/null +++ b/examples/simple-example/components/NavBar.tsx @@ -0,0 +1,31 @@ +export default function NavBar() { + return ( +
+
+
+
+ Your Company + Your Company +
+
+ {/* Current: "border-indigo-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" */} + + Home + +
+
+
+
+ ); +} diff --git a/examples/simple-example/pages/@org/[org]/[...path].tsx b/examples/simple-example/pages/@org/[org]/[...path].tsx index c35815ce..ea085507 100644 --- a/examples/simple-example/pages/@org/[org]/[...path].tsx +++ b/examples/simple-example/pages/@org/[org]/[...path].tsx @@ -9,62 +9,86 @@ import { getProject, GithubProject } from '../../../lib/octokit'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; import Link from 'next/link'; +import Footer from '../../../components/Footer'; +import NavBar from '../../../components/NavBar'; export default function ProjectPage({ project }) { return ( <> - -
- Back to homepage -

Data

-
- - - - - - - - - {project.files.map((file) => ( - - - + + +
+
+

Data

+
+
+
+
- Name - - Size -
- {file.name} - - {file.size} Bytes -
+ + + + + - ))} - -
+ Name + + Size + + Download +
+ + + {project.files.map((file) => ( + + + {file.name} + + + {file.size} Bytes + + + + Download file + + + + ))} + + +
-

Readme

- - {project.readmeContent} - +
+

Readme

+ + {project.readmeContent} + +
+