A modern, fully responsive website for a solar panel company built with Astro and Tailwind CSS 3. This project showcases a complete business website with multiple pages, custom components, SVG assets, animations, and SEO optimization.
- Modern Design: Clean, professional design with smooth animations and transitions
- Fully Responsive: Optimized for all devices (mobile, tablet, desktop)
- SEO Optimized: Comprehensive SEO components with meta tags, JSON-LD schema, and semantic HTML
- Performance: Built with Astro for optimal performance and fast load times
- Custom SVG Assets: Hand-crafted SVG icons and illustrations
- Tailwind CSS 3: Utilizing modern CSS framework with custom animations
- Component-Based: Reusable components for maintainability
- CMS Integrated: Decap CMS (18,608β) for easy content management - no database required!
Demo-Website/
βββ src/
β βββ assets/ # Static assets
β βββ components/ # Reusable components
β β βββ icons/ # Custom SVG icon components
β β β βββ Logo.astro
β β β βββ SolarPanel.astro
β β β βββ Installation.astro
β β β βββ Maintenance.astro
β β β βββ Consulting.astro
β β β βββ Battery.astro
β β β βββ LeafEnergy.astro
β β β βββ Shield.astro
β β β βββ Award.astro
β β βββ sections/ # Page section components
β β β βββ Hero.astro
β β β βββ Services.astro
β β β βββ Testimonials.astro
β β β βββ Projects.astro
β β β βββ CTA.astro
β β βββ Button.astro
β β βββ Card.astro
β β βββ Header.astro
β β βββ Footer.astro
β β βββ SectionTitle.astro
β β βββ SEO.astro
β β βββ JsonLd.astro
β βββ layouts/
β β βββ BaseLayout.astro # Main layout wrapper
β βββ pages/ # Website pages
β β βββ index.astro # Home page
β β βββ about.astro # About page
β β βββ services.astro # Services page
β β βββ contact.astro # Contact page
β βββ styles/
β βββ global.css # Global styles and Tailwind imports
βββ public/ # Public static files
βββ astro.config.mjs # Astro configuration
βββ tailwind.config.mjs # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
βββ package.json # Project dependencies
- Node.js 18+
- npm, yarn, or pnpm
- Install dependencies:
npm install- Start the development server:
npm run devThe site will be available at http://localhost:4321
npm run buildnpm run preview# Start dev server
npm run dev
# Open CMS at http://localhost:4321/adminSee CMS_SETUP.md for detailed CMS documentation.
- Hero Section: Eye-catching hero with animated SVG illustration and CTAs
- Services Section: Grid of 6 services with icons and descriptions
- Projects Section: Portfolio of completed installations
- Testimonials Section: Customer reviews with star ratings
- Call to Action: Conversion-focused section with benefits
- Company story and mission
- Core values with custom icons
- Statistics and achievements
- Team members showcase
- Call to action
- Detailed service offerings with features and benefits
- 5-step process visualization
- Why choose us section
- Dual CTA (form + phone)
- Contact information cards (phone, email, location)
- Functional contact form with validation
- Business hours
- Map placeholder section
- Additional info and benefits
- Primary: Orange tones (#f59e0b, #ed721b)
- Secondary: Green tones (#22c55e, #16a34a)
- Custom color palettes defined in Tailwind config
- Fade in/out effects
- Slide animations
- Scroll-triggered animations
- Hover transitions
- Floating elements
- SVG path animations
- System font stack for performance
- Responsive font sizes
- Text balance for headings
- Header: Sticky navigation with mobile menu
- Footer: Multi-column footer with social links
- BaseLayout: Wrapper with SEO and global scripts
- Button: Multiple variants (primary, secondary, outline)
- Card: Hoverable cards with shadows
- SectionTitle: Consistent section headers
- SEO: Meta tags, Open Graph, Twitter cards
- JsonLd: Structured data for search engines
Custom SVG components for visual consistency:
- Logo, Solar Panel, Installation, Maintenance
- Consulting, Battery, Leaf Energy, Shield, Award
- Site Information: Edit
astro.config.mjsand SEO components - Colors: Modify
tailwind.config.mjstheme colors - Services: Update data in
src/components/sections/Services.astro - Testimonials: Edit testimonials array in respective component
- Contact Info: Update footer and contact page details
- Create new
.astrofile insrc/pages/ - Use BaseLayout and import necessary components
- Add navigation link in Header component
- Update footer links if needed
To add new SVG icons:
- Create new file in
src/components/icons/ - Use existing icons as templates
- Import and use in your components
The website is fully responsive with breakpoints:
- Mobile: < 768px
- Tablet: 768px - 1024px
- Desktop: > 1024px
- Static site generation for fast load times
- Optimized images and SVGs
- Minimal JavaScript
- CSS purging in production
- Lazy loading for animations
- Meta tags (title, description, keywords)
- Open Graph tags for social sharing
- Twitter Card support
- Canonical URLs
- JSON-LD structured data
- Semantic HTML5
- Sitemap ready
- Mobile-friendly
- Astro - Modern static site generator
- Tailwind CSS 3 - Utility-first CSS framework
- TypeScript - Type-safe JavaScript
- Custom SVG Graphics
This project is created for demonstration purposes.
Feel free to fork this project and customize it for your needs!
For questions or issues, please contact the development team.
Built with β€οΈ using Astro and Tailwind CSS