diff --git a/apps/site/README.md b/apps/site/README.md new file mode 100644 index 00000000..2b444666 --- /dev/null +++ b/apps/site/README.md @@ -0,0 +1,19 @@ +This the Portal.JS website. + +It is built on [Next.js](https://nextjs.org/). + +## Getting Started + +First, run the development server: + +```bash +npm run dev +# or +yarn dev +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +## Deployment + +We currently deploy on Vercel. diff --git a/apps/site/components/CustomLink.js b/apps/site/components/CustomLink.js index f5902307..c311089d 100644 --- a/apps/site/components/CustomLink.js +++ b/apps/site/components/CustomLink.js @@ -1,9 +1,9 @@ -import Link from 'next/link' +import Link from "next/link"; export default function CustomLink({ as, href, ...otherProps }) { return ( <> - + - ) + ); } diff --git a/apps/site/components/Layout.tsx b/apps/site/components/Layout.tsx new file mode 100644 index 00000000..626cd44a --- /dev/null +++ b/apps/site/components/Layout.tsx @@ -0,0 +1,34 @@ +import { NextSeo } from "next-seo"; + +import Nav from "./Nav"; + +export default function Layout({ + children, + title, +}: { + children; + title?: string; +}) { + return ( + <> + {title && } +