- Complete SvelteKit 2 + Svelte 5 template - Tailwind CSS styling with primary color customization - Pages: Home, About, Services, Contact - Contact form with D1 database backend - Placeholder system for site-specific values - Cloudflare adapter configuration Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
67 lines
1.7 KiB
Markdown
67 lines
1.7 KiB
Markdown
# For God so loved the world — John 3:16
|
|
|
|
This is a customer site for **{{BUSINESS_NAME_CHIRHO}}** hosted on perffection.com.
|
|
|
|
## Project Overview
|
|
|
|
This is a SvelteKit 2 site using:
|
|
- `@sveltejs/adapter-cloudflare` for Cloudflare Workers deployment
|
|
- Tailwind CSS for styling
|
|
- D1 Database for data storage
|
|
- KV for caching
|
|
|
|
## Key Files
|
|
|
|
- `src/routes/+page.svelte` - Home page
|
|
- `src/routes/about-fe/+page.svelte` - About page
|
|
- `src/routes/services-fe/+page.svelte` - Services page
|
|
- `src/routes/contact-fe/+page.svelte` - Contact page with form
|
|
- `src/routes/api-fe/contact-fe/+server.ts` - Contact form API endpoint
|
|
- `src/routes/+layout.svelte` - Global layout with header/footer
|
|
- `src/app.css` - Global styles and CSS variables
|
|
|
|
## Naming Convention
|
|
|
|
All project identifiers use the `_chirho` or `Chirho` suffix:
|
|
- Variables/functions: `camelCaseChirho`
|
|
- Types/Classes: `PascalCaseChirho`
|
|
- Constants: `SCREAMING_SNAKE_CHIRHO`
|
|
- Database columns: `snake_case_chirho`
|
|
- Routes: `kebab-case-fe`
|
|
|
|
## Configuration Placeholders
|
|
|
|
The following placeholders are replaced during site generation:
|
|
- `{{BUSINESS_NAME_CHIRHO}}` - Business name
|
|
- `{{TAGLINE_CHIRHO}}` - Business tagline
|
|
- `{{PHONE_CHIRHO}}` - Contact phone
|
|
- `{{EMAIL_CHIRHO}}` - Contact email
|
|
- `{{ADDRESS_CHIRHO}}` - Business address
|
|
- `{{PRIMARY_COLOR_CHIRHO}}` - Primary brand color
|
|
- `{{SLUG_CHIRHO}}` - Site slug identifier
|
|
|
|
## Platform Bindings
|
|
|
|
Available via `platform.env`:
|
|
- `DB_CHIRHO` - D1 Database
|
|
- `KV_CHIRHO` - KV Namespace
|
|
- `ASSETS_CHIRHO` - R2 Bucket
|
|
- `SITE_SLUG_CHIRHO` - Site identifier
|
|
|
|
## Development
|
|
|
|
```bash
|
|
bun install
|
|
bun run dev
|
|
```
|
|
|
|
## Build
|
|
|
|
```bash
|
|
bun run build
|
|
```
|
|
|
|
Output goes to `.svelte-kit/cloudflare` for deployment.
|
|
|
|
# JESUS CHRIST IS LORD
|