diff --git a/examples/alan-turing-portal/.env.example b/examples/alan-turing-portal/.env.example deleted file mode 100644 index 349d7127..00000000 --- a/examples/alan-turing-portal/.env.example +++ /dev/null @@ -1 +0,0 @@ -NEXT_PUBLIC_SITE_URL=https://example.com diff --git a/examples/alan-turing-portal/README.md b/examples/alan-turing-portal/README.md index 52562e3c..b519da6f 100644 --- a/examples/alan-turing-portal/README.md +++ b/examples/alan-turing-portal/README.md @@ -1,7 +1,3 @@ -# Spotlight - -Spotlight is a [Tailwind UI](https://tailwindui.com) site template built using [Tailwind CSS](https://tailwindcss.com) and [Next.js](https://nextjs.org). - ## Getting started To get started with this template, first install the npm dependencies: @@ -10,12 +6,6 @@ To get started with this template, first install the npm dependencies: npm install ``` -Next, create a `.env.local` file in the root of your project and set the `NEXT_PUBLIC_SITE_URL` variable to your site's public URL: - -``` -NEXT_PUBLIC_SITE_URL=https://example.com -``` - Next, run the development server: ```bash @@ -24,19 +14,6 @@ npm run dev Finally, open [http://localhost:3000](http://localhost:3000) in your browser to view the website. -## Customizing - -You can start editing this template by modifying the files in the `/src` folder. The site will auto-update as you edit these files. - ## License This site template is a commercial product and is licensed under the [Tailwind UI license](https://tailwindui.com/license). - -## Learn more - -To learn more about the technologies used in this site template, see the following resources: - -- [Tailwind CSS](https://tailwindcss.com/docs) - the official Tailwind CSS documentation -- [Next.js](https://nextjs.org/docs) - the official Next.js documentation -- [Headless UI](https://headlessui.dev) - the official Headless UI documentation -- [MDX](https://mdxjs.com) - the MDX documentation diff --git a/examples/alan-turing-portal/components/ArticleLayout.jsx b/examples/alan-turing-portal/components/ArticleLayout.jsx deleted file mode 100644 index 1d0b31c4..00000000 --- a/examples/alan-turing-portal/components/ArticleLayout.jsx +++ /dev/null @@ -1,72 +0,0 @@ -import Head from 'next/head' -import { useRouter } from 'next/router' - -import { Container } from '@/components/Container' -import { Prose } from '@/components/Prose' -import { formatDate } from '@/lib/formatDate' - -function ArrowLeftIcon(props) { - return ( - - ) -} - -export function ArticleLayout({ - children, - meta, - isRssFeed = false, - previousPathname, -}) { - let router = useRouter() - - if (isRssFeed) { - return children - } - - return ( - <> - - {`${meta.title} - Spencer Sharp`} - - - -
-
- {previousPathname && ( - - )} -
-
-

- {meta.title} -

- -
- {children} -
-
-
-
- - ) -} diff --git a/examples/alan-turing-portal/components/Button.jsx b/examples/alan-turing-portal/components/Button.jsx deleted file mode 100644 index bbbcadaf..00000000 --- a/examples/alan-turing-portal/components/Button.jsx +++ /dev/null @@ -1,23 +0,0 @@ -import Link from 'next/link' -import clsx from 'clsx' - -const variantStyles = { - primary: - 'bg-zinc-800 font-semibold text-zinc-100 hover:bg-zinc-700 active:bg-zinc-800 active:text-zinc-100/70 dark:bg-zinc-700 dark:hover:bg-zinc-600 dark:active:bg-zinc-700 dark:active:text-zinc-100/70', - secondary: - 'bg-zinc-50 font-medium text-zinc-900 hover:bg-zinc-100 active:bg-zinc-100 active:text-zinc-900/60 dark:bg-zinc-800/50 dark:text-zinc-300 dark:hover:bg-zinc-800 dark:hover:text-zinc-50 dark:active:bg-zinc-800/50 dark:active:text-zinc-50/70', -} - -export function Button({ variant = 'primary', className, href, ...props }) { - className = clsx( - 'inline-flex items-center gap-2 justify-center rounded-md py-2 px-3 text-sm outline-offset-2 transition active:transition-none', - variantStyles[variant], - className - ) - - return href ? ( - - ) : ( -