Skip to content

amrpyt/solar-panel-website-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SolarPower Co. - Solar Panel Company Website

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.

🌟 Features

  • 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!

πŸ“ Project Structure

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

πŸš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm, yarn, or pnpm

Installation

  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev

The site will be available at http://localhost:4321

Build for Production

npm run build

Preview Production Build

npm run preview

Access the CMS

# Start dev server
npm run dev

# Open CMS at http://localhost:4321/admin

See CMS_SETUP.md for detailed CMS documentation.

πŸ“„ Pages Overview

Home Page (/)

  • 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

About Page (/about)

  • Company story and mission
  • Core values with custom icons
  • Statistics and achievements
  • Team members showcase
  • Call to action

Services Page (/services)

  • Detailed service offerings with features and benefits
  • 5-step process visualization
  • Why choose us section
  • Dual CTA (form + phone)

Contact Page (/contact)

  • Contact information cards (phone, email, location)
  • Functional contact form with validation
  • Business hours
  • Map placeholder section
  • Additional info and benefits

🎨 Design Features

Color Scheme

  • Primary: Orange tones (#f59e0b, #ed721b)
  • Secondary: Green tones (#22c55e, #16a34a)
  • Custom color palettes defined in Tailwind config

Animations

  • Fade in/out effects
  • Slide animations
  • Scroll-triggered animations
  • Hover transitions
  • Floating elements
  • SVG path animations

Typography

  • System font stack for performance
  • Responsive font sizes
  • Text balance for headings

🧩 Component Library

Layout Components

  • Header: Sticky navigation with mobile menu
  • Footer: Multi-column footer with social links
  • BaseLayout: Wrapper with SEO and global scripts

UI Components

  • Button: Multiple variants (primary, secondary, outline)
  • Card: Hoverable cards with shadows
  • SectionTitle: Consistent section headers

SEO Components

  • SEO: Meta tags, Open Graph, Twitter cards
  • JsonLd: Structured data for search engines

Icon Components

Custom SVG components for visual consistency:

  • Logo, Solar Panel, Installation, Maintenance
  • Consulting, Battery, Leaf Energy, Shield, Award

πŸ”§ Customization

Updating Content

  1. Site Information: Edit astro.config.mjs and SEO components
  2. Colors: Modify tailwind.config.mjs theme colors
  3. Services: Update data in src/components/sections/Services.astro
  4. Testimonials: Edit testimonials array in respective component
  5. Contact Info: Update footer and contact page details

Adding New Pages

  1. Create new .astro file in src/pages/
  2. Use BaseLayout and import necessary components
  3. Add navigation link in Header component
  4. Update footer links if needed

Custom Icons

To add new SVG icons:

  1. Create new file in src/components/icons/
  2. Use existing icons as templates
  3. Import and use in your components

πŸ“± Responsive Design

The website is fully responsive with breakpoints:

  • Mobile: < 768px
  • Tablet: 768px - 1024px
  • Desktop: > 1024px

⚑ Performance

  • Static site generation for fast load times
  • Optimized images and SVGs
  • Minimal JavaScript
  • CSS purging in production
  • Lazy loading for animations

πŸ” SEO Features

  • 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

πŸ› οΈ Technologies Used

πŸ“ License

This project is created for demonstration purposes.

🀝 Contributing

Feel free to fork this project and customize it for your needs!

πŸ“§ Support

For questions or issues, please contact the development team.


Built with ❀️ using Astro and Tailwind CSS

About

Demo solar panel company website built with Astro, Tailwind CSS, and Decap CMS - Showcasing Claude Sonnet 4.5 thinking model capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors