Filter
-
- {/* Template Filter */}
-
-
Template
-
-
- setSelectedTemplate("all")}
- class={cn("w-full px-2 py-1 rounded", "whitespace-nowrap overflow-hidden overflow-ellipsis", "flex gap-2 items-center", "bg-spaghetti-yellow/20 dark:bg-spaghetti-yellow/20", "hover:bg-spaghetti-yellow/30 hover:dark:bg-spaghetti-yellow/30", "transition-colors duration-300 ease-in-out", selectedTemplate() === "all" && "text-spaghetti-brown dark:text-spaghetti-brown")}
- >
- All Templates
-
-
-
- {(template) => (
-
- setSelectedTemplate(template)}
- class={cn("w-full px-2 py-1 rounded", "whitespace-nowrap overflow-hidden overflow-ellipsis", "flex gap-2 items-center", "bg-spaghetti-yellow/20 dark:bg-spaghetti-yellow/20", "hover:bg-spaghetti-yellow/30 hover:dark:bg-spaghetti-yellow/30", "transition-colors duration-300 ease-in-out", selectedTemplate() === template && "text-spaghetti-brown dark:text-spaghetti-brown")}
- >
- {template.charAt(0).toUpperCase() + template.slice(1)}
-
-
- )}
-
-
-
-
{/* Tag Filter */}
Tags
@@ -102,7 +68,7 @@ export default function Blog({ data, tags, templates = ["default"] }: Props) {
{posts().map((post) => (
-
+
))}
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index c94f993..67cd437 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -1,7 +1,7 @@
---
import { SITE, SOCIALS } from "@consts"
import Container from "@components/Container.astro"
-import { storage } from "@lib/appwrite"
+// Remove unused storage import
---
diff --git a/src/components/Header.astro b/src/components/Header.astro
index 94c2498..e9ed320 100644
--- a/src/components/Header.astro
+++ b/src/components/Header.astro
@@ -1,7 +1,6 @@
---
import { SITE, LINKS } from "@consts"
import { cn } from "@lib/utils"
-import { getFileUrl } from "@lib/appwrite-service";
const { pathname } = Astro.url
const subpath = pathname.match(/[^/]+/g)
import Container from "@components/Container.astro"
diff --git a/src/components/Projects.tsx b/src/components/Projects.tsx
index e76b216..c1701b2 100644
--- a/src/components/Projects.tsx
+++ b/src/components/Projects.tsx
@@ -15,7 +15,7 @@ export default function Projects({ data, tags }: Props) {
createEffect(() => {
setProjects(data.filter((entry) =>
Array.from(filter()).every((value) =>
- entry.data.tags.some((tag:string) =>
+ entry.tags.some((tag:string) =>
tag.toLowerCase() === String(value).toLowerCase()
)
)
@@ -61,7 +61,7 @@ export default function Projects({ data, tags }: Props) {
{projects().map((project) => (
-
+
))}
diff --git a/src/components/Search.tsx b/src/components/Search.tsx
index c1d3011..ddbecbd 100644
--- a/src/components/Search.tsx
+++ b/src/components/Search.tsx
@@ -1,37 +1,41 @@
import type { BlogPost, Project } from "@lib/appwrite-service"
import { createEffect, createSignal } from "solid-js"
import ArrowCard from "@components/ArrowCard"
-import { getBlogPosts, getProjects } from "@lib/appwrite-service"
-
-// Define a unified type for search results
-type SearchEntry = BlogPost | Project
+import { searchContent } from "@lib/appwrite-service"
type Props = {
- data: SearchEntry[]
+ // Remove the unused data prop
}
-export default function Search({data}: Props) {
+export default function Search() {
const [query, setQuery] = createSignal("")
- const [results, setResults] = createSignal([])
+ const [results, setResults] = createSignal<{ posts: BlogPost[], projects: Project[] }>({ posts: [], projects: [] })
+ const [loading, setLoading] = createSignal(false)
+ const [error, setError] = createSignal(null)
// Use Appwrite SDK to search all data
createEffect(() => {
if (query().length < 2) {
- setResults([])
- } else {
- // For now, we'll keep the client-side filtering as the Appwrite SDK doesn't provide
- // built-in full-text search capabilities in this version
- // In a real implementation, you would call an API endpoint that does server-side search
- const filteredResults = data.filter(item => {
- const lowerQuery = query().toLowerCase()
- return (
- item.title.toLowerCase().includes(lowerQuery) ||
- (item.summary && item.summary.toLowerCase().includes(lowerQuery)) ||
- (item.tags && item.tags.some(tag => tag.toLowerCase().includes(lowerQuery)))
- )
- })
- setResults(filteredResults)
+ setResults({ posts: [], projects: [] })
+ setError(null)
+ return
}
+
+ setLoading(true)
+ searchContent(query())
+ .then(searchResults => {
+ setResults(searchResults)
+ setError(null)
+ })
+ .catch(error => {
+ console.error("Search error:", error)
+ // Handle error gracefully - maybe show an error message to user
+ setResults({ posts: [], projects: [] })
+ setError("Search failed. Please try again.")
+ })
+ .finally(() => {
+ setLoading(false)
+ })
})
const onInput = (e: Event) => {
@@ -47,18 +51,39 @@ export default function Search({data}: Props) {
- {(query().length >= 2 && results().length >= 1) && (
+ {error() &&
{error()}
}
+ {loading() &&
Searching...
}
+ {(query().length >= 2 && (results().posts.length > 0 || results().projects.length > 0)) && (
- Found {results().length} results for {`'${query()}'`}
+ Found {results().posts.length + results().projects.length} results for {`'${query()}'`}
+
+
+ {results().posts.length > 0 && (
+
+
Blog Posts
+
+ {results().posts.map(result => (
+
+
+
+ ))}
+
+
+ )}
+ {results().projects.length > 0 && (
+
+
Projects
+
+ {results().projects.map((result, index) => (
+
+
+
+ ))}
+
+
+ )}
-
- {results().map(result => (
-
-
-
- ))}
-
)}
diff --git a/src/content/blog/01-building-my-personal-website/index.md b/src/content/blog/01-building-my-personal-website/index.md
deleted file mode 100644
index f78c8f4..0000000
--- a/src/content/blog/01-building-my-personal-website/index.md
+++ /dev/null
@@ -1,80 +0,0 @@
----
-title: "Building My Personal Website: From Idea to Deployment"
-summary: "A journey through creating my personal portfolio site, from initial concept to hosting on Appwrite with NGINX Proxy Manager."
-date: "Aug 12 2025"
-draft: false
-tags:
-- Tutorial
-- Astro
-- Portfolio
-- Hosting
-- Appwrite
-- Docker
----
-
-As someone who loves spaghetti and all things tech, I've always been fascinated by the perfect balance of structure and creativity. When it came time to create my personal website, I wanted to build something that reflected both my passion for technology and my love for well-organized systems.
-
-## The Concept
-
-I decided to use Astro as the foundation for my portfolio site because of its excellent performance and flexibility. The idea was to create a modern, responsive website that showcases my work and projects while demonstrating my technical skills through the implementation itself.
-
-The site needed to be:
-- Fast and performant
-- Responsive across all devices
-- Easy to maintain and update
-- A reflection of my technical expertise
-
-## Development Process
-
-I started by setting up the basic structure using Astro's capabilities. The site features:
-- A clean, modern design with dark/light mode support
-- Smooth animations and transitions for enhanced user experience
-- Integrated blog section for technical articles
-- Project showcase with detailed descriptions
-- Contact form with email integration
-- SEO optimization for better search engine visibility
-
-## Deployment Strategy
-
-This is where things get interesting. As someone running 2 Unraid servers with powerful hardware configurations (128GB RAM, 2 x E5 Xeon CPU, 200TB raw storage on NetApp arrays), I wanted to leverage my existing infrastructure for hosting this personal website.
-
-### My Hosting Setup
-
-I'm planning to host this site on my Appwrite instance, which is part of my comprehensive Docker container ecosystem. The setup includes:
-- Appwrite for backend services and database management
-- NGINX Proxy Manager (NPM) to expose the site via HTTPS at https://spaghet.io
-- A robust Docker infrastructure supporting PostgreSQL, MariaDB, MySQL, MongoDB, Redis, and Minio
-
-### Challenges with Appwrite
-
-While setting up the deployment, I've been working through some configuration challenges with Appwrite. Getting it to behave properly has been a learning experience, but also a great opportunity to dive deep into the platform's capabilities.
-
-The process has involved:
-- Understanding Appwrite's API structure
-- Configuring proper database connections
-- Setting up authentication and user management
-- Ensuring proper security configurations
-
-## Technical Details
-
-The site leverages modern web development practices including:
-- Component-based architecture with React
-- Responsive design principles using Tailwind CSS
-- Performance optimization techniques
-- Integration with my existing Docker ecosystem
-
-## Why This Approach?
-
-I chose this approach because it reflects how I think about technology - structured, well-organized, and efficient. Just like a perfect bowl of spaghetti, everything has its place and works together seamlessly.
-
-The experience of building and deploying this site has been both challenging and rewarding, showcasing my ability to work with complex systems while maintaining a clear focus on the end-user experience.
-
-## Looking Forward
-
-As I continue to develop this site, I plan to:
-- Add more technical articles about my Docker setups and infrastructure
-- Expand the blog section with detailed tutorials
-- Continue refining the user experience based on feedback
-- Document my journey of getting Appwrite to work properly
-
-This project represents not just a portfolio, but also a demonstration of my approach to technology - structured yet creative, efficient yet elegant.
diff --git a/src/content/blog/02-appwrite-nginx-reverse-proxy-fix/index.md b/src/content/blog/02-appwrite-nginx-reverse-proxy-fix/index.md
deleted file mode 100644
index 5db83c0..0000000
--- a/src/content/blog/02-appwrite-nginx-reverse-proxy-fix/index.md
+++ /dev/null
@@ -1,66 +0,0 @@
----
-title: "Fixing Appwrite Issues: Correcting NGINX Forwarding and Reverse Proxy Configuration"
-summary: "A detailed walkthrough of how I resolved nginx forwarding issues to properly configure reverse proxy redirection for my Appwrite deployments."
-date: "Aug 13 2025"
-draft: false
-tags:
-- Tutorial
-- Appwrite
-- NGINX
-- Reverse Proxy
-- Docker
-- Troubleshooting
----
-
-As someone who loves to dive deep into technical challenges, I recently encountered a frustrating issue with my Appwrite setup that required some serious troubleshooting. The problem was related to nginx forwarding and reverse proxy configuration, which prevented my deployed websites from being properly accessible.
-
-## The Problem
-
-I was working on deploying multiple websites using Appwrite as part of my comprehensive Docker container ecosystem. My setup includes:
-- Appwrite for backend services and database management
-- NGINX Proxy Manager (NPM) to expose sites via HTTPS
-- A robust Docker infrastructure supporting various services
-
-The issue occurred when I tried to access my newly deployed websites through the reverse proxy. Instead of seeing my content, I was encountering errors or being redirected incorrectly.
-
-## Root Cause Analysis
-
-After extensive debugging, I discovered that the problem stemmed from improper nginx configuration for forwarding requests to Appwrite and the correct routing of those requests through my reverse proxy setup.
-
-## The Solution
-
-I had to make several key adjustments:
-
-### 1. Ensuring Proper Reverse Proxy Configuration
-
-Next, I made sure that the reverse proxy was correctly redirecting to my new websites:
-
-```nginx
-location / {
- proxy_pass http://your-appwrite-container:80;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
-}
-```
-
-## Key Takeaways
-
-This experience taught me several important lessons about reverse proxy configuration in Docker environments:
-
-1. **Network Configuration is Critical**: Make sure all containers are on the same network and can communicate properly.
-
-2. **Header Settings Matter**: Properly setting `X-Forwarded-*` headers ensures that applications receive correct information about the original request.
-
-3. **Testing Each Component**: When troubleshooting, test individual components (nginx, appwrite, docker networks) to isolate the root cause.
-
-4. **Documentation**: Keep detailed notes of configuration changes for future reference and easier debugging.
-
-## Final Result
-
-After implementing these fixes, my Appwrite setup was working perfectly with proper nginx forwarding and reverse proxy redirection. I could now access all my deployed websites through the correct HTTPS endpoints managed by NGINX Proxy Manager.
-
-This experience reinforced the importance of understanding how different components in a Docker ecosystem interact with each other, especially when it comes to networking and proxy configurations.
-
-The solution not only fixed my immediate problem but also improved my overall understanding of how to properly configure reverse proxies for complex applications like Appwrite. This knowledge will be invaluable as I continue to expand my infrastructure and deploy more services.
diff --git a/src/content/blog/03-spaghet-io-website-improvements/index.md b/src/content/blog/03-spaghet-io-website-improvements/index.md
deleted file mode 100644
index bea70c5..0000000
--- a/src/content/blog/03-spaghet-io-website-improvements/index.md
+++ /dev/null
@@ -1,134 +0,0 @@
----
-title: "Spaghet.io Website Improvements: A Comprehensive UI/UX Overhaul"
-date: 2025-08-13
-summary: "Detailed summary of all the UI/UX improvements made to the Spaghet.io website, including dark mode fixes, theme enhancements, and component updates."
-tags: [website, ui, ux, improvements, spaghetti]
-draft: false
----
-
-## Introduction
-
-This post documents a comprehensive UI/UX overhaul of my personal website, Spaghet.io. The changes were focused on improving visual consistency, fixing dark mode conflicts, and enhancing the overall user experience while maintaining our signature spaghetti-themed aesthetic.
-
-## Goal of This Session
-
-The primary objective was to enhance the website's visual design by:
-1. Resolving dark mode conflicts with prose elements
-2. Ensuring consistent theme application across all components
-3. Fixing text color issues in selected menu items and buttons
-4. Making sure the spaghetti theme is consistently applied throughout the site
-
-## Key Improvements Made
-
-### 1. Fixed Dark Mode Conflicts with tw-prose Classes
-
-**Problem**: The website had conflicts where prose elements (blog content) were not respecting our custom theme colors in dark mode, resulting in poor readability.
-
-**Solution**:
-- Updated `tailwind.config.mjs` to properly customize typography styles
-- Added CSS overrides in `global.css` to ensure spaghetti-themed colors are applied consistently in prose elements
-
-### 2. Enhanced Theme Consistency Across Components
-
-**Problem**: Various components had inconsistent color usage, particularly in text and hover states.
-
-**Solution**:
-- Updated Header component to use proper text-spaghetti-brown colors for hover states
-- Fixed Footer component with consistent text-spaghetti-brown colors for legal links
-- Applied consistent theme classes throughout ArrowCard, Blog, Projects, StackCard, Search, Counter, and Drawer components
-
-### 3. Implemented Spaghetti-Themed Color Palette
-
-**Color Scheme**:
-- Main color: `#FDE68A` (spaghetti-yellow)
-- Accent color: `#FECACA` (spaghetti-red)
-- Background: `#FEF3C7` (spaghetti-cream)
-- Text: `#78350F` (spaghetti-brown)
-
-### 4. Fixed Selected Menu Items and Buttons
-
-**Problem**: Selected menu items and buttons had light red backgrounds with white text, which was inconsistent with our theme.
-
-**Solution**:
-- Updated Header navigation items to use `text-spaghetti-brown` instead of `text-white` for selected states
-- Updated Drawer navigation items to use `text-spaghetti-brown` instead of `text-white` for selected states
-- Updated Search button in header to use `text-spaghetti-brown` instead of `text-white` for selected states
-- Updated mobile drawer button to use `text-spaghetti-brown` instead of `text-white` for selected states
-
-### 5. Enhanced Hero Section with Spaghetti Theme
-
-**Improvements**:
-- Applied consistent text-spaghetti-brown colors throughout the hero section
-- Styled call-to-action buttons with spaghetti-red background and spaghetti-yellow borders
-- Maintained consistent theme application throughout the entire hero section
-
-## Technical Implementation Details
-
-### CSS Customizations
-
-The following changes were made to `src/styles/global.css`:
-
-```css
-/* Override default prose styles to respect our theme */
-.prose {
- color: var(--spaghetti-brown);
-}
-
-.prose a {
- color: var(--spaghetti-red);
-}
-
-.prose h1,
-.prose h2,
-.prose h3,
-.prose h4,
-.prose h5,
-.prose h6 {
- color: var(--spaghetti-brown);
-}
-
-/* Ensure dark mode respects our theme */
-.dark .prose {
- color: var(--spaghetti-brown);
-}
-
-.dark .prose a {
- color: var(--spaghetti-red);
-}
-```
-
-### Component Updates
-
-All affected components were updated to use:
-- `text-spaghetti-brown` for text content
-- `bg-spaghetti-red` for selected states
-- `border-spaghetti-yellow/50` for borders
-- Consistent hover effects with appropriate color transitions
-
-## Before and After Comparison
-
-### Navigation Menu
-**Before**: Selected items had light red background (`bg-spaghetti-red`) with white text (`text-white`)
-**After**: Selected items have light red background (`bg-spaghetti-red`) with dark brown text (`text-spaghetti-brown`)
-
-### Prose Elements
-**Before**: Default Tailwind prose styles were overriding our theme colors in dark mode
-**After**: Custom CSS ensures consistent spaghetti-themed colors across all content
-
-### Hero Section
-**Before**: Inconsistent color usage throughout the hero section
-**After**: Cohesive spaghetti theme with consistent text-spaghetti-brown colors for all content
-
-## Future Improvements
-
-While these changes have significantly improved the website's UI/UX, there are always opportunities for further enhancement:
-1. Implement more sophisticated animations and transitions
-2. Add more interactive elements with our spaghetti theme
-3. Continue refining the dark mode experience
-4. Explore additional theme variations that maintain the spaghetti aesthetic
-
-## Conclusion
-
-These improvements represent a significant step forward in creating a consistent, visually appealing, and user-friendly website that truly embodies the spirit of spaghetti - structured, well-organized, and satisfying to use. The site now maintains a cohesive design language while providing an enhanced user experience across all device sizes and themes.
-
-The changes ensure that our signature spaghetti theme is consistently applied throughout the entire website, from navigation elements to content presentation, creating a unified and memorable user experience.
diff --git a/src/content/blog/templates/01-astro-sphere-file-structure/index.md b/src/content/blog/templates/01-astro-sphere-file-structure/index.md
deleted file mode 100644
index 0e2373d..0000000
--- a/src/content/blog/templates/01-astro-sphere-file-structure/index.md
+++ /dev/null
@@ -1,51 +0,0 @@
----
-title: "Astro Sphere: File Structure"
-summary: "You'll find these directories and files in the project. What do they do?"
-date: "Mar 17 2024"
-draft: true
-tags:
-- Tutorial
-- Astro
-- Astro Sphere
----
-
-A one line summary of what each file and directory is for:
-```js
-/
-├── public/ // Files publicly available to the browser
-│ ├── fonts/ // The default fonts for Astro Sphere
-│ │ └── atkinson-bold.woff // default font weight 700
-│ │ └── atkinson-regular.woff // default font weight 400
-│ ├── js/ // Javascript that will be imported into
-│ │ └── animate.js // function for animating page elements
-│ │ └── bg.js // function for generating the background
-│ │ └── scroll.js // scroll handler for the header styles
-│ │ └── theme.js // controls the light and dark theme
-│ └── brand.svg //the icon that displays in header and footer
-│ └── favicon.svg //the icon that displays in the browser
-│ └── ui.svg // an svg sprite for all ui icons on the website
-│ └── social.svg // an svg sprite for all social media icons
-│ └── open-graph.jpg // the default image for open-graph
-│ └── robots.txt // for web crawlers and bots to index the website
-├── src/ // Everything that will be built for the website
-│ ├── components/ // All astro and SolidJs components
-│ ├── content/ // Contains all static markdown to be compiled
-│ │ | blog/ // Contains all blog post markdown
-│ │ | projects/ // Contains all projects markdown
-│ │ | work/ // Contains all work page markdown
-│ │ | legal/ // Contains all legal docs markdown
-│ │ └── config.ts // Contains the collection config for Astro
-│ ├── layouts/ // Reused layouts across the website
-│ └── pages/ // All of the pages on the website
-│ └── styles/ // CSS and global tailwind styles
-│ └── lib/ // Global helper functions
-│ └── consts.ts // Page metadata, general configuration
-│ └── types.ts // Types for consts.ts
-└── .gitignore // Files and directories to be ignored by Git
-└── .eslintignore // Files and directories to be ignored by ESLint
-└── eslintrc.cjs // ESLint configuration
-└── astro.config.mjs // Astro configuration
-└── tailwind.config.mjs // Tailwind configuration
-└── tsconfig.json // Typescript configuration
-└── package.json // All the installed packages
-```
\ No newline at end of file
diff --git a/src/content/blog/templates/02-astro-sphere-getting-started/index.md b/src/content/blog/templates/02-astro-sphere-getting-started/index.md
deleted file mode 100644
index 28d9d15..0000000
--- a/src/content/blog/templates/02-astro-sphere-getting-started/index.md
+++ /dev/null
@@ -1,90 +0,0 @@
----
-title: "Astro Sphere: Getting Started"
-summary: "You've downloaded and installed the project. Let's hit the ground running."
-date: "Mar 16 2024"
-draft: true
-tags:
-- Tutorial
-- Astro
-- Astro Sphere
----
-
-Astro Sphere is designed to be configurable. This article will cover the basics on
-configuring the site and make it personal.
-
-### First let's change the url
-
-```js
-//astro.config.mjs
-
-export default defineConfig({
- site: "https://awesome-portfolio.com", // your domain here
- integrations: [mdx(), sitemap(), solidJs(), tailwind({ applyBaseStyles: false })],
-})
-```
-
-### Next, Let's configure the Site
-
-```js
-// src/consts.ts
-
-export const SITE: Site = {
- TITLE: "Astro Sphere",
- DESCRIPTION: "Welcome to Astro Sphere, a portfolio and blog for designers and developers.",
- AUTHOR: "Mark Horn",
-}
-```
-
-| Field | Type | Description |
-| :---------- | :----- | :--------------------------------------------------------------------- |
-| TITLE | String | The title of the website. Displayed in header and footer. Used in SEO. |
-| DESCRIPTION | String | The description of the index page of the website. Used in SEO. |
-| AUTHOR | String | Your name. |
-
-### Change the branding
-
-The browser icon is located in `/public/favicon.svg`
-
-The header and footer branding icon is located in `/public/brand.svg` as a sprite with id="brand"
-
-### The rest of the consts file
-
-Each page has a metadata entry that is useful for SEO.
-
-```js
-export const WORK: Page = {
- TITLE: "Work",
- DESCRIPTION: "Places I have worked.",
-}
-```
-
-The links that are displayed in the header and drawer
-
-```js
-export const LINKS: Links = [
- { HREF: "/", TEXT: "Home" },
- { HREF: "/work", TEXT: "Work" },
- { HREF: "/blog", TEXT: "Blog" },
- { HREF: "/projects", TEXT: "Projects" },
-]
-```
-
-The social media links
-
-```js
-export const SOCIALS: Socials = [
- {
- NAME: "Github",
- ICON: "github",
- TEXT: "markhorn-dev",
- HREF: "https://github.com/markhorn-dev/astro-sphere"
- },
-]
-```
-
-| Field | Type | Required | Description |
-| :---- | :--- | :------- | :---------- |
-| NAME | string | yes | Accessible name |
-| ICON | string | yes | Refers to the symbol id in `public/social.svg` |
-| TEXT | string | yes | Shorthand profile name |
-| HREF | string | yes | The link to the social media profile |
\ No newline at end of file
diff --git a/src/content/blog/templates/03-astro-sphere-add-new-post-or-projects/index.md b/src/content/blog/templates/03-astro-sphere-add-new-post-or-projects/index.md
deleted file mode 100644
index 0b980f0..0000000
--- a/src/content/blog/templates/03-astro-sphere-add-new-post-or-projects/index.md
+++ /dev/null
@@ -1,87 +0,0 @@
----
-title: "Astro Sphere: Adding a new post or project."
-summary: "Adding a new article (blog post or project) is pretty easy."
-date: "Mar 14 2024"
-draft: true
-tags:
-- Tutorial
-- Astro
-- Astro Sphere
----
-### Basics
-
-Create a folder in the respective collection you wish to create content. The name of the folder will be the slug in which your content will be found.
-
-```text
-creating the following
-
-/content/blog/my-new-post/index.md
-
-will be published to
-
-https://yourdomain.com/blog/my-new-post
-
-```
-
-### Frontmatter
-
-Front matter is in yaml if you are familiar with the format. All posts and projects require frontmatter at the top of the document to be imported. All frontmatter must be inside triple dashes, similar to Astro format. See example below.
-
-### Blog Collection
-
-| Field | Type | Req? | Description |
-| :------ | :------ | :--- | :------------------------------------------------------------ |
-| title | string | yes | Title of the post. Used in SEO. |
-| summary | string | yes | Short description of the post. Used in SEO. |
-| date | string | yes | Any string date that javascript can convert. Used in sorting |
-| tags | array | yes | Post topic. Array of strings. Used in filtering. |
-| draft | boolean | no | Hides the post from collections. Unpublished entry. |
-
-Example blog post frontmatter
-
-```yaml
----
-title: "Astro Sphere: Adding a new post or project."
-summary: "Adding a new article (blog post or project) is pretty easy."
-date: "Mar 18 2024"
-draft: false
-tags:
-- Tutorial
-- Astro
-- Astro Sphere
----
-```
-
-### Projects Collection (extends Blog Collection)
-
-| Field | Type | Req? | Description |
-| :------ | :------ | :--- | :------------------------------------------------------------ |
-| title | string | yes | Title of the post. Used in SEO. |
-| summary | string | yes | Short description of the post. Used in SEO. |
-| date | string | yes | Any string date that javascript can convert. Used in sorting |
-| tags | array | yes | Post topic. Array of strings. Used in filtering. |
-| draft | boolean | no | Hides the post from collections. Unpublished entry. |
-| demoUrl | string | no | A link to the deployed project, if applicable. |
-| repoUrl | string | no | A link to the repository, if applicable. |
-
-Example project frontmatter
-
-```yaml
----
-title: "Astro Sphere"
-summary: "Astro Sphere, a portfolio and blog for designers and developers."
-date: "Mar 18 2024"
-draft: false
-tags:
-- Astro
-- Typescript
-- Javascript
-- Tailwind
-- SolidJS
-demoUrl: https://astro-sphere.vercel.app
-repoUrl: https://github.com/markhorn-dev/astro-sphere
----
-```
-
-### Write your content
-You've made it this far, all that is left to do is write your content beneath the frontmatter. Writing markdown will be covered in the next article.
\ No newline at end of file
diff --git a/src/content/blog/templates/04-astro-sphere-writing-markdown/index.md b/src/content/blog/templates/04-astro-sphere-writing-markdown/index.md
deleted file mode 100644
index 97048c1..0000000
--- a/src/content/blog/templates/04-astro-sphere-writing-markdown/index.md
+++ /dev/null
@@ -1,236 +0,0 @@
----
-title: "Astro Sphere: Writing Markdown"
-summary: "Basic Markdown syntax that can be used when writing Markdown content in Astro Sphere."
-date: "Mar 13 2024"
-draft: true
-tags:
-- Tutorial
-- Astro
-- Astro Sphere
-- Markdown
----
-
-### Headings
-
-```text
-# H1
-
-## H2
-
-### H3
-
-#### H4
-
-##### H5
-
-###### H6
-
-```
-
-# H1
-
-## H2
-
-### H3
-
-#### H4
-
-##### H5
-
-###### H6
-
-### Paragraph
-
-Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
-
-Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
-
-### Images
-
-Relative image in the /public folder
-
-```markdown
-
-```
-
-
-
-Relative Image in the same folder as the markdown
-
-```markdown
-
-```
-
-
-
-## Blockquotes
-
-The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
-
-### Blockquote without attribution
-
-#### Syntax
-
-```markdown
-> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
-> **Note** that you can use _Markdown syntax_ within a blockquote.
-```
-
-#### Output
-
-> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
-> **Note** that you can use _Markdown syntax_ within a blockquote.
-
-### Blockquote with attribution
-
-#### Syntax
-
-```markdown
-> Don't communicate by sharing memory, share memory by communicating.
-> —
Rob Pike[^1]
-```
-
-#### Output
-
-> Don't communicate by sharing memory, share memory by communicating.
-> —
Rob Pike[^1]
-
-[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
-
-## Tables
-
-#### Syntax
-
-```markdown
-| Italics | Bold | Code |
-| --------- | -------- | ------ |
-| _italics_ | **bold** | `code` |
-```
-
-#### Output
-
-| Italics | Bold | Code |
-| --------- | -------- | ------ |
-| _italics_ | **bold** | `code` |
-
-## Code Blocks
-
-#### Syntax
-
-we can use 3 backticks ``` in new line and write snippet and close with 3 backticks on new line and to highlight language specific syntac, write one word of language name after first 3 backticks, for eg. html, javascript, css, markdown, typescript, txt, bash
-
-````markdown
-```html
-
-
-
-
-
Example HTML5 Document
-
-
-
Test
-
-
-```
-````
-
-Output
-
-```html
-
-
-
-
-
Example HTML5 Document
-
-
-
Test
-
-
-```
-
-## List Types
-
-### Ordered List
-
-#### Syntax
-
-```markdown
-1. First item
-2. Second item
-3. Third item
-```
-
-#### Output
-
-1. First item
-2. Second item
-3. Third item
-
-### Unordered List
-
-#### Syntax
-
-```markdown
-- List item
-- Another item
-- And another item
-```
-
-#### Output
-
-- List item
-- Another item
-- And another item
-
-### Nested list
-
-#### Syntax
-
-```markdown
-- Fruit
- - Apple
- - Orange
- - Banana
-- Dairy
- - Milk
- - Cheese
-```
-
-#### Output
-
-- Fruit
- - Apple
- - Orange
- - Banana
-- Dairy
- - Milk
- - Cheese
-
-## Other Elements — abbr, sub, sup, kbd, mark
-
-#### Syntax
-
-```markdown
-
GIF is a bitmap image format.
-
-H
2 O
-
-X
n + Y
n = Z
n
-
-Press
CTRL +ALT +Delete to end the session.
-
-Most
salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
-```
-
-#### Output
-
-
GIF is a bitmap image format.
-
-H
2 O
-
-X
n + Y
n = Z
n
-
-Press
CTRL +ALT +Delete to end the session.
-
-Most
salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
diff --git a/src/content/blog/templates/04-astro-sphere-writing-markdown/spongebob.png b/src/content/blog/templates/04-astro-sphere-writing-markdown/spongebob.png
deleted file mode 100644
index 8bd71fc..0000000
Binary files a/src/content/blog/templates/04-astro-sphere-writing-markdown/spongebob.png and /dev/null differ
diff --git a/src/content/blog/templates/05-astro-sphere-writing-mdx/MyComponent.astro b/src/content/blog/templates/05-astro-sphere-writing-mdx/MyComponent.astro
deleted file mode 100644
index 9e1faa7..0000000
--- a/src/content/blog/templates/05-astro-sphere-writing-mdx/MyComponent.astro
+++ /dev/null
@@ -1,16 +0,0 @@
----
-type Props = {
- name: string
-}
-const { name } = Astro.props
----
-
-
-
- Hello,
-
- {name}!!!
-
-
-
-
\ No newline at end of file
diff --git a/src/content/blog/templates/05-astro-sphere-writing-mdx/index.mdx b/src/content/blog/templates/05-astro-sphere-writing-mdx/index.mdx
deleted file mode 100644
index 25b417e..0000000
--- a/src/content/blog/templates/05-astro-sphere-writing-mdx/index.mdx
+++ /dev/null
@@ -1,53 +0,0 @@
----
-title: "Astro Sphere: Writing MDX"
-summary: "Lorem ipsum dolor sit amet"
-date: "Mar 12 2024"
-draft: true
-tags:
-- Tutorial
-- Astro
-- Astro Sphere
-- Markdown
-- MDX
----
-
-MDX is a special flavor of Markdown that supports embedded JavaScript & JSX syntax. This unlocks the ability to [mix JavaScript and UI Components into your Markdown content](https://docs.astro.build/en/guides/markdown-content/#mdx-features) for things like interactive charts or alerts.
-
-If you have existing content authored in MDX, this integration will hopefully make migrating to Astro a breeze.
-
-## An astro component with props
-
-```
-// Imported from relative path (same dir as markdown file)
-import MyComponent from "./MyComponent.astro"
-
-
- Welcome to MDX
-
-```
-
-import MyComponent from "./MyComponent.astro"
-
-
- Welcome to MDX
-
-
-
-
-## An interactive Solid Js component
-
-```
-// Imported from components directory (src/components)
-import MyComponent from "@components/Counter"
-
-// Don't forget the astro client:load directive
-
-```
-
-import Counter from "@components/Counter"
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/content/blog/templates/06-astro-sphere-social-links/index.md b/src/content/blog/templates/06-astro-sphere-social-links/index.md
deleted file mode 100644
index 8163381..0000000
--- a/src/content/blog/templates/06-astro-sphere-social-links/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-title: "Astro Sphere: Social media links"
-summary: "A quick tutorial on how to change, add or remove social media links"
-date: "Mar 11 2024"
-draft: true
-tags:
-- Tutorial
-- Astro
-- Astro Sphere
----
-
-Astro Sphere comes preconfigured with social media links for Email, Github, Linked In and Twitter (X), but it's very easy to add more.
-
-### Edit `consts.ts`
-
-```js
-// consts.ts
-
-export const SOCIALS: Socials = [
- {
- NAME: "Github",
- ICON: "github",
- TEXT: "markhorn-dev",
- HREF: "https://github.com/markhorn-dev/astro-sphere"
- },
-]
-```
-
-| Field | Type | Required | Description |
-| :---- | :--- | :------- | :---------- |
-| NAME | string | yes | Accessible name |
-| ICON | string | yes | Refers to the symbol id in `public/social.svg` |
-| TEXT | string | yes | Shorthand profile name |
-| HREF | string | yes | The link to the social media profile |
-
-### Edit /public/social.svg
-
-Simply add your own symbols to the svg sprite.
-
-It is recommended that all styles be removed from new symbols added, or they may not show up correctly or conflict with Tailwind's classes.
-
-The id should match the icon field as specified in your `consts.ts` file.
-
-```html
-
-
-
-
-
-
-
-
-
-```
diff --git a/src/content/blog/templates/feature-blog-template/index.md b/src/content/blog/templates/feature-blog-template/index.md
deleted file mode 100644
index 1fcfbbb..0000000
--- a/src/content/blog/templates/feature-blog-template/index.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-title: "Feature Blog Template"
-template: "feature"
-date: 2025-08-17
-draft: false
-featured: true
-tags: ["template", "feature"]
-summary: "Template for feature-focused blog posts"
----
-
-# Feature Blog Template
-
-This is a template for feature-focused blog posts. It includes additional styling and structure to highlight key features.
-
-## Key Features
-
-- Dedicated featured content area
-- Enhanced visual presentation
-- Additional metadata fields
-- Special formatting for feature showcases
-
-## Usage
-
-When creating a new blog post using this template, you can customize the content to showcase specific features or products.
diff --git a/src/content/blog/templates/news-blog-template/index.md b/src/content/blog/templates/news-blog-template/index.md
deleted file mode 100644
index dbb653e..0000000
--- a/src/content/blog/templates/news-blog-template/index.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-title: "News Blog Template"
-template: "news"
-date: 2025-08-17
-draft: false
-featured: false
-tags: ["template", "news"]
-summary: "Template for news-style blog posts"
----
-
-# News Blog Template
-
-This is a template for news-style blog posts. It's designed for announcing updates, releases, and important announcements.
-
-## Key Features
-
-- Clean, concise layout
-- Date and time stamp prominently displayed
-- News-focused metadata
-- Simple formatting for quick reading
-
-## Usage
-
-Use this template for publishing company news, product updates, or any announcements that need to be clearly communicated to readers.
diff --git a/src/content/config.ts b/src/content/config.ts
deleted file mode 100644
index 23d999b..0000000
--- a/src/content/config.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import { defineCollection, z } from "astro:content"
-
-const work = defineCollection({
- type: "content",
- schema: z.object({
- company: z.string(),
- role: z.string(),
- dateStart: z.coerce.date(),
- dateEnd: z.union([z.coerce.date(), z.string()]),
- }),
-})
-
-const blog = defineCollection({
- type: "content",
- schema: z.object({
- title: z.string(),
- summary: z.string(),
- date: z.coerce.date(),
- tags: z.array(z.string()),
- draft: z.boolean().optional(),
- template: z.string().optional(), // Add template field
- featured: z.boolean().optional(), // Add featured field
- }),
-})
-
-const projects = defineCollection({
- type: "content",
- schema: z.object({
- title: z.string(),
- summary: z.string(),
- date: z.coerce.date(),
- tags: z.array(z.string()),
- draft: z.boolean().optional(),
- demoUrl: z.string().optional(),
- repoUrl: z.string().optional(),
- }),
-})
-
-const legal = defineCollection({
- type: "content",
- schema: z.object({
- title: z.string(),
- date: z.coerce.date(),
- }),
-})
-
-export const collections = { work, blog, projects, legal }
diff --git a/src/content/legal/privacy.md b/src/content/legal/privacy.md
deleted file mode 100644
index 6b43313..0000000
--- a/src/content/legal/privacy.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-title: "Privacy Policy"
-date: "08/13/2025"
----
-
-This Privacy Policy describes how Spaghet Tech collects, uses, and protects your personal information when you use our website (https://spaghet.tech).
-
-#### Information We Collect
-
-When you visit our website, we may collect the following types of information:
-
-**Non-personal Identification Information**
-- Browser type and version
-- Operating system
-- Referring web page
-- Date and time of access
-- IP address (in some cases)
-
-**Personal Identification Information**
-We do not currently collect personal identification information from website visitors unless you voluntarily provide it to us through contact forms or other communication methods.
-
-#### How We Use Your Information
-
-We use the collected information for:
-- Analyzing usage patterns to improve our website
-- Enhancing user experience
-- Responding to your inquiries
-- Providing information about our services
-
-#### How We Protect Your Information
-
-We implement appropriate security measures to protect against unauthorized access to or alteration of your personal information. These include:
-- Secure server technology
-- Regular security updates
-- Access controls and authentication
-
-#### Sharing Your Information
-
-We do not sell, trade, or rent your personal information to others. We may share information with trusted third parties who assist us in operating our website, conducting our business, or serving our users, so long as those parties agree to keep this information confidential.
-
-#### Cookies
-
-Our website uses cookies to enhance user experience and analyze site usage. You can control cookie settings through your browser preferences.
-
-#### Third-Party Links
-
-Our website may contain links to third-party websites. We are not responsible for the privacy practices or content of these sites.
-
-#### Changes to This Privacy Policy
-
-We may update our Privacy Policy from time to time. We will notify you of any changes by posting the new policy on this page with an updated effective date.
-
-#### Contact Us
-
-If you have any questions about this Privacy Policy, please contact us at quinn@spaghet.tech.
diff --git a/src/content/legal/terms.md b/src/content/legal/terms.md
deleted file mode 100644
index 6e65c99..0000000
--- a/src/content/legal/terms.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-title: "Terms of Use"
-date: "08/13/2025"
----
-
-Please read these Terms of Use ("Terms", "Terms of Use") carefully before using the https://spaghet.tech website (the "Service") operated by Spaghet Tech ("us", "we", or "our").
-
-#### Agreement to Terms
-
-By accessing or using our website, you agree to be bound by these Terms of Use and all applicable laws and regulations. If you disagree with any part of these terms, you must not access the website.
-
-#### Intellectual Property Rights
-
-All content on this website, including text, graphics, logos, images, and software, is the property of Spaghet Tech or its licensors and is protected by intellectual property laws.
-
-#### User Representations
-
-By using our website, you represent that you are at least 18 years old and have the legal capacity to enter into these terms.
-
-#### Use of Services
-
-You may use our website for personal informational purposes only. You agree not to:
-- Use the website for any unlawful purpose
-- Interfere with or disrupt the website's operation
-- Attempt to gain unauthorized access to our systems
-- Use automated means (bots, scrapers) to access the site
-
-#### Links to Other Websites
-
-Our website may contain links to third-party websites. We do not endorse or assume any responsibility for the content, privacy policies, or practices of these sites.
-
-#### Termination
-
-We may terminate or suspend your access to our website immediately, without prior notice, if you violate these Terms of Use.
-
-#### Governing Law
-
-These terms shall be governed by and construed in accordance with the laws of Ohio, United States, without regard to its conflict of law provisions.
-
-#### Changes to These Terms of Use
-
-We may update our Terms of Use from time to time. We will notify you of any changes by posting the new terms on this page with an updated effective date.
-
-#### Contact Us
-
-If you have any questions about these Terms of Use, please contact us at quinn@spaghet.tech.
diff --git a/src/content/projects/appwrite/index.md b/src/content/projects/appwrite/index.md
deleted file mode 100644
index 3b612f5..0000000
--- a/src/content/projects/appwrite/index.md
+++ /dev/null
@@ -1,25 +0,0 @@
----
-title: "Appwrite Integration"
-summary: "Custom Appwrite implementation for backend services"
-date: "Aug 2025"
-draft: false
-tags:
-- Appwrite
-- Backend
-- Authentication
-- Database
-- API
-demoUrl: https://appdev.spaghet.io/
----
-
-Implementation of Appwrite as a backend solution for modern web applications. This project demonstrates the integration of Appwrite's comprehensive backend services including authentication, database management, file storage, and cloud functions.
-
-Key features include:
-- User authentication and authorization using Appwrite's built-in authentication system
-- Database management with support for multiple document collections
-- File storage and management capabilities
-- Serverless functions for custom business logic
-- Real-time database updates and notifications
-- RESTful API integration for frontend applications
-
-The project showcases my ability to leverage modern backend-as-a-service platforms to build scalable, secure, and maintainable applications while reducing infrastructure overhead.
diff --git a/src/content/projects/astro-profile/index.md b/src/content/projects/astro-profile/index.md
deleted file mode 100644
index 3e350ec..0000000
--- a/src/content/projects/astro-profile/index.md
+++ /dev/null
@@ -1,27 +0,0 @@
----
-title: "Astro Profile"
-summary: "Personal portfolio website built with Astro, React, and Tailwind CSS"
-date: "Aug 2025"
-draft: false
-tags:
-- Astro
-- React
-- Tailwind CSS
-- JavaScript
-- TypeScript
-demoUrl: https://home.spaghet.io
-repoUrl: https://github.com/spaghetgaming/Spaghet.io
----
-
-A modern personal portfolio website showcasing my work, projects, and technical expertise. Built with Astro for optimal performance and SEO, utilizing React components for interactive elements, and styled with Tailwind CSS for responsive design.
-
-Features include:
-- Responsive design that works across all device sizes
-- Smooth animations and transitions for enhanced user experience
-- Clean, modern aesthetic with dark/light mode support
-- Integrated blog section for technical articles
-- Project showcase with detailed descriptions
-- Contact form with email integration
-- SEO optimization for better search engine visibility
-
-The site demonstrates my proficiency in modern web development practices and technologies, including component-based architecture, responsive design principles, and performance optimization techniques.
diff --git a/src/content/projects/gitea/index.md b/src/content/projects/gitea/index.md
deleted file mode 100644
index c578c39..0000000
--- a/src/content/projects/gitea/index.md
+++ /dev/null
@@ -1,26 +0,0 @@
----
-title: "Gitea Implementation"
-summary: "Self-hosted Git service with continuous integration capabilities"
-date: "Aug 2025"
-draft: false
-tags:
-- Gitea
-- Git
-- CI/CD
-- DevOps
-- Docker
-demoUrl: https://gitea.spaghet.io
----
-
-Deployment and configuration of Gitea as a self-hosted Git service for version control and continuous integration. This implementation provides a comprehensive solution for managing code repositories, tracking issues, and automating development workflows.
-
-Key features include:
-- Repository management with Git-based version control
-- Issue tracking and project management tools
-- Continuous integration and deployment capabilities
-- User authentication and access control
-- Integration with Docker containers for easy deployment
-- Customizable webhooks and automation scripts
-- Backup and disaster recovery procedures
-
-The project demonstrates my expertise in DevOps practices, infrastructure management, and the implementation of self-hosted solutions that provide greater control and security over development processes.
diff --git a/src/content/projects/home-system/index.md b/src/content/projects/home-system/index.md
deleted file mode 100644
index f3dd1c4..0000000
--- a/src/content/projects/home-system/index.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-title: "Home System"
-summary: "Technology as Lifestyle - Personal Docker ecosystem with 2 Unraid servers"
-date: "Aug 2025"
-draft: false
-tags:
-- Docker
-- Unraid
-- PostgreSQL
-- MariaDB
-- MongoDB
-- Redis
-- Minio
-- Kubernetes
-- Node-RED
-- Authentik
-- LDAP
----
-
-Designed and maintained a scalable Docker container ecosystem supporting PostgreSQL, MariaDB, MySQL, MongoDB, Redis, and Minio for high-availability applications, ensuring robust data storage, caching, and object storage solutions.
-
-Configured and secured authentication frameworks using Authentik, Vaultwarden, and LDAP integration, implementing zero-trust security models and access control for internal and external systems.
-
-Deployed and supported proxy and API gateway solutions to enable secure, scalable, and customizable network infrastructure for internal and external applications.
-
-Provided end-to-end support for 30+ users utilizing the containerized applications, including troubleshooting, configuration guidance, and documentation for tools like Zammad, and Immich.
-
-Streamlined DevOps workflows with Node-RED, custom APIs, and automation scripts, enhancing productivity for both personal and team projects.
-
-Maintained and optimized containerized tools for personal and organizational use, ensuring reliability, performance, and user-friendly interfaces.
-
-Handled on-call duties for critical applications, resolving issues and minimizing downtime for users relying on the containerized ecosystem.
diff --git a/src/content/projects/spaghet-io-website/index.md b/src/content/projects/spaghet-io-website/index.md
deleted file mode 100644
index d9390a3..0000000
--- a/src/content/projects/spaghet-io-website/index.md
+++ /dev/null
@@ -1,192 +0,0 @@
----
-title: "Spaghet.io Website"
-date: 2025-08-13
-summary: "A comprehensive overview of the Spaghet.io personal website, detailing its features, design elements, and technical implementation."
-tags: [website, portfolio, personal, astro, spaghetti]
-draft: false
----
-
-## Overview
-
-Spaghet.io is my personal website that showcases my professional work, blog posts, projects, and expertise in technology and innovation. The site embodies my passion for spaghetti, noodles, and all things tech through its design and functionality.
-
-## Key Features
-
-### 1. Responsive Design
-
-The website features a fully responsive design that works seamlessly across:
-- Desktop browsers
-- Tablets
-- Mobile devices
-- All screen sizes
-
-### 2. Dark Mode Support
-
-**Dual Theme Implementation:**
-- Light mode with warm, spaghetti-themed colors
-- Dark mode with complementary dark theme that maintains visual consistency
-- Smooth transitions between themes
-- Automatic theme detection based on system preferences
-
-### 3. Spaghetti-Themed Color Palette
-
-**Primary Colors:**
-- **Spaghetti Yellow**: `#FDE68A` - Used for highlights and interactive elements
-- **Spaghetti Red**: `#FECACA` - Used for accents and important actions
-- **Spaghetti Cream**: `#FEF3C7` - Used for backgrounds and subtle elements
-- **Spaghetti Brown**: `#78350F` - Used for text content and primary elements
-
-### 4. Interactive UI Components
-
-**Navigation Elements:**
-- Fixed header with smooth scrolling
-- Mobile-friendly drawer navigation
-- Hover effects with color transitions
-- Selected state indicators with consistent theme colors
-
-**Content Presentation:**
-- Blog post cards with hover animations
-- Project showcase with filtering capabilities
-- Tag-based organization system
-- Responsive tables and lists
-
-### 5. Technical Implementation
-
-**Built With:**
-- **Astro**: Static site generator for optimal performance
-- **SolidJS**: For reactive UI components
-- **Tailwind CSS**: Utility-first CSS framework
-- **TypeScript**: Type safety and enhanced development experience
-- **Markdown**: Content management system
-
-### 6. Performance Optimizations
-
-**Optimizations Implemented:**
-- Lazy loading of images and components
-- Efficient CSS with minimal bundle size
-- Optimized JavaScript with tree-shaking
-- Responsive image handling
-- Minimal third-party dependencies
-
-## UI Components
-
-### Header & Navigation
-- Fixed position header with brand logo
-- Desktop navigation with hover effects
-- Mobile drawer menu with hamburger icon
-- Search functionality
-- Theme toggle button
-
-### Hero Section
-- Animated background elements
-- Welcome message with personal introduction
-- Call-to-action buttons styled with spaghetti theme
-- Responsive text sizing for all devices
-
-### Blog Section
-- Recent posts preview
-- Filterable by tags
-- Card-based layout with hover effects
-- Date formatting and categorization
-
-### Projects Section
-- Project showcase with filtering capabilities
-- Tag-based organization system
-- Responsive grid layout
-- Detailed project cards with descriptions
-
-### Footer
-- Copyright information with current year
-- Legal links (Privacy Policy, Terms of Service)
-- Social media integration
-- Consistent spaghetti-themed styling
-
-## Design Elements
-
-### Visual Theme
-The website maintains a consistent spaghetti theme throughout:
-- Warm color scheme that evokes feelings of comfort and satisfaction
-- Clean, organized layout that mirrors the structure of good spaghetti
-- Subtle animations and transitions for enhanced user experience
-- Proper contrast ratios for accessibility
-
-### Typography
-- Clear hierarchy with appropriate font weights
-- Responsive text sizing
-- Consistent spacing and alignment
-- Readable fonts optimized for both light and dark modes
-
-### Layout Structure
-- Grid-based responsive layout
-- Consistent padding and margins
-- Visual balance across all sections
-- Proper use of white space
-
-## Technical Architecture
-
-### Component Structure
-The site uses a modular component architecture:
-- **Header** - Navigation and branding
-- **Footer** - Site information and links
-- **Blog** - Content display with filtering
-- **Projects** - Portfolio showcase
-- **ArrowCard** - Generic card component for content
-- **StackCard** - Technology stack display
-- **Search** - Search functionality
-
-### Theme System
-The theme system supports:
-- CSS variables for consistent color management
-- Dark mode detection and switching
-- Theme persistence across sessions
-- Smooth transitions between themes
-
-### Content Management
-Content is managed through:
-- Markdown files for blog posts and projects
-- Astro's content collections
-- Frontmatter metadata for categorization
-- Template-based generation system
-
-## Responsive Features
-
-### Mobile Experience
-- Touch-friendly navigation elements
-- Optimized touch targets
-- Collapsible sections for smaller screens
-- Performance optimized for mobile devices
-
-### Tablet Experience
-- Adaptive layout adjustments
-- Intermediate view sizes
-- Maintained usability across screen sizes
-
-### Desktop Experience
-- Full-width content presentation
-- Advanced hover effects and animations
-- Multi-column layouts where appropriate
-
-## Accessibility
-
-The website includes accessibility features:
-- Semantic HTML structure
-- Proper contrast ratios for text
-- Keyboard navigation support
-- Screen reader compatibility
-- Responsive design for all devices
-
-## Future Enhancements
-
-Potential future improvements include:
-1. Enhanced animation system with more sophisticated transitions
-2. Additional interactive elements that reflect the spaghetti theme
-3. More advanced filtering and search capabilities
-4. Integration with external APIs for dynamic content
-5. Expanded multimedia presentation options
-6. Improved social sharing features
-
-## Conclusion
-
-Spaghet.io represents a cohesive blend of technical excellence and thematic consistency. The site successfully combines modern web technologies with a playful yet professional spaghetti-themed aesthetic to create an engaging user experience that reflects my passion for both technology and culinary arts.
-
-The implementation maintains the structure and organization that makes good spaghetti satisfying to use, while providing an enjoyable browsing experience across all devices and themes.
diff --git a/src/content/projects/templates/project-1/index.md b/src/content/projects/templates/project-1/index.md
deleted file mode 100644
index 7297f79..0000000
--- a/src/content/projects/templates/project-1/index.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-title: "Project One"
-summary: "Lorem ipsum dolor sit amet"
-date: "Mar 18 2022"
-draft: true
-tags:
-- Astro
-- Javascript
-- Typescript
-- Tailwind
-- SolidJs
-demoUrl: https://astro-sphere-demo.vercel.app
-repoUrl: https://github.com/markhorn-dev/astro-sphere
----
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
diff --git a/src/content/projects/templates/project-2/index.md b/src/content/projects/templates/project-2/index.md
deleted file mode 100644
index 88a30a9..0000000
--- a/src/content/projects/templates/project-2/index.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-title: "Project Two"
-summary: "Lorem ipsum dolor sit amet"
-date: "Mar 17 2022"
-draft: true
-tags:
-- Svelte
-- Sveltekit
-- Typescript
-- Tailwind
----
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
\ No newline at end of file
diff --git a/src/content/projects/templates/project-3/index.md b/src/content/projects/templates/project-3/index.md
deleted file mode 100644
index d52d4e4..0000000
--- a/src/content/projects/templates/project-3/index.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: "Project Three"
-summary: "Lorem ipsum dolor sit amet"
-date: "Mar 16 2022"
-draft: true
-tags:
-- Vue
-- Javascript
-- Tailwind
----
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
\ No newline at end of file
diff --git a/src/content/projects/templates/project-4/index.md b/src/content/projects/templates/project-4/index.md
deleted file mode 100644
index 4f67e97..0000000
--- a/src/content/projects/templates/project-4/index.md
+++ /dev/null
@@ -1,31 +0,0 @@
----
-title: "Project Four"
-summary: "Lorem ipsum dolor sit amet"
-date: "Mar 15 2022"
-draft: true
-tags:
-- React
-- Javascript
-- StyleX
----
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium.
-
-Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas.
-
-Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem.
-Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium.
-
-Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas.
-
-Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem.
-Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium.
-
-Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas.
-
-Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem.
-Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
\ No newline at end of file
diff --git a/src/content/work/amazon.md b/src/content/work/amazon.md
deleted file mode 100644
index 2e84a72..0000000
--- a/src/content/work/amazon.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-company: "Amazon"
-role: "Area Manager"
-dateStart: "03/01/2010"
-dateEnd: "10/01/2014"
----
-
-Monitored associate productivity metrics and resolved performance barriers.
-
-Conducted training sessions for peers and leadership on new fulfillment tech tools.
-
-Empowered direct reports to enforce safety, quality, and productivity standards.
-
-Recruited top talent for individual contributors to boost team success.
-
-Led cross-functional teams to implement processes improving operational efficiency in North America.
diff --git a/src/content/work/careworks-tech.md b/src/content/work/careworks-tech.md
deleted file mode 100644
index 04f5483..0000000
--- a/src/content/work/careworks-tech.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-company: "CareWorks Tech"
-role: "ServiceNow Developer"
-dateStart: "06/01/2016"
-dateEnd: "09/01/2017"
----
-
-Experienced ServiceNow developer with expertise in IT Service Management platforms.
-
-Skilled in implementing and customizing ServiceNow solutions for enterprise clients.
-
-Knowledge of ITSM frameworks including INC, PRG, CHG, ESC to support business operations.
-
-Proficient in configuring and maintaining ServiceNow applications to meet client requirements.
diff --git a/src/content/work/clear-skye.md b/src/content/work/clear-skye.md
deleted file mode 100644
index 7bd4038..0000000
--- a/src/content/work/clear-skye.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-company: "Clear Skye"
-role: "Technical Architect"
-dateStart: "03/01/2022"
-dateEnd: "05/01/2023"
----
-
-Proficient in ServiceNow Identity Governance modules (e.g., IdentityIQ, ClearSkye IGA) for designing, configuring, and optimizing workflows for access management, entitlements, and compliance.
-
-Expertise in AWS, Azure, GCP to build scalable, secure, and compliant identity governance architectures for hybrid/multi-cloud environments.
-
-Experience with REST, SOAP, and middleware tools to integrate ClearSkye IGA with identity providers (SAML, OAuth), HR systems, and enterprise apps for seamless data flow.
-
-Knowledge of GDPR, SOC2, ISO 27001, and NIST frameworks to design secure IGA solutions with access controls, audit trails, and regulatory alignment.
-
-Skilled in automating deployment pipelines, IaC (Terraform, CloudFormation), and monitoring tools (Prometheus) to ensure reliable IGA system updates.
-
-Expertise in designing data privacy frameworks, managing user data lifecycle, and leveraging analytics for risk assessments, entitlement audits, and access insights.
-
-Proven ability to collaborate with IT ops, security teams, and business stakeholders to translate governance requirements into technical solutions.
-
-Ability to resolve complex IGA challenges (e.g., entitlement conflicts, access delays) and adapt architectures to evolving compliance, user, and tech trends.
diff --git a/src/content/work/computer-aid.md b/src/content/work/computer-aid.md
deleted file mode 100644
index b56b296..0000000
--- a/src/content/work/computer-aid.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-company: "Computer Aid, Inc."
-role: "Technical Consultant"
-dateStart: "07/01/2019"
-dateEnd: "07/01/2021"
----
-
-Technical Consultant for ServiceNow practice with expertise in IT Service Management platforms.
-
-Deep knowledge of ITSM (e.g., INC, PRG, CHG, ESC) and related frameworks to support enterprise clients.
-
-Experience in implementing and optimizing ServiceNow solutions for various business needs.
-
-Strong ability to translate technical requirements into business value for clients.
diff --git a/src/content/work/national-guard.md b/src/content/work/national-guard.md
deleted file mode 100644
index fd8903a..0000000
--- a/src/content/work/national-guard.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-company: "National Guard Bureau"
-role: "Chaplain Assistant"
-dateStart: "12/01/2007"
-dateEnd: "12/01/2012"
----
-
-Support role within the National Guard Bureau focused on chaplain services and community outreach.
diff --git a/src/content/work/neoteric-technologies.md b/src/content/work/neoteric-technologies.md
deleted file mode 100644
index 35f04f9..0000000
--- a/src/content/work/neoteric-technologies.md
+++ /dev/null
@@ -1,18 +0,0 @@
----
-company: "Neoteric Technologies"
-role: "Sr. Cloud Architect"
-dateStart: "03/01/2021"
-dateEnd: "01/01/2022"
----
-
-Results-driven technical leader with deep expertise in cloud architecture and infrastructure design.
-
-Extensive experience in designing scalable, secure, and compliant identity governance architectures for hybrid/multi-cloud environments.
-
-Proficient in AWS, Azure, and GCP platforms to build robust cloud solutions.
-
-Skilled in automating deployment pipelines and implementing Infrastructure as Code (IaC) using tools like Terraform and CloudFormation.
-
-Experience with monitoring tools to ensure reliable system updates and performance optimization.
-
-Knowledge of security frameworks and compliance standards to design secure cloud solutions.
diff --git a/src/content/work/spaghet-tech.md b/src/content/work/spaghet-tech.md
deleted file mode 100644
index 8ce2a72..0000000
--- a/src/content/work/spaghet-tech.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-company: "Spaghet Tech"
-role: "Creator"
-dateStart: "05/01/2023"
-dateEnd: ""
----
-
-Deep knowledge of ITSM (e.g., INC, PRB, CHG, ESC, etc.), ITOM (e.g., CMDB, ACC, CertDisc, etc.), and ITAM (e.g., SAM, HAM) to position myself as a trusted advisor.
-
-Proven ability to connect with decision-makers in industries (e.g., healthcare, enterprise services) through professional platforms, conferences, or referrals to secure long-term partnerships.
-
-Skilled in translating technical services (e.g., instance data replication, M365 integration) into business value, ensuring alignment with client goals and fostering trust.
-
-Financial acumen to balance market rates, project scope, and client budgets while offering flexible pricing models (e.g., hourly vs. project-based) to secure work.
-
-Hands-on experience with tools like Docker, Kubernetes, and ITSM/ITOM platforms to deliver scalable, secure, and compliant solutions (e.g., Archiving, Certificate Discovery, CMDB steering).
-
-Ability to coordinate cross-functional teams, manage timelines, and ensure successful delivery of complex projects (e.g., Employee Center Migrations, IDR for global instances).
-
-Quick thinking to address challenges like data replication gaps, integration hurdles, or user support needs for 30+ users, while maintaining system reliability.
-
-Strong customer service skills to provide ongoing support, troubleshoot issues, and retain clients (e.g., maintaining 30+ user satisfaction through proactive documentation and on-call maintenance).
diff --git a/src/content/work/trimedx.md b/src/content/work/trimedx.md
deleted file mode 100644
index 4076a5d..0000000
--- a/src/content/work/trimedx.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-company: "TriMedx"
-role: "Senior Software Engineer"
-dateStart: "09/01/2017"
-dateEnd: "07/01/2019"
----
-
-Experienced software engineer with focus on delivering fast, elegant code along with delightful user interfaces.
-
-Proficient in web technologies including JavaScript, HTML, CSS, React, AngularJS, and Angular.
-
-Strong background in developing marketing and ecommerce websites to complex enterprise applications.
-
-Dedicated to creating functional and aesthetically pleasing digital solutions.
diff --git a/src/content/work/zulily.md b/src/content/work/zulily.md
deleted file mode 100644
index bd91951..0000000
--- a/src/content/work/zulily.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-company: "zulily"
-role: "Technical Change Manager"
-dateStart: "10/01/2014"
-dateEnd: "06/01/2016"
----
-
-Designed and maintained internal tools for Fulfillment Center (FC) Operations, including:
-
-Weekly performance monitoring systems with actionable feedback for employee development and recognition.
-Employee recognition program to incentivize performance.
-Supplies inventory management system (e.g., Corrugated Boxes, Tape, Bubble Wrap) for tracking usage and movement.
-Employee kiosks for Overtime sign-ups, Voluntary-Time-Off, Department Transfers, and peer recognition.
-Dock Management System to streamline trailer tracking for transportation vendors.
-
-Tested and approved deployments of Fulfillment Center Systems (FCS) tools for fulfillment tasks (e.g., Receive, Stow, Pick, Pack).
-
-Documented and prioritized feature requests, improvements, and bug fixes from FC Operations, managing Agile sprints with weekly and biweekly check-ins to ensure project alignment.
-
-Led operational process improvements to enhance efficiency, scalability, and overall FC operations performance.
diff --git a/src/layouts/ArticleBottomLayout.astro b/src/layouts/ArticleBottomLayout.astro
index 096281d..9c413c4 100644
--- a/src/layouts/ArticleBottomLayout.astro
+++ b/src/layouts/ArticleBottomLayout.astro
@@ -4,14 +4,14 @@ import { formatDate, readingTime } from "@lib/utils"
import { getBlogPosts, getProjects } from "@lib/appwrite-service"
type Props = {
- entry: BlogPost | Project
+ entry: BlogPost | Project | any
}
const { entry } = Astro.props
-const collection = entry.$collectionId
+const collection = entry.$collectionId === process.env.VITE_APPWRITE_BLOG_COLLECTION_ID ? 'blog' : 'projects'
// Get the content from the entry
-const content = entry.content
+const content = entry.contentHtml
// Fetch all documents for navigation
let prevEntry = null
@@ -51,9 +51,7 @@ if (collection === "blog") {
---
-
- {content}
-
+
{prevEntry && (
diff --git a/src/layouts/ArticleTopLayout.astro b/src/layouts/ArticleTopLayout.astro
index c57b4f8..ad22831 100644
--- a/src/layouts/ArticleTopLayout.astro
+++ b/src/layouts/ArticleTopLayout.astro
@@ -1,16 +1,16 @@
---
-import type { BlogPost, Project } from "@types/appwrite"
+import type { BlogPost, Project } from "@lib/appwrite-service"
import { formatDate, readingTime } from "@lib/utils"
type Props = {
- entry: BlogPost | Project
+ entry: BlogPost | Project | any
}
const { entry } = Astro.props
const { title, summary, date } = entry
const demoUrl = "demoUrl" in entry ? entry.demoUrl : null
const repoUrl = "repoUrl" in entry ? entry.repoUrl : null
-const collection = entry.$collectionId
+const collection = entry.$collectionId === process.env.VITE_APPWRITE_BLOG_COLLECTION_ID ? 'blog' : 'projects'
const body = entry.content
---
@@ -22,7 +22,7 @@ const body = entry.content
- Back to {collection}
+ Back to {`${collection.charAt(0).toUpperCase()}${collection.slice(1)}`}
diff --git a/src/lib/appwrite-service.ts b/src/lib/appwrite-service.ts
index 532f5f9..a2c0130 100644
--- a/src/lib/appwrite-service.ts
+++ b/src/lib/appwrite-service.ts
@@ -1,6 +1,6 @@
-import { Client, Databases, Storage } from "appwrite";
-import type { Models } from "appwrite";
-import { databases, storage } from "./appwrite"; // Import the already initialized databases and storage instances
+import type { Models, } from "appwrite";
+import { Query } from "appwrite";
+import { databases, } from "./appwrite"; // Import the already initialized databases instances
import { remark } from "remark";
import remarkRehype from "remark-rehype";
import rehypeStringify from "rehype-stringify";
@@ -62,6 +62,8 @@ export type WorkExperience = Models.Document & {
company: string;
role: string;
dateStart: Date;
+ content: string;
+ contentHtml?: string; // HTML version of the content
dateEnd: Date | string;
};
@@ -73,6 +75,9 @@ export type LegalDocument = Models.Document & {
};
+// Define a unified type for search results
+export type SearchEntry = BlogPost | Project;
+
// Collection IDs - these should be configured based on your Appwrite setup
const BLOG_COLLECTION_ID = process.env.VITE_APPWRITE_BLOG_COLLECTION_ID || "blog";
const PROJECTS_COLLECTION_ID = process.env.VITE_APPWRITE_PROJECTS_COLLECTION_ID || "project";
@@ -118,7 +123,7 @@ export async function getBlogPostsPaginated(page: number, limit: number): Promis
BLOG_COLLECTION_ID,
[
// Only fetch published posts (not drafts)
- `draft != true`
+ Query.equal("draft", false)
]
);
@@ -164,19 +169,6 @@ export async function getBlogPostById(id: string): Promise
{
}
}
-
-/**
- * Get all available blog templates
- */
-export async function getBlogTemplates(): Promise> {
- // This is a static list of templates for now, but could be fetched from Appwrite
- return [
- { id: "default", name: "Default", slug: "default" },
- { id: "feature", name: "Feature", slug: "feature" },
- { id: "news", name: "News", slug: "news" }
- ];
-}
-
/**
* Get projects from Appwrite database
*/
@@ -214,7 +206,7 @@ export async function getProjectsPaginated(page: number, limit: number): Promise
PROJECTS_COLLECTION_ID,
[
// Only fetch published projects (not drafts)
- `draft != true`
+ Query.equal("draft", false)
]
);
@@ -270,8 +262,12 @@ export async function getWorkExperiences(): Promise {
DATABASE_ID,
WORK_COLLECTION_ID
);
-
- return response.documents;
+
+ // Convert markdown content to HTML for each project
+ return response.documents.map(work => ({
+ ...work,
+ contentHtml: convertMarkdownToHTML(work.content)
+ }));
} catch (error) {
console.error("Error fetching work experiences:", error);
throw new Error("Failed to fetch work experiences");
@@ -296,359 +292,57 @@ export async function getLegalDocuments(): Promise {
}
/**
- * Create a new blog post
+ * Perform a search across blog posts and projects using Appwrite SDK
*/
-export async function createBlogPost(postData: Omit): Promise {
+export async function searchContent(query: string): Promise<{ posts: BlogPost[], projects: Project[] }> {
try {
- // Validate required fields
- if (!postData.title || !postData.content) {
- throw new Error("Title and content are required for blog posts");
- }
-
- const response = await databases.createDocument(
+ // Search in blog collection for the query term
+ const blogResponse = await databases.listDocuments(
DATABASE_ID,
BLOG_COLLECTION_ID,
- "unique()",
- postData
+ [
+ Query.equal("draft", false),
+ Query.search("title", query),
+ Query.search("summary", query),
+ Query.search("content", query)
+ ]
);
- // Convert markdown content to HTML
- return {
- ...response,
- contentHtml: convertMarkdownToHTML(response.content)
- };
- } catch (error) {
- console.error("Error creating blog post:", error);
- throw new Error("Failed to create blog post");
- }
-}
-
-
-/**
- * Update an existing blog post
- */
-export async function updateBlogPost(id: string, postData: Partial): Promise {
- try {
- // Validate that we have data to update
- if (!postData || Object.keys(postData).length === 0) {
- throw new Error("No data provided for update");
- }
-
- const response = await databases.updateDocument(
- DATABASE_ID,
- BLOG_COLLECTION_ID,
- id,
- postData
- );
-
- // Convert markdown content to HTML if content was updated
- if (postData.content !== undefined) {
- return {
- ...response,
- contentHtml: convertMarkdownToHTML(response.content)
- };
- }
-
- return response;
- } catch (error) {
- console.error("Error updating blog post:", error);
- throw new Error("Failed to update blog post");
- }
-}
-
-
-/**
- * Delete a blog post
- */
-export async function deleteBlogPost(id: string): Promise {
- try {
- await databases.deleteDocument(
- DATABASE_ID,
- BLOG_COLLECTION_ID,
- id
- );
- } catch (error) {
- console.error("Error deleting blog post:", error);
- throw new Error("Failed to delete blog post");
- }
-}
-
-/**
- * Upload a blog post image
- */
-export async function uploadBlogImage(file: File): Promise {
- try {
- // Validate file type
- if (!file.type.startsWith('image/')) {
- throw new Error("Only image files are allowed for blog images");
- }
-
- // Validate file size (max 5MB)
- if (file.size > 5 * 1024 * 1024) {
- throw new Error("Image file size exceeds 5MB limit");
- }
-
- const response = await storage.createFile(
- "blog-images", // bucket ID
- "unique()",
- file
- );
-
- return response.$id;
- } catch (error) {
- console.error("Error uploading blog image:", error);
- throw new Error("Failed to upload blog image");
- }
-}
-
-/**
- * Create a new project
- */
-export async function createProject(projectData: Omit): Promise {
- try {
- // Validate required fields
- if (!projectData.title || !projectData.content) {
- throw new Error("Title and content are required for projects");
- }
-
- const response = await databases.createDocument(
+ // Search in projects collection for the query term
+ const projectResponse = await databases.listDocuments(
DATABASE_ID,
PROJECTS_COLLECTION_ID,
- "unique()",
- projectData
+ [
+ Query.equal("draft", false),
+ Query.search("title", query),
+ Query.search("summary", query),
+ Query.search("content", query)
+ ]
);
- // Convert markdown content to HTML
+ // Convert markdown content to HTML for blog posts
+ const blogPostsWithHtml = blogResponse.documents.map(post => ({
+ ...post,
+ contentHtml: convertMarkdownToHTML(post.content)
+ }));
+
+ // Convert markdown content to HTML for projects
+ const projectsWithHtml = projectResponse.documents.map(project => ({
+ ...project,
+ contentHtml: convertMarkdownToHTML(project.content)
+ }));
+
return {
- ...response,
- contentHtml: convertMarkdownToHTML(response.content)
+ posts: blogPostsWithHtml,
+ projects: projectsWithHtml
};
} catch (error) {
- console.error("Error creating project:", error);
- throw new Error("Failed to create project");
+ console.error("Error performing search:", error);
+ throw new Error("Failed to perform search");
}
}
-/**
- * Update an existing project
- */
-export async function updateProject(id: string, projectData: Partial): Promise {
- try {
- // Validate that we have data to update
- if (!projectData || Object.keys(projectData).length === 0) {
- throw new Error("No data provided for update");
- }
-
- const response = await databases.updateDocument(
- DATABASE_ID,
- PROJECTS_COLLECTION_ID,
- id,
- projectData
- );
-
- // Convert markdown content to HTML if content was updated
- if (projectData.content !== undefined) {
- return {
- ...response,
- contentHtml: convertMarkdownToHTML(response.content)
- };
- }
-
- return response;
- } catch (error) {
- console.error("Error updating project:", error);
- throw new Error("Failed to update project");
- }
-}
-
-
-/**
- * Delete a project
- */
-export async function deleteProject(id: string): Promise {
- try {
- await databases.deleteDocument(
- DATABASE_ID,
- PROJECTS_COLLECTION_ID,
- id
- );
- } catch (error) {
- console.error("Error deleting project:", error);
- throw new Error("Failed to delete project");
- }
-}
-
-/**
- * Upload a project image
- */
-export async function uploadProjectImage(file: File): Promise {
- try {
- // Validate file type
- if (!file.type.startsWith('image/')) {
- throw new Error("Only image files are allowed for project images");
- }
-
- // Validate file size (max 5MB)
- if (file.size > 5 * 1024 * 1024) {
- throw new Error("Image file size exceeds 5MB limit");
- }
-
- const response = await storage.createFile(
- "project-images", // bucket ID
- "unique()",
- file
- );
-
- return response.$id;
- } catch (error) {
- console.error("Error uploading project image:", error);
- throw new Error("Failed to upload project image");
- }
-}
-
-/**
- * Create a new work experience
- */
-export async function createWorkExperience(workData: Omit): Promise {
- try {
- // Validate required fields
- if (!workData.company || !workData.role) {
- throw new Error("Company and role are required for work experiences");
- }
-
- const response = await databases.createDocument(
- DATABASE_ID,
- WORK_COLLECTION_ID,
- "unique()",
- workData
- );
-
- return response;
- } catch (error) {
- console.error("Error creating work experience:", error);
- throw new Error("Failed to create work experience");
- }
-}
-
-/**
- * Update an existing work experience
- */
-export async function updateWorkExperience(id: string, workData: Partial): Promise {
- try {
- // Validate that we have data to update
- if (!workData || Object.keys(workData).length === 0) {
- throw new Error("No data provided for update");
- }
-
- const response = await databases.updateDocument(
- DATABASE_ID,
- WORK_COLLECTION_ID,
- id,
- workData
- );
-
- return response;
- } catch (error) {
- console.error("Error updating work experience:", error);
- throw new Error("Failed to update work experience");
- }
-}
-
-/**
- * Delete a work experience
- */
-export async function deleteWorkExperience(id: string): Promise {
- try {
- await databases.deleteDocument(
- DATABASE_ID,
- WORK_COLLECTION_ID,
- id
- );
- } catch (error) {
- console.error("Error deleting work experience:", error);
- throw new Error("Failed to delete work experience");
- }
-}
-
-/**
- * Create a new legal document
- */
-export async function createLegalDocument(docData: Omit): Promise {
- try {
- // Validate required fields
- if (!docData.title || !docData.content) {
- throw new Error("Title and content are required for legal documents");
- }
-
- const response = await databases.createDocument(
- DATABASE_ID,
- LEGAL_COLLECTION_ID,
- "unique()",
- docData
- );
-
- // Convert markdown content to HTML
- return {
- ...response,
- contentHtml: convertMarkdownToHTML(response.content)
- };
- } catch (error) {
- console.error("Error creating legal document:", error);
- throw new Error("Failed to create legal document");
- }
-}
-
-
-/**
- * Update an existing legal document
- */
-export async function updateLegalDocument(id: string, docData: Partial): Promise {
- try {
- // Validate that we have data to update
- if (!docData || Object.keys(docData).length === 0) {
- throw new Error("No data provided for update");
- }
-
- const response = await databases.updateDocument(
- DATABASE_ID,
- LEGAL_COLLECTION_ID,
- id,
- docData
- );
-
- // Convert markdown content to HTML if content was updated
- if (docData.content !== undefined) {
- return {
- ...response,
- contentHtml: convertMarkdownToHTML(response.content)
- };
- }
-
- return response;
- } catch (error) {
- console.error("Error updating legal document:", error);
- throw new Error("Failed to update legal document");
- }
-}
-
-
-/**
- * Delete a legal document
- */
-export async function deleteLegalDocument(id: string): Promise {
- try {
- await databases.deleteDocument(
- DATABASE_ID,
- LEGAL_COLLECTION_ID,
- id
- );
- } catch (error) {
- console.error("Error deleting legal document:", error);
- throw new Error("Failed to delete legal document");
- }
-}
-
/**
* Get a public URL for a file
*/
diff --git a/src/lib/appwrite.ts b/src/lib/appwrite.ts
index 448cfff..f641eed 100644
--- a/src/lib/appwrite.ts
+++ b/src/lib/appwrite.ts
@@ -1,4 +1,4 @@
-import { Client, Storage, Databases } from "appwrite";
+import { Client, Databases } from "appwrite";
const client = new Client();
@@ -29,5 +29,4 @@ if (typeof window === 'undefined') {
.setProject(projectId); // Your Project ID
}
-export const storage = new Storage(client);
export const databases = new Databases(client);
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 5af887d..8625184 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -81,26 +81,26 @@ const stack = [
-
+
Hello, I am Quinn Marvin
-
+
CEO / Creator / Innovator
-
+
Passionate about spaghetti, noodles and all things tech.
-
+
Running 2 Unraid servers with Docker container ecosystem
-
+
Supporting PostgreSQL, MariaDB, MySQL, MongoDB, Redis, and Minio
@@ -109,11 +109,11 @@ const stack = [
-
+
-
+
Hello! I'm Quinn Marvin, a passionate CEO/Creator/Innovator with an unrelenting love for spaghetti, noodles, and all things tech.
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.
@@ -140,7 +140,7 @@ const stack = [
{posts.map((post) => (
-
+
))}
@@ -189,7 +189,7 @@ const stack = [
{projects.map((project) => (
-
+
))}
diff --git a/src/pages/projects/[...slug].astro b/src/pages/projects/[...slug].astro
index d5bc224..90d3fe3 100644
--- a/src/pages/projects/[...slug].astro
+++ b/src/pages/projects/[...slug].astro
@@ -7,7 +7,7 @@ import ArticleBottomLayout from "@layouts/ArticleBottomLayout.astro"
import { getProjectById } from "@lib/appwrite-service"
// Get the requested project
-const slug = Astro.params.slug
+const slug = Astro.params.slug || ''
const project = await getProjectById(slug)
.then(projectData => {
if (projectData) {
diff --git a/src/pages/projects/index.astro b/src/pages/projects/index.astro
index f5df767..8ed5283 100644
--- a/src/pages/projects/index.astro
+++ b/src/pages/projects/index.astro
@@ -8,7 +8,7 @@ import { getProjectsPaginated } from "@lib/appwrite-service"
// Get page and limit from URL parameters
-const url = new URL(typeof window !== 'undefined' ? window.location.href : 'http://localhost')
+const url = new URL(typeof window !== 'undefined' ? window.location.href : 'https://home.spaghet.io')
const pageParam = url.searchParams.get('page') || '1'
const limitParam = url.searchParams.get('limit') || '10'
const page = parseInt(pageParam)
@@ -17,6 +17,7 @@ const limit = parseInt(limitParam)
// Fetch paginated projects
const { posts, total } = await getProjectsPaginated(page, limit)
.then(result => {
+ console.log(result)
return result;
})
.catch(error => {
diff --git a/src/pages/search/index.astro b/src/pages/search/index.astro
index a9657d6..cf5e816 100644
--- a/src/pages/search/index.astro
+++ b/src/pages/search/index.astro
@@ -1,62 +1,12 @@
---
-import { getBlogPosts, getProjects } from "@lib/appwrite-service"
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"
-import type { BlogPost, Project } from "@lib/appwrite-service"
-// Get all blog posts and projects from Appwrite
-const posts = (await getBlogPosts())
- .filter(post => !post.draft)
-
-const projects = (await getProjects())
- .filter(project => !project.draft)
-
-// Create unified data array for search - need to convert to proper format expected by Search component
-const searchData = [
- ...posts.map(post => ({
- id: post.$id,
- slug: post.$id,
- body: post.contentHtml || post.content,
- collection: "blog",
- data: {
- title: post.title,
- summary: post.summary,
- date: new Date(post.date),
- tags: post.tags,
- draft: post.draft,
- content: post.contentHtml || post.content
- },
- render: async () => ({
- Content: () => {},
- headings: [],
- remarkPluginFrontmatter: {}
- })
- })),
- ...projects.map(project => ({
- id: project.$id,
- slug: project.$id,
- body: project.contentHtml || project.content,
- collection: "projects",
- data: {
- title: project.title,
- summary: project.summary,
- date: new Date(project.date),
- tags: project.tags,
- draft: project.draft,
- demoUrl: project.demoUrl,
- repoUrl: project.repoUrl,
- content: project.contentHtml || project.content
- },
- render: async () => ({
- Content: () => {},
- headings: [],
- remarkPluginFrontmatter: {}
- })
- }))
-]
+// The search page now uses client-side search with Appwrite SDK directly
+// No need to pre-load all data as the Search component handles this via API calls
---
@@ -67,7 +17,7 @@ const searchData = [
-
+
diff --git a/src/pages/work/index.astro b/src/pages/work/index.astro
index 6743e6c..d64a083 100644
--- a/src/pages/work/index.astro
+++ b/src/pages/work/index.astro
@@ -3,27 +3,15 @@ import PageLayout from "@layouts/PageLayout.astro"
import TopLayout from "@layouts/TopLayout.astro"
import BottomLayout from "@layouts/BottomLayout.astro"
import { WORK } from "@consts"
-import { getWorkExperiences } from "@lib/appwrite-service"
+import { getWorkExperiences, type WorkExperience } from "@lib/appwrite-service"
-// Helper function to map Appwrite document to compatible format for work page
-function mapAppwriteWorkToEntry(work: any) {
- return {
- id: work.$id,
- slug: work.$id, // Using ID as slug since we don't have a proper slug field
- data: {
- company: work.company,
- role: work.role,
- dateStart: new Date(work.dateStart),
- dateEnd: work.dateEnd,
- content: work.content // This will be rendered in the component
- },
- body: work.content
- };
+type Props = {
+ entry: WorkExperience
}
const work = await getWorkExperiences()
.then(workList => {
- return workList.map(mapAppwriteWorkToEntry);
+ return workList;
})
.catch(error => {
console.error("Error fetching work experiences:", error);
@@ -51,20 +39,18 @@ function formatWorkDate(input: Date | string) {
{
- work.map((entry) => (
+ work.sort((a, b) => a.dateEnd > b.dateEnd ? -1 : b.dateEnd > a.dateEnd ? 1 : 0).map((entry) => (
- {formatWorkDate(entry.data.dateStart)} - {formatWorkDate(entry.data.dateEnd)}
+ {formatWorkDate(entry.dateStart)} - {formatWorkDate(entry.dateEnd)}
- {entry.data.company}
+ {entry.company}
- {entry.data.role}
+ {entry.role}
-
- {entry.body}
-
+
))
}