diff --git a/caddyfile.prod b/.caddy/Caddyfile.dev similarity index 100% rename from caddyfile.prod rename to .caddy/Caddyfile.dev diff --git a/.caddy/Caddyfile.release b/.caddy/Caddyfile.release new file mode 100644 index 0000000..e69de29 diff --git a/caddyfile.dev b/caddyfile.dev deleted file mode 100644 index 971e0b0..0000000 --- a/caddyfile.dev +++ /dev/null @@ -1,5 +0,0 @@ -timmypidashev.localhost { - encode gzip - - reverse_proxy web:3000 -} diff --git a/compose.dev.yml b/compose.dev.yml deleted file mode 100644 index 9588951..0000000 --- a/compose.dev.yml +++ /dev/null @@ -1,27 +0,0 @@ -version: '3.8' - -services: - caddy: - container_name: caddy - image: caddy:latest - ports: - - 80:80 - - 443:443 - volumes: - - ./caddyfile.dev:/etc/caddy/Caddyfile:rw - restart: always - networks: - - caddy - depends_on: - - web - - web: - container_name: web - image: web:dev - networks: - - caddy - -networks: - caddy: - name: caddy - external: true diff --git a/compose.override.yml b/compose.override.yml new file mode 100644 index 0000000..e69de29 diff --git a/compose.prod.yml b/compose.prod.yml deleted file mode 100644 index b632f3e..0000000 --- a/compose.prod.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: '3.8' - -services: - caddy: - container_name: caddy - image: caddy:latest - ports: - - 80:80 - - 443:443 - volumes: - - ./Caddyfile.prod:/etc/caddy/Caddyfile - restart: unless_stopped - networks: - - caddy diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..e69de29 diff --git a/src/.dockerignore b/src/.dockerignore deleted file mode 100644 index dcffab9..0000000 --- a/src/.dockerignore +++ /dev/null @@ -1,17 +0,0 @@ -/node_modules -/.pnp -.pnp.js -.yarn/install-state.gz -/coverage -/.next/ -/out/ -/build -.DS_Store -*.pem -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.env*.local -.vercel -*.tsbuildinfo -next-env.d.ts diff --git a/src/.eslintrc.json b/src/.eslintrc.json deleted file mode 100644 index bffb357..0000000 --- a/src/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/src/.stackblitzrc b/src/.stackblitzrc new file mode 100644 index 0000000..43798ec --- /dev/null +++ b/src/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +} \ No newline at end of file diff --git a/src/README.md b/src/README.md index 0dc9ea2..16270da 100644 --- a/src/README.md +++ b/src/README.md @@ -1,36 +1,11 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). +# Astro with Tailwind -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev +``` +npm init astro -- --template with-tailwindcss ``` -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/with-tailwindcss) -You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file. +Astro comes with [Tailwind](https://tailwindcss.com) support out of the box. This example showcases how to style your Astro project with Tailwind. -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +For complete setup instructions, please see our [Styling Guide](https://docs.astro.build/guides/styling#-tailwind). diff --git a/src/app/blog/[slug]/page.jsx b/src/app/blog/[slug]/page.jsx deleted file mode 100644 index a6b49df..0000000 --- a/src/app/blog/[slug]/page.jsx +++ /dev/null @@ -1,20 +0,0 @@ -import { getBlogBySlug, getAllBlogSlugs } from "@/lib/mdx"; - -export async function generateStaticParams() { - const slugs = await getAllBlogSlugs(); - return slugs.map(({ slug }) => ({ - slug, - })); -} - -export default async function BlogPage({ params }) { - const blog = await getBlogBySlug(params.slug); - return ( -
-

{blog.frontmatter.title}

-

{blog.frontmatter.author}

-

{blog.frontmatter.date}

