Initial commit: Setup Astro website with blog, projects, work experience and search functionality

This commit is contained in:
Spaghet committed 2025-08-13 00:29:17 -04:00
1 parent 8546ac140d
commit 1f1bf6e08b
85 files changed
+23712 -1

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
---
import { type CollectionEntry, getCollection } from "astro:content"
import PageLayout from "@layouts/PageLayout.astro"
import TopLayout from "@layouts/TopLayout.astro"
import BottomLayout from "@layouts/BottomLayout.astro"
import ArticleTopLayout from "@layouts/ArticleTopLayout.astro"
import ArticleBottomLayout from "@layouts/ArticleBottomLayout.astro"
// Create the static blog pages
export async function getStaticPaths() {
const posts = await getCollection("blog")
return posts.map((post) => ({
params: { slug: post.slug },
props: post,
}))
}
// Get the requested post
type Props = CollectionEntry<"blog">
const post = Astro.props
const { title, summary } = post.data
---
<PageLayout title={title} description={summary}>
<TopLayout>
<div class="animate">
<ArticleTopLayout entry={post}/>
</div>
</TopLayout>
<BottomLayout>
<div class="animate">
<ArticleBottomLayout entry={post} />
</div>
</BottomLayout>
</PageLayout>
+30
View File
@@ -0,0 +1,30 @@
---
import { getCollection } from "astro:content"
import PageLayout from "@layouts/PageLayout.astro"
import TopLayout from "@layouts/TopLayout.astro"
import BottomLayout from "@layouts/BottomLayout.astro"
import Blog from "@components/Blog"
import { BLOG } from "@consts"
const posts = (await getCollection("blog"))
.filter(post => !post.data.draft)
.sort((a, b) => b.data.date.getTime() - a.data.date.getTime())
const tags = [...new Set(posts.flatMap(post => post.data.tags))]
.sort((a, b) => a.localeCompare(b))
---
<PageLayout title={BLOG.TITLE} description={BLOG.DESCRIPTION}>
<TopLayout>
<div class="animate page-heading">
{BLOG.TITLE}
</div>
</TopLayout>
<BottomLayout>
<div class="animate">
<Blog client:load tags={tags} data={posts} />
</div>
</BottomLayout>
</PageLayout>
+225
View File
@@ -0,0 +1,225 @@
---
import { getCollection } from "astro:content"
import PageLayout from "@layouts/PageLayout.astro"
import ArrowCard from "@components/ArrowCard"
import StackCard from "@components/StackCard.astro"
import { SITE, SOCIALS } from "@consts"
import TwinklingStars from "@components/TwinklingStars.astro"
import MeteorShower from "@components/MeteorShower.astro"
const posts = (await getCollection("blog"))
.filter(post => !post.data.draft)
.sort((a, b) => b.data.date.getTime() - a.data.date.getTime())
.slice(0,3)
const projects = (await getCollection("projects"))
.filter(project => !project.data.draft)
.sort((a, b) => b.data.date.getTime() - a.data.date.getTime())
.slice(0,3)
const stack = [
{
text: "Astro",
icon: "astro",
href: "https://astro.build"
},
{
text: "Javascript",
icon: "javascript",
href: "https://www.javascript.com"
},
{
text: "Typescript",
icon: "typescript",
href: "https://www.typescriptlang.org"
},
{
text: "Tailwind",
icon: "tailwind",
href: "https://tailwindcss.com"
},
]
---
<PageLayout title="Home" description={SITE.DESCRIPTION}>
<!-- Light Mode: Particles -->
<div class='absolute inset-0 block dark:hidden'>
<div id='particles1' class='fixed inset-0'></div>
<div id='particles2' class='fixed inset-0'></div>
<div id='particles3' class='fixed inset-0'></div>
</div>
<!-- Dark Theme: Stars -->
<div class='absolute inset-0 bg-black hidden dark:block'>
<div id='stars1' class='fixed inset-0'></div>
<div id='stars2' class='fixed inset-0'></div>
<div id='stars3' class='fixed inset-0'></div>
</div>
<!-- Dark Theme: Twinkling Stars / Metors -->
<div id="galaxy" class="fixed inset-0">
<div class="hidden dark:block">
<TwinklingStars/>
<MeteorShower/>
</div>
</div>
<script is:inline src="/js/bg.js"></script>
<!-- HERO -->
<section class="relative h-screen w-full">
<div id="planetcont" class='animate absolute inset-0 top-1/4 overflow-hidden'>
<div id="crescent" class='absolute top-0 left-1/2 -translate-x-1/2 w-[250vw] min-h-[100vh] aspect-square rounded-full p-[1px] bg-gradient-to-b from-black/25 dark:from-white/75 from-0% to-transparent to-5%'>
<div id="planet" class='w-full h-full bg-white dark:bg-black rounded-full p-[1px] overflow-hidden flex justify-center'>
<div id="blur" class='w-full h-20 rounded-full bg-neutral-900/25 dark:bg-white/25 blur-3xl'/>
</div>
</div>
</div>
<div class="animate absolute h-full w-full flex items-center justify-center">
<div class='relative w-full h-full flex items-center justify-center'>
<div class='p-5 text-center'>
<p class='animated text-lg md:text-xl lg:text-2xl font-semibold opacity-75'>
Hello, I am Quinn Marvin
</p>
<p class='animated text-2xl md:text-3xl lg:text-4xl font-bold uppercase text-black dark:text-white'>
CEO / Creator / Innovator
</p>
<p class='animated text-sm md:text-base lg:text-lg opacity-75'>
Passionate about spaghetti, noodles and all things tech.
</p>
<p class='animated text-sm md:text-base lg:text-lg opacity-75 mt-2'>
Running 2 Unraid servers with Docker container ecosystem
</p>
<p class='animated text-sm md:text-base lg:text-lg opacity-75 mt-1'>
Supporting PostgreSQL, MariaDB, MySQL, MongoDB, Redis, and Minio
</p>
<div id="ctaButtons" class='animated flex flex-wrap gap-4 justify-center mt-5'>
<a href='/blog' class='py-2 px-4 rounded truncate text-xs md:text-sm lg:text-base bg-black dark:bg-white text-white dark:text-black hover:opacity-75 blend'>
Read my blog
</a>
<a href='/work' class='py-2 px-4 truncate rounded text-xs md:text-sm lg:text-base border border-black/25 dark:border-white/25 hover:bg-black/5 hover:dark:bg-white/15 blend'>
View my work
</a>
</div>
</div>
</div>
</div>
</section>
<div class="relative bg-white dark:bg-black">
<div class="mx-auto max-w-screen-sm p-5 space-y-24 pb-16">
<!-- About Section -->
<section class="animate">
<article>
<p>Hello! I'm Quinn Marvin, a passionate CEO/Creator/Innovator with an unrelenting love for spaghetti, noodles, and all things tech.</p>
<p>With 10+ years of experience building high-performing engineering teams and driving innovation in dynamic environments, I combine deep technical expertise with exceptional emotional intelligence and a human-centered leadership approach.</p>
<p>I specialize in IT Service Management (ITSM), IT Operations Management (ITOM), and IT Asset Management (ITAM), positioning myself as a trusted advisor to enterprise clients.</p>
<p>My technical background includes extensive experience with Docker, Kubernetes, and cloud platforms to deliver scalable, secure, and compliant solutions for complex projects.</p>
<p>Currently running 2 Unraid servers with powerful hardware configurations (128GB RAM, 2 x E5 Xeon CPU, 200TB raw storage on NetApp arrays) and a comprehensive Docker container ecosystem supporting PostgreSQL, MariaDB, MySQL, MongoDB, Redis, and Minio.</p>
<p>Just like the perfect bowl of spaghetti - structured, well-organized, and satisfying to use - I'm passionate about creating technology solutions that are both functional and elegant.</p>
</article>
</section>
<!-- Blog Preview Section -->
<section class="animate">
<div class="space-y-4">
<div class="flex justify-between">
<p class="font-semibold text-black dark:text-white">
Recent posts
</p>
<a href="/blog" class="w-fit col-span-3 group flex gap-1 items-center underline decoration-[.5px] decoration-black/25 dark:decoration-white/50 hover:decoration-black dark:hover:decoration-white text-black dark:text-white underline-offset-2 blend">
<span class="text-black/75 dark:text-white/75 group-hover:text-black group-hover:dark:text-white blend">
All posts
</span>
</a>
</div>
<ul class="space-y-4">
{posts.map((post) => (
<li>
<ArrowCard entry={post} />
</li>
))}
</ul>
</div>
</section>
<!-- Tech Stack Section -->
<section class="animate">
<div class="space-y-4">
<p class="font-semibold text-black dark:text-white">
Website build with
</p>
<div class="flex flex-wrap items-center gap-2 mt-5">
{stack.map(item => (
<StackCard
text={item.text}
icon={item.icon}
href={item.href}
/>
))}
</div>
<div>
Performing reactivity and statefulness, special guest
<a href="https://www.solidjs.com/" target="_blank" class="w-fit group underline decoration-[.5px] decoration-black/25 dark:decoration-white/50 hover:decoration-black dark:hover:decoration-white text-black dark:text-white underline-offset-2 blend">
<span class="text-black/75 dark:text-white/75 group-hover:text-black group-hover:dark:text-white blend">
SolidJS
</span>
</a>
</div>
</div>
</section>
<!-- Project Preview Section -->
<section class="animate">
<div class="space-y-4">
<div class="flex justify-between">
<p class="font-semibold text-black dark:text-white">
Recent projects
</p>
<a href="/projects" class="w-fit col-span-3 group flex gap-1 items-center underline decoration-[.5px] decoration-black/25 dark:decoration-white/50 hover:decoration-black dark:hover:decoration-white text-black dark:text-white underline-offset-2 blend">
<span class="text-black/75 dark:text-white/75 group-hover:text-black group-hover:dark:text-white blend">
All projects
</span>
</a>
</div>
<ul class="space-y-4">
{projects.map((project) => (
<li>
<ArrowCard entry={project} />
</li>
))}
</ul>
</div>
</section>
<!-- Contact Section -->
<section class="animate">
<div>
<p class="font-semibold text-black dark:text-white">
Let's Connect
</p>
<p>
Reach out to me via email or on social media.
</p>
<div class="grid grid-cols-4 gap-y-2 mt-4 auto-cols-min">
{SOCIALS.map(social => (
<div class="col-span-1 flex items-center gap-1">
<span class="whitespace-nowrap truncate">
{social.NAME}
</span>
</div>
<div class="col-span-3 truncate">
<a href={social.HREF} target="_blank" class="w-fit col-span-3 group flex gap-1 items-center underline decoration-[.5px] decoration-black/25 dark:decoration-white/50 hover:decoration-black dark:hover:decoration-white text-black dark:text-white underline-offset-2 blend">
<span class="text-black/75 dark:text-white/75 group-hover:text-black group-hover:dark:text-white blend">
{social.TEXT}
</span>
</a>
</div>
))}
</div>
</section>
</div>
</div>
</PageLayout>
+42
View File
@@ -0,0 +1,42 @@
---
import { type CollectionEntry, getCollection } from "astro:content"
import PageLayout from "@layouts/PageLayout.astro"
import TopLayout from "@layouts/TopLayout.astro"
import BottomLayout from "@layouts/BottomLayout.astro"
import { formatDate } from "@lib/utils"
import { SITE } from "@consts"
// Create the static pages for legal docs
export async function getStaticPaths() {
const docs = await getCollection("legal")
return docs.map((doc) => ({
params: { slug: doc.slug },
props: doc,
}))
}
// Get the requested legal doc
type Props = CollectionEntry<"legal">;
const doc = Astro.props
const { title, date } = doc.data
const { Content } = await doc.render();
---
<PageLayout title={title} description={`${title} for ${SITE.TITLE}`}>
<TopLayout>
<div class="animate">
<div class="page-heading">
{title}
</div>
<p class="font-normal opacity-75">
Last updated: {formatDate(date)}
</p>
</div>
</TopLayout>
<BottomLayout>
<article class="animate">
<Content/>
</article>
</BottomLayout>
</PageLayout>
+35
View File
@@ -0,0 +1,35 @@
---
import { type CollectionEntry, getCollection } from "astro:content"
import PageLayout from "@layouts/PageLayout.astro"
import TopLayout from "@layouts/TopLayout.astro"
import BottomLayout from "@layouts/BottomLayout.astro"
import ArticleTopLayout from "@layouts/ArticleTopLayout.astro"
import ArticleBottomLayout from "@layouts/ArticleBottomLayout.astro"
// Create the static projects pages
export async function getStaticPaths() {
const projects = await getCollection("projects")
return projects.map((project) => ({
params: { slug: project.slug },
props: project,
}))
}
// Get the requested project
type Props = CollectionEntry<"projects">
const project = Astro.props
const { title, summary } = project.data
---
<PageLayout title={title} description={summary}>
<TopLayout>
<div class="animate">
<ArticleTopLayout entry={project} />
</div>
</TopLayout>
<BottomLayout>
<div class="animate">
<ArticleBottomLayout entry={project} />
</div>
</BottomLayout>
</PageLayout>
+28
View File
@@ -0,0 +1,28 @@
---
import { getCollection } from "astro:content"
import PageLayout from "@layouts/PageLayout.astro"
import TopLayout from "@layouts/TopLayout.astro"
import BottomLayout from "@layouts/BottomLayout.astro"
import Projects from "@components/Projects"
import { PROJECTS } from "@consts"
const projects = (await getCollection("projects"))
.filter(project => !project.data.draft)
.sort((a, b) => b.data.date.getTime() - a.data.date.getTime())
const tags = [...new Set(projects.flatMap(project => project.data.tags))]
.sort((a, b) => a.localeCompare(b))
---
<PageLayout title={PROJECTS.TITLE} description={PROJECTS.DESCRIPTION}>
<TopLayout>
<div class="animate page-heading">
{PROJECTS.TITLE}
</div>
</TopLayout>
<BottomLayout>
<div class="animate">
<Projects client:load tags={tags} data={projects} />
</div>
</BottomLayout>
</PageLayout>
+16
View File
@@ -0,0 +1,16 @@
import type { APIRoute } from "astro"
const robotsTxt = `
User-agent: *
Allow: /
Sitemap: ${new URL("sitemap-index.xml", import.meta.env.SITE).href}
`.trim()
export const GET: APIRoute = () => {
return new Response(robotsTxt, {
headers: {
"Content-Type": "text/plain; charset=utf-8",
},
})
}
+30
View File
@@ -0,0 +1,30 @@
import rss from "@astrojs/rss"
import { getCollection } from "astro:content"
import { SITE } from "@consts"
type Context = {
site: string
}
export async function GET(context: Context) {
const posts = await getCollection("blog")
const projects = await getCollection("projects")
const items = [...posts, ...projects]
items.sort((a, b) => new Date(b.data.date).getTime() - new Date(a.data.date).getTime())
return rss({
title: SITE.TITLE,
description: SITE.DESCRIPTION,
site: context.site,
items: items.map((item) => ({
title: item.data.title,
description: item.data.summary,
pubDate: item.data.date,
link: item.slug.startsWith("blog")
? `/blog/${item.slug}/`
: `/projects/${item.slug}/`,
})),
})
}
+29
View File
@@ -0,0 +1,29 @@
---
import { type CollectionEntry, getCollection } from "astro:content"
import PageLayout from "@layouts/PageLayout.astro"
import TopLayout from "@layouts/TopLayout.astro"
import BottomLayout from "@layouts/BottomLayout.astro"
import Search from "@components/Search"
import { SEARCH } from "@consts"
const posts = (await getCollection("blog"))
.filter(post => !post.data.draft)
const projects = (await getCollection("projects"))
.filter(post => !post.data.draft)
const data = [...posts, ...projects] as CollectionEntry<"blog">[]
---
<PageLayout title={SEARCH.TITLE} description={SEARCH.DESCRIPTION}>
<TopLayout>
<div class="animate page-heading">
{SEARCH.TITLE}
</div>
</TopLayout>
<BottomLayout>
<div class="animate">
<Search client:load data={data}/>
</div>
</BottomLayout>
</PageLayout>
+59
View File
@@ -0,0 +1,59 @@
---
import { getCollection } from "astro:content"
import PageLayout from "@layouts/PageLayout.astro"
import TopLayout from "@layouts/TopLayout.astro"
import BottomLayout from "@layouts/BottomLayout.astro"
import { WORK } from "@consts"
const collection = await getCollection("work")
collection.sort((a, b) => new Date(b.data.dateStart).getTime() - new Date(a.data.dateStart).getTime())
const work = await Promise.all(
collection.map(async (item) => {
const { Content } = await item.render()
return { ...item, Content }
})
)
function formatWorkDate(input: Date | string) {
if (typeof input === "string") return input
const month = input.toLocaleDateString("en-US", {
month: "short",
})
const year = new Date(input).getFullYear()
return `${month} ${year}`
}
---
<PageLayout title={WORK.TITLE} description={WORK.DESCRIPTION}>
<TopLayout>
<div class="animate page-heading">
{WORK.TITLE}
</div>
</TopLayout>
<BottomLayout>
<ul>
{
work.map((entry) => (
<li class="animate border-b border-black/10 dark:border-white/25 mt-4 py-8 first-of-type:mt-0 first-of-type:pt-0 last-of-type:border-none">
<div class="text-sm uppercase mb-4">
{formatWorkDate(entry.data.dateStart)} - {formatWorkDate(entry.data.dateEnd)}
</div>
<div class="text-black dark:text-white font-semibold">
{entry.data.company}
</div>
<div class="text-sm font-semibold">
{entry.data.role}
</div>
<article class="prose dark:prose-invert">
<entry.Content />
</article>
</li>
))
}
</ul>
</BottomLayout>
</PageLayout>