From c29260fc4f2d96b86005c5f8b3298431e47a906a Mon Sep 17 00:00:00 2001 From: Luccas Mateus de Medeiros Gomes Date: Sat, 29 Apr 2023 23:37:28 -0300 Subject: [PATCH] [alan-turing][m] - cleanup --- examples/alan-turing-portal/.env.example | 1 - examples/alan-turing-portal/README.md | 23 -- .../components/ArticleLayout.jsx | 72 ---- .../alan-turing-portal/components/Button.jsx | 23 -- .../alan-turing-portal/components/Header.jsx | 174 +--------- .../alan-turing-portal/components/Prose.jsx | 7 - .../alan-turing-portal/components/Section.jsx | 22 -- .../components/SimpleLayout.jsx | 17 - .../components/SocialIcons.jsx | 36 -- examples/alan-turing-portal/images/avatar.jpg | Bin 48649 -> 0 bytes examples/alan-turing-portal/images/avatar.svg | 310 ------------------ .../images/logos/airbnb.svg | 13 - .../images/logos/animaginary.svg | 12 - .../images/logos/cosmos.svg | 25 -- .../images/logos/facebook.svg | 18 - .../images/logos/helio-stream.svg | 5 - .../images/logos/open-shuttle.svg | 21 -- .../images/logos/planetaria.svg | 24 -- .../images/logos/starbucks.svg | 18 - .../images/photos/image-1.jpg | Bin 1597374 -> 0 bytes .../images/photos/image-2.jpg | Bin 1880212 -> 0 bytes .../images/photos/image-3.jpg | Bin 2566084 -> 0 bytes .../images/photos/image-4.jpg | Bin 1323083 -> 0 bytes .../images/photos/image-5.jpg | Bin 1831265 -> 0 bytes .../alan-turing-portal/images/portrait.jpg | Bin 292408 -> 0 bytes examples/alan-turing-portal/markdown.db | Bin 32768 -> 32768 bytes .../index.mdx | 86 ----- .../planetaria-design-system.png | Bin 52474 -> 0 bytes .../pages/articles/index.jsx | 69 ---- .../articles/introducing-animaginary.mdx | 101 ------ .../rewriting-the-cosmos-kernel-in-rust.mdx | 96 ------ examples/alan-turing-portal/pages/index.jsx | 8 +- 32 files changed, 5 insertions(+), 1176 deletions(-) delete mode 100644 examples/alan-turing-portal/.env.example delete mode 100644 examples/alan-turing-portal/components/ArticleLayout.jsx delete mode 100644 examples/alan-turing-portal/components/Button.jsx delete mode 100644 examples/alan-turing-portal/components/Prose.jsx delete mode 100644 examples/alan-turing-portal/components/Section.jsx delete mode 100644 examples/alan-turing-portal/components/SimpleLayout.jsx delete mode 100644 examples/alan-turing-portal/components/SocialIcons.jsx delete mode 100644 examples/alan-turing-portal/images/avatar.jpg delete mode 100644 examples/alan-turing-portal/images/avatar.svg delete mode 100644 examples/alan-turing-portal/images/logos/airbnb.svg delete mode 100644 examples/alan-turing-portal/images/logos/animaginary.svg delete mode 100644 examples/alan-turing-portal/images/logos/cosmos.svg delete mode 100644 examples/alan-turing-portal/images/logos/facebook.svg delete mode 100644 examples/alan-turing-portal/images/logos/helio-stream.svg delete mode 100644 examples/alan-turing-portal/images/logos/open-shuttle.svg delete mode 100644 examples/alan-turing-portal/images/logos/planetaria.svg delete mode 100644 examples/alan-turing-portal/images/logos/starbucks.svg delete mode 100644 examples/alan-turing-portal/images/photos/image-1.jpg delete mode 100644 examples/alan-turing-portal/images/photos/image-2.jpg delete mode 100644 examples/alan-turing-portal/images/photos/image-3.jpg delete mode 100644 examples/alan-turing-portal/images/photos/image-4.jpg delete mode 100644 examples/alan-turing-portal/images/photos/image-5.jpg delete mode 100644 examples/alan-turing-portal/images/portrait.jpg delete mode 100644 examples/alan-turing-portal/pages/articles/crafting-a-design-system-for-a-multiplanetary-future/index.mdx delete mode 100644 examples/alan-turing-portal/pages/articles/crafting-a-design-system-for-a-multiplanetary-future/planetaria-design-system.png delete mode 100644 examples/alan-turing-portal/pages/articles/index.jsx delete mode 100644 examples/alan-turing-portal/pages/articles/introducing-animaginary.mdx delete mode 100644 examples/alan-turing-portal/pages/articles/rewriting-the-cosmos-kernel-in-rust.mdx 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 ? ( - - ) : ( -