The flagship showcase and home of the PHCDevworks ecosystem. It acts as the "Consciousness," presenting the vision, value proposition, and real-world application of the Spectre platform.
π€ Contributing Guide | π Changelog | π‘οΈ Security Policy
www.phcdevworks.com is the flagship showcase and home of the PHCDevworks ecosystem. Built with Astro and Tailwind CSS 4, it demonstrates the "Premium Design" and "Rich Aesthetics" possible within the Spectre platform.
This package is the Showcase & Vision Layer. Built with Astro and Tailwind CSS 4, it demonstrates the "Premium Design" and "Rich Aesthetics" possible within the Spectre ecosystem.
- π Flagship Showcase: High-fidelity demonstration of Spectre design principles.
- π Performance First: Astro-powered static generation with sub-second load times.
- π¨ Modern Aesthetics: Leverages Tailwind CSS 4 for state-of-the-art styling.
- π Edge Delivery: Optimized for global deployment on Cloudflare Pages.
Built with:
- β Astro for static site generation with instant performance
- β TypeScript for type-safe component development
- β Tailwind CSS 4 with modern utility-first styling
- β Cloudflare deployment for global edge delivery
- β Component-based architecture for maintainability
# Clone the repository
git clone https://github.com/phcdevworks/www.phcdevworks.com.git
cd www.phcdevworks.com
# Install dependencies
npm installnpm run devThis starts the Astro dev server at http://localhost:4321 with hot module replacement (HMR) enabled. Edit files in src/ and see changes instantly.
npm run buildThis compiles the site to static HTML, CSS, and JavaScript in the dist/ directory, optimized for deployment.
npm run previewPreview the production build locally before deployment.
| Folder | Responsibility |
|---|---|
src/components/ |
Reusable Astro components (Hero, Cards, Sections, etc.) |
src/components/ui/ |
Shared UI component library |
src/layouts/ |
Page layouts (BaseLayout, Header, Footer) |
src/pages/ |
Website pages and routes (file-based routing) |
src/styles/ |
Global styles and Tailwind configuration |
public/ |
Static assets (robots.txt, redirects, etc.) |
Reusable components following Spectre UI patterns:
---
import { Button, Card, Hero, Section } from '@/components/ui'
---
<Hero title="Build Better" subtitle="With Spectre" />
<Section>
<Card title="Feature">
<p>Description</p>
</Card>
</Section>Page-specific components organized by route:
src/pages/
βββ index.astro # Homepage
βββ spectre-platform/
β βββ index.astro # Platform landing page
β βββ components/ # Platform-specific components
βββ wordpress/
βββ index.astro # WordPress landing page
βββ components/ # WordPress-specific components
This site uses Tailwind CSS 4 with utility-first approach:
<div class="container mx-auto px-4">
<h1 class="text-4xl font-bold text-slate-900">Modern Web Development</h1>
</div>Customize in tailwind.config.ts.
Optimized for Cloudflare Pages:
npm run buildThe dist/ folder contains the production build ready for deployment. The site is configured for Cloudflare in astro.config.mjs.
Astro generates static HTML for maximum performance and SEO. Dynamic features are progressively enhanced with minimal JavaScript.
All UI elements are built as reusable Astro components, making the site maintainable and consistent.
TypeScript ensures component props and data structures are validated at build time.
Tailwind CSS 4 provides consistent, maintainable styling without writing custom CSS.
Astro builds. Cloudflare hosts. Components stay clean.
- Build config β
astro.config.mjsortailwind.config.ts - Components β
src/components/ - Pages β
src/pages/ - Styles β Tailwind utilities
- Spectre Tokens - Design token foundation
- Spectre UI - Core component library
- Spectre UI Astro - Astro integration for Spectre UI
- Spectre Shell WordPress - WordPress theme template
- Spectre Blocks - WordPress block library
- www.phcdevworks.com - Official website (this project)
Spectre is built on a non-negotiable hierarchy to prevent style leakage and duplication:
- Layer 1: DNA (@phcdevworks/spectre-tokens) β Design values.
- Layer 2: Blueprint (@phcdevworks/spectre-ui) β Structure & Recipes.
- Layer 8: Consciousness (This Package) β Showcase & Application.
The Golden Rule: The "Consciousness" translates the underlying architecture into a public-facing vision.
Issues and pull requests are welcome! For website improvements, test responsiveness and build output.
For detailed contribution guidelines, see CONTRIBUTING.md.
MIT Β© PHCDevworks β See LICENSE for details.