refactor: Reorganize project structure and update dependencies

- Removed blog, project, and work content files
- Updated package dependencies including npm and removed license metadata
- Refactored component layouts and page routes
- Modified appwrite service for data operations
This commit is contained in:
Spaghet committed 2025-08-22 00:08:32 -04:00
1 parent 7997eccb12
commit 6ab3254384
51 files changed
+2951 -3221

No files matched your search

+2795 -1098
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -27,6 +27,7 @@
"clsx": "^2.1.0",
"fuse.js": "^7.0.0",
"notenv": "^2.0.3",
"npm": "^11.5.2",
"rehype-stringify": "^10.0.1",
"remark": "^15.0.1",
"remark-rehype": "^11.1.2",
+8 -7
View File
@@ -3,33 +3,34 @@ import type { BlogPost, Project } from "@lib/appwrite-service"
type Props = {
entry: BlogPost | Project | any
collection?: string
pill?: boolean
}
export default function ArrowCard({entry, pill}: Props) {
export default function ArrowCard({entry, pill, collection}: Props) {
return (
<a href={`/${entry.$collectionId === 'blog' ? 'blog' : 'projects'}/${entry.$id}`} class="group p-4 gap-3 flex items-center border rounded-lg hover:bg-black/5 hover:dark:bg-white/10 border-black/15 dark:border-white/20 transition-colors duration-300 ease-in-out">
<a href={`/${collection === 'blog' ? 'blog' : 'projects'}/${entry.$id}`} class="group p-4 gap-3 flex items-center border border-spaghetti-brown rounded-lg hover:bg-black/5 hover:dark:bg-white/10 border-black/15 dark:border-white/20 transition-colors duration-300 ease-in-out">
<div class="w-full group-hover:text-black group-hover:dark:text-white blend">
<div class="flex flex-wrap items-center gap-2">
{pill &&
<div class="text-sm capitalize px-2 py-0.5 rounded-full border border-black/15 dark:border-white/20 bg-spaghetti-yellow/20 dark:bg-spaghetti-yellow/20 text-spaghetti-brown">
{entry.$collectionId === "blog" ? "post" : "project"}
<div class="text-sm capitalize px-2 py-0.5 rounded-full border border-black/15 dark:border-white/20 bg-spaghetti-yellow/20 dark:bg-spaghetti-yellow/20 dark:text-spaghetti-brown">
{collection === "blog" ? "post" : "project"}
</div>
}
<div class="text-sm uppercase">
{formatDate(entry.date)}
</div>
</div>
<div class="font-semibold mt-3 text-spaghetti-brown">
<div class="font-semibold mt-3 dark:text-spaghetti-brown">
{entry.title}
</div>
<div class="text-sm line-clamp-2 text-spaghetti-brown">
<div class="text-sm line-clamp-2 dark:text-spaghetti-brown">
{entry.summary}
</div>
<ul class="flex flex-wrap mt-2 gap-1">
{entry.tags.map((tag:string) => (
<li class="text-xs uppercase py-0.5 px-1 rounded bg-spaghetti-yellow/20 dark:bg-spaghetti-yellow/20 text-spaghetti-brown">
<li class="text-xs uppercase py-0.5 px-1 rounded bg-spaghetti-yellow/20 dark:bg-spaghetti-yellow/20 dark:text-spaghetti-brown">
{tag}
</li>
))}
+4 -38
View File
@@ -6,28 +6,22 @@ import { cn } from "@lib/utils"
type Props = {
tags: string[]
data: CollectionEntry<"blog">[] // Simplified to just Astro content for now
templates?: string[] // Add template prop
}
export default function Blog({ data, tags, templates = ["default"] }: Props) {
export default function Blog({ data, tags }: Props) {
const [filter, setFilter] = createSignal(new Set<string>())
const [selectedTemplate, setSelectedTemplate] = createSignal<string>("all") // Add template selection
const [posts, setPosts] = createSignal<CollectionEntry<"blog">[]>([])
createEffect(() => {
setPosts(data.filter((entry) => {
// Filter by tags
const tagMatch = Array.from(filter()).every((value) =>
entry.data.tags.some((tag:string) =>
entry.tags.some((tag:string) =>
tag.toLowerCase() === String(value).toLowerCase()
)
)
// Filter by template if a specific template is selected
const templateMatch = selectedTemplate() === "all" ||
(entry.data.template && entry.data.template === selectedTemplate())
return tagMatch && templateMatch
return tagMatch
}))
})
@@ -45,34 +39,6 @@ export default function Blog({ data, tags, templates = ["default"] }: Props) {
<div class="col-span-3 sm:col-span-1">
<div class="sticky top-24">
<div class="text-sm font-semibold uppercase mb-2 text-spaghetti-brown">Filter</div>
{/* Template Filter */}
<div class="mb-4">
<div class="text-xs uppercase mb-1 text-spaghetti-brown/70">Template</div>
<ul class="flex flex-wrap sm:flex-col gap-1.5">
<li>
<button
onClick={() => 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
</button>
</li>
<For each={templates}>
{(template) => (
<li>
<button
onClick={() => 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)}
</button>
</li>
)}
</For>
</ul>
</div>
{/* Tag Filter */}
<div class="mb-2">
<div class="text-xs uppercase mb-1 text-spaghetti-brown/70">Tags</div>
@@ -102,7 +68,7 @@ export default function Blog({ data, tags, templates = ["default"] }: Props) {
<ul class="flex flex-col gap-3">
{posts().map((post) => (
<li>
<ArrowCard entry={post} />
<ArrowCard entry={post} collection={'blog'} />
</li>
))}
</ul>
+1 -1
View File
@@ -1,7 +1,7 @@
---
import { SITE, SOCIALS } from "@consts"
import Container from "@components/Container.astro"
import { storage } from "@lib/appwrite"
// Remove unused storage import
---
<footer class="relative bg-white dark:bg-black">
-1
View File
@@ -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"
+2 -2
View File
@@ -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) {
<ul class="flex flex-col gap-3">
{projects().map((project) => (
<li>
<ArrowCard entry={project} />
<ArrowCard entry={project} collection={'projects'} />
</li>
))}
</ul>
+55 -30
View File
@@ -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<SearchEntry[]>([])
const [results, setResults] = createSignal<{ posts: BlogPost[], projects: Project[] }>({ posts: [], projects: [] })
const [loading, setLoading] = createSignal(false)
const [error, setError] = createSignal<string | null>(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) {
<use href={`/ui.svg#search`}/>
</svg>
</div>
{(query().length >= 2 && results().length >= 1) && (
{error() && <div class="mt-4 text-red-500">{error()}</div>}
{loading() && <div class="mt-4">Searching...</div>}
{(query().length >= 2 && (results().posts.length > 0 || results().projects.length > 0)) && (
<div class="mt-12">
<div class="text-sm uppercase mb-2">
Found {results().length} results for {`'${query()}'`}
Found {results().posts.length + results().projects.length} results for {`'${query()}'`}
</div>
<div class="flex flex-col gap-6 mt-4">
{results().posts.length > 0 && (
<div class="border-t border-spaghetti-yellow/30 pt-4">
<div class="text-sm font-bold mb-2">Blog Posts</div>
<ul class="flex flex-col gap-3">
{results().posts.map(result => (
<li>
<ArrowCard entry={result} pill={true} />
</li>
))}
</ul>
</div>
)}
{results().projects.length > 0 && (
<div class="border-t border-spaghetti-yellow/30 pt-4">
<div class="text-sm font-bold mb-2">Projects</div>
<ul class="flex flex-col gap-3">
{results().projects.map((result, index) => (
<li>
<ArrowCard entry={result} pill={true} />
</li>
))}
</ul>
</div>
)}
</div>
<ul class="flex flex-col gap-3">
{results().map(result => (
<li>
<ArrowCard entry={result} pill={true} />
</li>
))}
</ul>
</div>
)}
</div>
@@ -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.
@@ -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.
@@ -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.
@@ -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 <head>
│ │ └── 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
```
@@ -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 |
@@ -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.
@@ -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
![blog placeholder](/open-graph.jpg)
```
![blog placeholder](/open-graph.jpg)
Relative Image in the same folder as the markdown
```markdown
![Test Relative Image](./spongebob.png)
```
![Test Relative Image](./spongebob.png)
## 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.<br>
> — <cite>Rob Pike[^1]</cite>
```
#### Output
> Don't communicate by sharing memory, share memory by communicating.<br>
> — <cite>Rob Pike[^1]</cite>
[^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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
````
Output
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
## 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
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
```
#### Output
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

@@ -1,16 +0,0 @@
---
type Props = {
name: string
}
const { name } = Astro.props
---
<div class="border p-4 bg-yellow-100 text-black">
<div>
Hello,
<span class="font-semibold">
{name}!!!
</span>
</div>
<slot/>
</div>
@@ -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"
<MyComponent name="You">
Welcome to MDX
</MyComponent>
```
import MyComponent from "./MyComponent.astro"
<MyComponent name="You">
Welcome to MDX
</MyComponent>
## An interactive Solid Js component
```
// Imported from components directory (src/components)
import MyComponent from "@components/Counter"
// Don't forget the astro client:load directive
<Counter client:load />
```
import Counter from "@components/Counter"
<Counter client:load />
<br/>
<br/>
<br/>
@@ -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
<!-- public/social.svg -->
<svg xmlns="http://www.w3.org/2000/svg">
<defs>
<symbol id="github" viewBox="0 0 496 512">
<path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/>
</symbol>
</defs>
</svg>
```
@@ -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.
@@ -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.
-47
View File
@@ -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 }
-55
View File
@@ -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.
-46
View File
@@ -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.
-25
View File
@@ -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.
@@ -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.
-26
View File
@@ -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.
-32
View File
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
-16
View File
@@ -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.
-14
View File
@@ -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.
-22
View File
@@ -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.
-14
View File
@@ -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.
-8
View File
@@ -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.
-18
View File
@@ -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.
-22
View File
@@ -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).
-14
View File
@@ -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.
-20
View File
@@ -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.
+4 -6
View File
@@ -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") {
---
<div>
<article>
{content}
</article>
<article set:html={content} />
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
{prevEntry && (
<a href={`/${collection}/${prevEntry.$id}`} class="group p-4 gap-3 flex items-center border rounded-lg hover:bg-black/5 hover:dark:bg-white/10 border-black/15 dark:border-white/20 blend">
+4 -4
View File
@@ -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
<polyline points="12 19 5 12 12 5" class="translate-x-1 group-hover:translate-x-0 transition-all duration-300 ease-in-out" />
</svg>
<div class="w-full group-hover:text-black group-hover:dark:text-white transition-colors duration-300 ease-in-out">
Back to {collection}
Back to {`${collection.charAt(0).toUpperCase()}${collection.slice(1)}`}
</div>
</a>
<div class="flex flex-wrap text-sm uppercase mt-12 gap-3 opacity-75">
+50 -356
View File
@@ -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<BlogPost> {
}
}
/**
* Get all available blog templates
*/
export async function getBlogTemplates(): Promise<Array<{ id: string; name: string; slug: string }>> {
// 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<WorkExperience[]> {
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<LegalDocument[]> {
}
/**
* Create a new blog post
* Perform a search across blog posts and projects using Appwrite SDK
*/
export async function createBlogPost(postData: Omit<BlogPost, 'id'>): Promise<BlogPost> {
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<BlogPost>(
// Search in blog collection for the query term
const blogResponse = await databases.listDocuments<BlogPost>(
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<BlogPost>): Promise<BlogPost> {
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<BlogPost>(
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<void> {
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<string> {
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<Project, 'id'>): Promise<Project> {
try {
// Validate required fields
if (!projectData.title || !projectData.content) {
throw new Error("Title and content are required for projects");
}
const response = await databases.createDocument<Project>(
// Search in projects collection for the query term
const projectResponse = await databases.listDocuments<Project>(
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<Project>): Promise<Project> {
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<Project>(
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<void> {
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<string> {
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<WorkExperience, 'id'>): Promise<WorkExperience> {
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<WorkExperience>(
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<WorkExperience>): Promise<WorkExperience> {
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<WorkExperience>(
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<void> {
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<LegalDocument, 'id'>): Promise<LegalDocument> {
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<LegalDocument>(
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<LegalDocument>): Promise<LegalDocument> {
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<LegalDocument>(
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<void> {
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
*/
+1 -2
View File
@@ -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);
+11 -11
View File
@@ -81,26 +81,26 @@ const stack = [
<div class='relative w-full h-full flex items-center justify-center'>
<div class='p-5 text-center'>
<img src='/api/assets/689d27a400194d326f69' alt="Quinn Marvin" class="rounded-full w-32 h-32 mx-auto mb-4 border-4 border-spaghetti-red" />
<p class='animated text-lg md:text-xl lg:text-2xl font-semibold opacity-75 text-spaghetti-brown'>
<p class='animated text-lg md:text-xl lg:text-2xl font-semibold opacity-75 dark:text-spaghetti-brown'>
Hello, I am Quinn Marvin
</p>
<p class='animated text-2xl md:text-3xl lg:text-4xl font-bold uppercase text-spaghetti-brown'>
<p class='animated text-2xl md:text-3xl lg:text-4xl font-bold uppercase dark:text-spaghetti-brown'>
CEO / Creator / Innovator
</p>
<p class='animated text-sm md:text-base lg:text-lg opacity-75 text-spaghetti-brown'>
<p class='animated text-sm md:text-base lg:text-lg opacity-75 dark:text-spaghetti-brown'>
Passionate about spaghetti, noodles and all things tech.
</p>
<p class='animated text-sm md:text-base lg:text-lg opacity-75 mt-2 text-spaghetti-brown'>
<p class='animated text-sm md:text-base lg:text-lg opacity-75 mt-2 dark:text-spaghetti-brown'>
Running 2 Unraid servers with Docker container ecosystem
</p>
<p class='animated text-sm md:text-base lg:text-lg opacity-75 mt-1 text-spaghetti-brown'>
<p class='animated text-sm md:text-base lg:text-lg opacity-75 mt-1 dark:text-spaghetti-brown'>
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-spaghetti-red dark:bg-spaghetti-red text-spaghetti-brown dark:text-spaghetti-brown hover:opacity-75 blend'>
<a href='/blog' class='py-2 px-4 rounded truncate text-xs md:text-sm lg:text-base bg-spaghetti-red dark:bg-spaghetti-red dark:text-spaghetti-brown 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-spaghetti-yellow/50 dark:border-spaghetti-yellow/50 hover:bg-spaghetti-yellow/20 hover:dark:bg-spaghetti-yellow/20 blend text-spaghetti-brown dark:text-spaghetti-brown'>
<a href='/work' class='py-2 px-4 truncate rounded text-xs md:text-sm lg:text-base border border-spaghetti-yellow/50 dark:border-spaghetti-yellow/50 hover:bg-spaghetti-yellow/20 hover:dark:bg-spaghetti-yellow/20 blend dark:text-spaghetti-brown'>
View my work
</a>
</div>
@@ -109,11 +109,11 @@ const stack = [
</div>
</section>
<div class="relative bg-white dark:bg-black">
<div class="relative bg-white dark:bg-black dark:text-spaghetti-brown">
<div class="mx-auto max-w-screen-sm p-5 space-y-24 pb-16">
<!-- About Section -->
<section class="animate">
<section class="animate dark:text-spaghetti-brown">
<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>
@@ -140,7 +140,7 @@ const stack = [
<ul class="space-y-4">
{posts.map((post) => (
<li>
<ArrowCard entry={post} />
<ArrowCard entry={post} collection={'blog'} />
</li>
))}
</ul>
@@ -189,7 +189,7 @@ const stack = [
<ul class="space-y-4">
{projects.map((project) => (
<li>
<ArrowCard entry={project} />
<ArrowCard entry={project} collection={'projects'} />
</li>
))}
</ul>
+1 -1
View File
@@ -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) {
+2 -1
View File
@@ -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 => {
+3 -53
View File
@@ -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
---
<PageLayout title={SEARCH.TITLE} description={SEARCH.DESCRIPTION}>
@@ -67,7 +17,7 @@ const searchData = [
</TopLayout>
<BottomLayout>
<div class="animate">
<Search client:load data={searchData}/>
<Search client:load/>
</div>
</BottomLayout>
</PageLayout>
+9 -23
View File
@@ -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) {
<BottomLayout>
<ul>
{
work.map((entry) => (
work.sort((a, b) => a.dateEnd > b.dateEnd ? -1 : b.dateEnd > a.dateEnd ? 1 : 0).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)}
{formatWorkDate(entry.dateStart)} - {formatWorkDate(entry.dateEnd)}
</div>
<div class="text-black dark:text-white font-semibold">
{entry.data.company}
{entry.company}
</div>
<div class="text-sm font-semibold">
{entry.data.role}
{entry.role}
</div>
<article class="prose dark:prose-invert">
{entry.body}
</article>
<article class="prose dark:prose-invert" set:html={entry.contentHtml}></article>
</li>
))
}