|
| 1 | +# sqlite-graph Cloud - Landing Page |
| 2 | + |
| 3 | +Professional landing page for sqlite-graph Cloud managed database service. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- **Hero Section** with value proposition and code example |
| 8 | +- **Features Grid** showcasing key capabilities |
| 9 | +- **Use Cases** for different industries |
| 10 | +- **Pricing Tiers** with detailed comparison |
| 11 | +- **FAQ Section** answering common questions |
| 12 | +- **Responsive Design** for mobile, tablet, and desktop |
| 13 | +- **Modern Animations** using Intersection Observer API |
| 14 | +- **Performance Optimized** with lazy loading and efficient CSS |
| 15 | + |
| 16 | +## Quick Start |
| 17 | + |
| 18 | +### Local Development |
| 19 | + |
| 20 | +1. **Open in browser:** |
| 21 | + ```bash |
| 22 | + open index.html |
| 23 | + ``` |
| 24 | + |
| 25 | +2. **Or use a local server:** |
| 26 | + ```bash |
| 27 | + # Using Python |
| 28 | + python -m http.server 8000 |
| 29 | + |
| 30 | + # Using Node.js |
| 31 | + npx serve . |
| 32 | + |
| 33 | + # Using PHP |
| 34 | + php -S localhost:8000 |
| 35 | + ``` |
| 36 | + |
| 37 | +3. **View at:** http://localhost:8000 |
| 38 | + |
| 39 | +### Deploy to Production |
| 40 | + |
| 41 | +#### Vercel (Recommended) |
| 42 | + |
| 43 | +```bash |
| 44 | +# Install Vercel CLI |
| 45 | +npm install -g vercel |
| 46 | + |
| 47 | +# Deploy |
| 48 | +cd landing-page |
| 49 | +vercel |
| 50 | +``` |
| 51 | + |
| 52 | +#### Netlify |
| 53 | + |
| 54 | +```bash |
| 55 | +# Install Netlify CLI |
| 56 | +npm install -g netlify-cli |
| 57 | + |
| 58 | +# Deploy |
| 59 | +cd landing-page |
| 60 | +netlify deploy --prod |
| 61 | +``` |
| 62 | + |
| 63 | +#### GitHub Pages |
| 64 | + |
| 65 | +```bash |
| 66 | +# Create gh-pages branch |
| 67 | +git checkout -b gh-pages |
| 68 | +git add landing-page/* |
| 69 | +git commit -m "Deploy landing page" |
| 70 | +git push origin gh-pages |
| 71 | + |
| 72 | +# Enable GitHub Pages in repo settings |
| 73 | +# Set source to gh-pages branch |
| 74 | +``` |
| 75 | + |
| 76 | +#### AWS S3 + CloudFront |
| 77 | + |
| 78 | +```bash |
| 79 | +# Upload to S3 |
| 80 | +aws s3 sync landing-page/ s3://your-bucket-name/ --acl public-read |
| 81 | + |
| 82 | +# Create CloudFront distribution pointing to S3 |
| 83 | +# Enable HTTPS with ACM certificate |
| 84 | +``` |
| 85 | + |
| 86 | +## Customization |
| 87 | + |
| 88 | +### Colors |
| 89 | + |
| 90 | +Edit CSS variables in [css/style.css](css/style.css:11): |
| 91 | + |
| 92 | +```css |
| 93 | +:root { |
| 94 | + --primary: #FF6B35; /* Main brand color */ |
| 95 | + --primary-dark: #E55A2B; /* Hover states */ |
| 96 | + --secondary: #1F2937; /* Text and UI elements */ |
| 97 | +} |
| 98 | +``` |
| 99 | + |
| 100 | +### Content |
| 101 | + |
| 102 | +1. **Hero Section** - [index.html:40](index.html:40) |
| 103 | + - Update title, description, and CTA buttons |
| 104 | + |
| 105 | +2. **Features** - [index.html:120](index.html:120) |
| 106 | + - Add/remove feature cards |
| 107 | + - Update icons (emoji or SVG) |
| 108 | + |
| 109 | +3. **Pricing** - [index.html:200](index.html:200) |
| 110 | + - Adjust tier names, prices, and features |
| 111 | + - Add/remove tiers |
| 112 | + |
| 113 | +4. **FAQ** - [index.html:380](index.html:380) |
| 114 | + - Update questions and answers |
| 115 | + |
| 116 | +### Analytics |
| 117 | + |
| 118 | +Add your analytics provider in [js/main.js](js/main.js:1): |
| 119 | + |
| 120 | +**Google Analytics:** |
| 121 | +```html |
| 122 | +<!-- Add to <head> in index.html --> |
| 123 | +<script async src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"></script> |
| 124 | +<script> |
| 125 | + window.dataLayer = window.dataLayer || []; |
| 126 | + function gtag(){dataLayer.push(arguments);} |
| 127 | + gtag('js', new Date()); |
| 128 | + gtag('config', 'GA_MEASUREMENT_ID'); |
| 129 | +</script> |
| 130 | +``` |
| 131 | + |
| 132 | +**Plausible Analytics:** |
| 133 | +```html |
| 134 | +<!-- Add to <head> in index.html --> |
| 135 | +<script defer data-domain="yourdomain.com" src="https://plausible.io/js/script.js"></script> |
| 136 | +``` |
| 137 | + |
| 138 | +### Email Signup |
| 139 | + |
| 140 | +Connect to your email service provider: |
| 141 | + |
| 142 | +**Mailchimp:** |
| 143 | +```javascript |
| 144 | +// Replace showSignupModal() in js/main.js |
| 145 | +function showSignupModal() { |
| 146 | + window.location.href = 'https://your-mailchimp-signup-url'; |
| 147 | +} |
| 148 | +``` |
| 149 | + |
| 150 | +**ConvertKit:** |
| 151 | +```javascript |
| 152 | +function showSignupModal() { |
| 153 | + window.location.href = 'https://your-convertkit-form-url'; |
| 154 | +} |
| 155 | +``` |
| 156 | + |
| 157 | +**Custom Backend:** |
| 158 | +```javascript |
| 159 | +async function showSignupModal() { |
| 160 | + const email = prompt('Enter your email:'); |
| 161 | + if (email && isValidEmail(email)) { |
| 162 | + await fetch('https://api.yourdomain.com/signup', { |
| 163 | + method: 'POST', |
| 164 | + headers: { 'Content-Type': 'application/json' }, |
| 165 | + body: JSON.stringify({ email }) |
| 166 | + }); |
| 167 | + alert('Thanks for signing up!'); |
| 168 | + } |
| 169 | +} |
| 170 | +``` |
| 171 | + |
| 172 | +## Performance |
| 173 | + |
| 174 | +### Lighthouse Score Targets |
| 175 | + |
| 176 | +- **Performance:** 95+ |
| 177 | +- **Accessibility:** 100 |
| 178 | +- **Best Practices:** 100 |
| 179 | +- **SEO:** 100 |
| 180 | + |
| 181 | +### Optimization Checklist |
| 182 | + |
| 183 | +- [x] Minified CSS and JS (do this for production) |
| 184 | +- [x] Responsive images with lazy loading |
| 185 | +- [x] Efficient animations (CSS transforms) |
| 186 | +- [x] Semantic HTML for SEO |
| 187 | +- [x] Fast fonts (system fonts fallback) |
| 188 | +- [x] No render-blocking resources |
| 189 | + |
| 190 | +### Production Build |
| 191 | + |
| 192 | +**Minify CSS:** |
| 193 | +```bash |
| 194 | +npm install -g clean-css-cli |
| 195 | +cleancss -o css/style.min.css css/style.css |
| 196 | +``` |
| 197 | + |
| 198 | +**Minify JavaScript:** |
| 199 | +```bash |
| 200 | +npm install -g terser |
| 201 | +terser js/main.js -o js/main.min.js -c -m |
| 202 | +``` |
| 203 | + |
| 204 | +**Update HTML to use minified files:** |
| 205 | +```html |
| 206 | +<link rel="stylesheet" href="css/style.min.css"> |
| 207 | +<script src="js/main.min.js"></script> |
| 208 | +``` |
| 209 | + |
| 210 | +## SEO |
| 211 | + |
| 212 | +### Meta Tags |
| 213 | + |
| 214 | +Already included in index.html: |
| 215 | +- Title, description, keywords |
| 216 | +- Open Graph tags (Facebook, LinkedIn) |
| 217 | +- Twitter Card tags |
| 218 | + |
| 219 | +### Add Structured Data |
| 220 | + |
| 221 | +```html |
| 222 | +<!-- Add to <head> for rich snippets --> |
| 223 | +<script type="application/ld+json"> |
| 224 | +{ |
| 225 | + "@context": "https://schema.org", |
| 226 | + "@type": "SoftwareApplication", |
| 227 | + "name": "sqlite-graph Cloud", |
| 228 | + "applicationCategory": "DatabaseApplication", |
| 229 | + "offers": { |
| 230 | + "@type": "Offer", |
| 231 | + "price": "0", |
| 232 | + "priceCurrency": "USD" |
| 233 | + } |
| 234 | +} |
| 235 | +</script> |
| 236 | +``` |
| 237 | + |
| 238 | +### Sitemap |
| 239 | + |
| 240 | +Create `sitemap.xml`: |
| 241 | +```xml |
| 242 | +<?xml version="1.0" encoding="UTF-8"?> |
| 243 | +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> |
| 244 | + <url> |
| 245 | + <loc>https://sqlite-graph.io/</loc> |
| 246 | + <priority>1.0</priority> |
| 247 | + </url> |
| 248 | +</urlset> |
| 249 | +``` |
| 250 | + |
| 251 | +### robots.txt |
| 252 | + |
| 253 | +Create `robots.txt`: |
| 254 | +``` |
| 255 | +User-agent: * |
| 256 | +Allow: / |
| 257 | +Sitemap: https://sqlite-graph.io/sitemap.xml |
| 258 | +``` |
| 259 | + |
| 260 | +## Browser Support |
| 261 | + |
| 262 | +- Chrome/Edge (last 2 versions) |
| 263 | +- Firefox (last 2 versions) |
| 264 | +- Safari (last 2 versions) |
| 265 | +- iOS Safari (last 2 versions) |
| 266 | +- Android Chrome (last 2 versions) |
| 267 | + |
| 268 | +## Dependencies |
| 269 | + |
| 270 | +**Zero external dependencies!** |
| 271 | + |
| 272 | +- Pure HTML, CSS, JavaScript |
| 273 | +- System fonts (Inter with fallbacks) |
| 274 | +- SVG icons (inline) |
| 275 | +- No frameworks, no build tools required |
| 276 | + |
| 277 | +## File Structure |
| 278 | + |
| 279 | +``` |
| 280 | +landing-page/ |
| 281 | +├── index.html # Main HTML file |
| 282 | +├── css/ |
| 283 | +│ └── style.css # All styles |
| 284 | +├── js/ |
| 285 | +│ └── main.js # Interactive features |
| 286 | +├── assets/ # Images, logos (add as needed) |
| 287 | +└── README.md # This file |
| 288 | +``` |
| 289 | + |
| 290 | +## Next Steps |
| 291 | + |
| 292 | +1. **Set up domain:** Register sqlite-graph.io or your preferred domain |
| 293 | +2. **Configure DNS:** Point to your hosting provider |
| 294 | +3. **Enable HTTPS:** Use Let's Encrypt or your hosting provider's SSL |
| 295 | +4. **Add analytics:** Google Analytics, Plausible, or Fathom |
| 296 | +5. **Connect signup form:** Mailchimp, ConvertKit, or custom backend |
| 297 | +6. **Set up monitoring:** Uptime Robot, Better Uptime, or Pingdom |
| 298 | +7. **Configure CDN:** CloudFlare for global performance |
| 299 | + |
| 300 | +## Support |
| 301 | + |
| 302 | +- **GitHub:** https://github.com/michaeloboyle/sqlite-graph |
| 303 | + |
| 304 | +- **Issues:** https://github.com/michaeloboyle/sqlite-graph/issues |
| 305 | + |
| 306 | +## License |
| 307 | + |
| 308 | +MIT License - Built by Michael O'Boyle (https://oboyle.co) |
| 309 | + |
| 310 | +--- |
| 311 | + |
| 312 | +Built with ❤️ for the sqlite-graph community |
0 commit comments