-
{blog.content}
-
- ); -} diff --git a/src/app/blog/page.jsx b/src/app/blog/page.jsx deleted file mode 100644 index c36a5fa..0000000 --- a/src/app/blog/page.jsx +++ /dev/null @@ -1,32 +0,0 @@ -import Link from "next/link"; -import { getAllBlogSlugs, getBlogBySlug } from "@/lib/mdx"; - -export default async function BlogsPage() { - const slugs = await getAllBlogSlugs(); - const blogs = await Promise.all(slugs.map(({ slug }) => getBlogBySlug(slug))); - - return ( -
- {blogs.map((blog) => ( -
- -
-

{blog.frontmatter.title}

- {blog.frontmatter.description} -
- {blog.frontmatter.tags && blog.frontmatter.tags.length > 0 && ( - <> - {blog.frontmatter.date} - {blog.frontmatter.tags.map((tag, index) => ( - #{tag} - ))} - - )} -
-
- -
- ))} -
- ); -} diff --git a/src/app/blog/posts/corebooting-my-thinkpad.mdx b/src/app/blog/posts/corebooting-my-thinkpad.mdx deleted file mode 100644 index 9f5ba64..0000000 --- a/src/app/blog/posts/corebooting-my-thinkpad.mdx +++ /dev/null @@ -1,104 +0,0 @@ ---- -title: "I corebooted my T440p, here's how I did it." -author: "Timothy Pidashev" -date: "2024/06/05" -description: "This is a sample MDX file." -tags: ["coreboot", "t440p", "dgpu"] ---- - - -```python -# discord api -import discord -from discord.ext import commands - -# custom utilities -from Utilities import log - -log = log.Logger("errors") - -class Errors(commands.Cog): - def __init__(self, client): - self.client = client - - @commands.Cog.listener() - async def on_ready(self): - await log.info("Errors cog loaded.") - - @commands.Cog.listener() - async def on_command_error(self, context, error): - - if isinstance(error, commands.CheckFailure): - await context.reply( - "You are not priveleged enough to use this command.", - mention_author=False - ) - - else: - await context.reply( - f"**Error**\n```diff\n- {error}```", - mention_author=False - ) - -def setup(client): - client.add_cog(Errors(client)) -``` - -# Heading 1 - -## Heading 2 - -### Heading 3 - -#### Heading 4 - -##### Heading 5 - -###### Heading 6 - -*Italic Text* - -_Italic Text_ - -**Bold Text** - -__Bold Text__ - -* Bullet List - * Item 1 - * Item 2 - * Subitem 1 - * Subitem 2 - -1. Numbered List - 1. Item 1 - 2. Item 2 - - Subitem 1 - - Subitem 2 - -[Link Text](https://example.com) - -![Image Alt Text](https://example.com/image.jpg) - -> Blockquote -> -> Lorem ipsum dolor sit amet, consectetur adipiscing elit. - -`Inline Code` - -| Table Header 1 | Table Header 2 | -|----------------|----------------| -| Table Row 1 | Table Row 1 | -| Table Row 2 | Table Row 2 | - -Superscript Text - -Subscript Text - -Highlighted Text - -Underlined Text - -Strikethrough Text - -Abbreviation diff --git a/src/app/blog/posts/my-perfect-dev-environment.mdx b/src/app/blog/posts/my-perfect-dev-environment.mdx deleted file mode 100644 index 82e3077..0000000 --- a/src/app/blog/posts/my-perfect-dev-environment.mdx +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: "My perfect development environment." -author: "Timothy Pidashev" -date: "2024/06/07" -description: "This is another sample mdx file." -tags: ["dwl", "wayland", "gruvbox"] ---- - -# FDSLKJFLKSFJL diff --git a/src/app/blog/posts/the-first-entry.mdx b/src/app/blog/posts/the-first-entry.mdx deleted file mode 100644 index e4ea136..0000000 --- a/src/app/blog/posts/the-first-entry.mdx +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: "The First Entry" -author: "Timothy Pidashev" -date: "06/14/2024" -description: "My first ever blog post!" -tags: ["first", "blog", "post"] ---- - -# The First Entry - diff --git a/src/app/favicon.ico b/src/app/favicon.ico deleted file mode 100644 index 718d6fe..0000000 Binary files a/src/app/favicon.ico and /dev/null differ diff --git a/src/app/layout.js b/src/app/layout.js deleted file mode 100644 index 73bcfbe..0000000 --- a/src/app/layout.js +++ /dev/null @@ -1,34 +0,0 @@ -// Imports -import "@/style/globals.css"; -import Theme from "@/app/theme"; -import Header from "@/components/header"; -import Footer from "@/components/footer"; -import Container from "@/components/ui/container"; - -// Metadata -export const metadata = { - title: "Timothy Pidashev", - description: "Engineering the Future!" -}; - -// Exports -export default function Layout({children}) { - return ( - - - - -
-
- {children} -
-