@aws505/sheetsite 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -0
- package/dist/components/index.js +1696 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +1630 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/config/index.js +1840 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/index.mjs +1793 -0
- package/dist/config/index.mjs.map +1 -0
- package/dist/data/index.js +1296 -0
- package/dist/data/index.js.map +1 -0
- package/dist/data/index.mjs +1220 -0
- package/dist/data/index.mjs.map +1 -0
- package/dist/index.js +5433 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5285 -0
- package/dist/index.mjs.map +1 -0
- package/dist/seo/index.js +187 -0
- package/dist/seo/index.js.map +1 -0
- package/dist/seo/index.mjs +155 -0
- package/dist/seo/index.mjs.map +1 -0
- package/dist/theme/index.js +552 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/index.mjs +526 -0
- package/dist/theme/index.mjs.map +1 -0
- package/package.json +96 -0
- package/src/components/index.ts +41 -0
- package/src/components/layout/Footer.tsx +234 -0
- package/src/components/layout/Header.tsx +134 -0
- package/src/components/sections/FAQ.tsx +178 -0
- package/src/components/sections/Gallery.tsx +107 -0
- package/src/components/sections/Hero.tsx +202 -0
- package/src/components/sections/Hours.tsx +225 -0
- package/src/components/sections/Services.tsx +216 -0
- package/src/components/sections/Testimonials.tsx +184 -0
- package/src/components/ui/Button.tsx +158 -0
- package/src/components/ui/Card.tsx +162 -0
- package/src/components/ui/Icons.tsx +508 -0
- package/src/config/index.ts +207 -0
- package/src/config/presets/generic.ts +153 -0
- package/src/config/presets/home-kitchen.ts +154 -0
- package/src/config/presets/index.ts +708 -0
- package/src/config/presets/professional.ts +165 -0
- package/src/config/presets/repair.ts +160 -0
- package/src/config/presets/restaurant.ts +162 -0
- package/src/config/presets/salon.ts +178 -0
- package/src/config/presets/tailor.ts +159 -0
- package/src/config/types.ts +314 -0
- package/src/data/csv-parser.ts +154 -0
- package/src/data/defaults.ts +202 -0
- package/src/data/google-drive.ts +148 -0
- package/src/data/index.ts +535 -0
- package/src/data/sheets.ts +709 -0
- package/src/data/types.ts +379 -0
- package/src/seo/index.ts +272 -0
- package/src/theme/colors.ts +351 -0
- package/src/theme/index.ts +249 -0
package/README.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# SheetSite
|
|
2
|
+
|
|
3
|
+
**Build Google Sheets-powered websites for small businesses in minutes.**
|
|
4
|
+
|
|
5
|
+
SheetSite is a Next.js library designed specifically for AI-assisted development with Claude Code. It provides pre-built components, Google Sheets integration, and business-type presets that make creating professional small business websites incredibly fast.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Create a new Next.js project
|
|
11
|
+
npx create-next-app@latest my-business-site
|
|
12
|
+
cd my-business-site
|
|
13
|
+
|
|
14
|
+
# Install SheetSite
|
|
15
|
+
npm install sheetsite
|
|
16
|
+
|
|
17
|
+
# Start developing
|
|
18
|
+
npm run dev
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Features
|
|
22
|
+
|
|
23
|
+
- **Google Sheets CMS**: Manage all content through Google Sheets - no database needed
|
|
24
|
+
- **Pre-built Components**: Hero, Services, Gallery, Testimonials, FAQ, Hours, and more
|
|
25
|
+
- **Business Presets**: Tailored configurations for 25+ business types
|
|
26
|
+
- **Theme System**: Color palettes and typography for different industries
|
|
27
|
+
- **SEO Built-in**: JSON-LD structured data, sitemaps, and meta tags
|
|
28
|
+
- **TypeScript**: Full type safety throughout
|
|
29
|
+
- **AI-Optimized**: Designed for rapid development with Claude Code
|
|
30
|
+
|
|
31
|
+
## Supported Business Types
|
|
32
|
+
|
|
33
|
+
- **Service**: Tailors, Shoe Repair, Dry Cleaners, Salons, Barbershops, Spas
|
|
34
|
+
- **Food**: Restaurants, Cafes, Bakeries, Food Trucks, Home Kitchens, Catering
|
|
35
|
+
- **Retail**: Craft Sellers, Boutiques, Florists, Gift Shops
|
|
36
|
+
- **Home Services**: Cleaning, Landscaping, Handyman, Plumbers, Electricians
|
|
37
|
+
- **Auto**: Auto Repair, Auto Detail, Tire Shops
|
|
38
|
+
- **Professional**: Accountants, Lawyers, Real Estate, Insurance, Consulting
|
|
39
|
+
- **Health**: Personal Trainers, Yoga Studios, Chiropractors, Massage
|
|
40
|
+
- **Creative**: Photography, Videography, Music Lessons, Event Planning
|
|
41
|
+
|
|
42
|
+
## Documentation
|
|
43
|
+
|
|
44
|
+
- [Quick Start Guide](./docs/QUICKSTART.md)
|
|
45
|
+
- [AI Development Guide](./docs/AI-DEVELOPMENT-GUIDE.md) - **Start here if using Claude Code**
|
|
46
|
+
- [Google Sheets Setup](./docs/GOOGLE-SHEETS-SETUP.md)
|
|
47
|
+
- [Business Type Reference](./docs/BUSINESS-TYPES.md)
|
|
48
|
+
- [Component Reference](./docs/COMPONENTS.md)
|
|
49
|
+
- [Customization Guide](./docs/CUSTOMIZATION.md)
|
|
50
|
+
|
|
51
|
+
## Basic Usage
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
// app/page.tsx
|
|
55
|
+
import {
|
|
56
|
+
getSiteData,
|
|
57
|
+
createSheetConfigFromEnv,
|
|
58
|
+
Hero,
|
|
59
|
+
Services,
|
|
60
|
+
Testimonials,
|
|
61
|
+
Header,
|
|
62
|
+
Footer,
|
|
63
|
+
} from 'sheetsite';
|
|
64
|
+
|
|
65
|
+
export default async function HomePage() {
|
|
66
|
+
const config = createSheetConfigFromEnv();
|
|
67
|
+
const data = await getSiteData(config);
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<>
|
|
71
|
+
<Header business={data.business} />
|
|
72
|
+
<main>
|
|
73
|
+
<Hero business={data.business} />
|
|
74
|
+
<Services services={data.services} />
|
|
75
|
+
<Testimonials testimonials={data.testimonials} />
|
|
76
|
+
</main>
|
|
77
|
+
<Footer business={data.business} hours={data.hours} />
|
|
78
|
+
</>
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Environment Variables
|
|
84
|
+
|
|
85
|
+
```env
|
|
86
|
+
# Choose mode: "public_csv" or "private_api"
|
|
87
|
+
SHEET_MODE="public_csv"
|
|
88
|
+
|
|
89
|
+
# For public CSV mode (simpler):
|
|
90
|
+
SHEET_CSV_URL_BUSINESS="https://docs.google.com/spreadsheets/d/e/.../pub?output=csv"
|
|
91
|
+
SHEET_CSV_URL_HOURS="..."
|
|
92
|
+
SHEET_CSV_URL_SERVICES="..."
|
|
93
|
+
|
|
94
|
+
# For private API mode (more secure):
|
|
95
|
+
SHEET_ID="your-sheet-id"
|
|
96
|
+
GOOGLE_SERVICE_ACCOUNT_EMAIL="..."
|
|
97
|
+
GOOGLE_PRIVATE_KEY="..."
|
|
98
|
+
|
|
99
|
+
# Site URL for SEO
|
|
100
|
+
NEXT_PUBLIC_SITE_URL="https://your-domain.com"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## License
|
|
104
|
+
|
|
105
|
+
MIT
|