Skip to content

colabottles/swsweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌱 Green Energy Astro Template

A modern, responsive website template for green energy companies built with Astro and TailwindCSS. This template provides a complete solution for renewable energy businesses to showcase their services, innovations, and environmental impact.

πŸš€ Demo

πŸ”— View Live Demo - Mirror

🎨 Get Template on Astro

Live Demo Astro Template

πŸ–ΌοΈ Screenshots

Light Theme

Light Theme Screenshot

Dark Theme

Dark Theme Screenshot

✨ Features

  • 🎨 Modern Design: Clean, professional design optimized for green energy companies
  • πŸ“± Fully Responsive: Mobile-first approach ensuring perfect display on all devices
  • ⚑ Lightning Fast: Built with Astro for optimal performance and SEO
  • 🎯 Conversion Focused: Strategic call-to-action placements throughout the site
  • β™Ώ Accessible: Following web accessibility best practices
  • πŸŒ™ Theme Support: Built-in theme switching capabilities
  • πŸ“§ Contact Forms: Ready-to-use contact and newsletter signup forms
  • πŸ”§ Easy Customization: Well-structured components for easy modification

πŸ“‹ Sections Included

  • Hero Section: Eye-catching landing area with compelling headline
  • Key Services: Overview of main green energy services
  • Latest Innovations: Showcase of cutting-edge technology and solutions
  • Customer Testimonials: Social proof from satisfied clients
  • Environmental Impact: Data-driven impact visualization
  • Featured Projects: Case studies and success stories
  • Get Involved: Call-to-action section for user engagement

πŸ› οΈ Built With

  • Astro - Static site generator
  • TailwindCSS - Utility-first CSS framework
  • TypeScript - Type safety and better development experience

πŸš€ Quick Start

You can get started with this template in two ways:

Option 1: Using Dev Container (Recommended)

For the best development experience, especially on Windows, clone directly into a dev container:

  1. Open VS Code
  2. Use Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  3. Run: "Dev Containers: Clone Repository in Container Volume..."
  4. Enter repository URL: https://github.com/vbartalis/energy-template.git
  5. Wait for container setup (automatic dependency installation)
  6. Start development
    npm run dev

This approach ensures:

  • βœ… Optimal file system performance
  • βœ… Fast live reloading on all platforms
  • βœ… Pre-configured development environment
  • βœ… No local Node.js installation required

Option 2: Local Development

Prerequisites

  • Node.js 20.11.0 or higher
  • npm or yarn package manager

πŸ’‘ Tip: This project uses Volta for Node.js version management. If you have Volta installed, it will automatically use the correct Node.js version (20.11.0) when you enter the project directory.

Installation

  1. Clone the repository

    git clone https://github.com/vbartalis/energy-template.git
    cd energy-template
  2. Install dependencies

    npm install

    Note: If using Volta, the correct Node.js version will be automatically selected.

  3. Start development server

    npm run dev
  4. Open your browser Navigate to http://localhost:4321 to see your site

Build for Production

npm run build

Preview Production Build

npm run preview

πŸ“ Project Structure

/
β”œβ”€β”€ public/
β”‚   └── style/
β”‚       └── custom.css
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ blocks/
β”‚   β”‚   β”œβ”€β”€ sections/
β”‚   β”‚   β”‚   β”œβ”€β”€ cta/
β”‚   β”‚   β”‚   β”œβ”€β”€ environment/
β”‚   β”‚   β”‚   β”œβ”€β”€ featured/
β”‚   β”‚   β”‚   β”œβ”€β”€ hero/
β”‚   β”‚   β”‚   β”œβ”€β”€ innovations/
β”‚   β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   └── testimonials/
β”‚   β”‚   └── shared/
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   β”œβ”€β”€ Footer.astro
β”‚   β”‚   β”œβ”€β”€ Layout.astro
β”‚   β”‚   └── Navbar.astro
β”‚   └── pages/
β”‚       └── index.astro
β”œβ”€β”€ astro.config.mjs
β”œβ”€β”€ tailwind.config.mjs
└── package.json

🎨 Customization

Colors and Styling

Modify the TailwindCSS configuration in tailwind.config.mjs to match your brand colors.

Content

Update the data files in each section folder (src/components/sections/*/data.ts) to customize:

  • Service offerings
  • Company information
  • Testimonials
  • Project showcases

Images

Replace images in the assets folders within each section to match your brand and projects.

πŸ“ Available Scripts

Command Description
npm run dev Start development server with host binding
npm run start Start development server
npm run build Build for production with type checking
npm run preview Preview production build
npm run astro Run Astro CLI commands

🀝 Contributing

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Thanks to the Astro team for creating an amazing static site generator
  • TailwindCSS for the utility-first CSS framework
  • The open-source community for inspiration and best practices

πŸ“§ Contact

Vilmos Bartalis - @vbartalis

Project Link: https://github.com/vbartalis/energy-template


⭐ If you found this template helpful, please consider giving it a star!

Astro Starter Kit: Blog

npm create astro@latest -- --template blog

πŸ§‘β€πŸš€ Seasoned astronaut? Delete this file. Have fun!

Features:

  • βœ… Minimal styling (make it your own!)
  • βœ… 100/100 Lighthouse performance
  • βœ… SEO-friendly with canonical URLs and OpenGraph data
  • βœ… Sitemap support
  • βœ… RSS Feed support
  • βœ… Markdown & MDX support

πŸš€ Project Structure

Inside of your Astro project, you'll see the following folders and files:

β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚Β Β  β”œβ”€β”€ components/
β”‚Β Β  β”œβ”€β”€ content/
β”‚Β Β  β”œβ”€β”€ layouts/
β”‚Β Β  └── pages/
β”œβ”€β”€ astro.config.mjs
β”œβ”€β”€ README.md
β”œβ”€β”€ package.json
└── tsconfig.json

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

The src/content/ directory contains "collections" of related Markdown and MDX documents. Use getCollection() to retrieve posts from src/content/blog/, and type-check your frontmatter using an optional schema. See Astro's Content Collections docs to learn more.

Any static assets, like images, can be placed in the public/ directory.

🧞 Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:4321
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run astro ... Run CLI commands like astro add, astro check
npm run astro -- --help Get help using the Astro CLI

πŸ‘€ Want to learn more?

Check out our documentation or jump into our Discord server.

Credit

This theme is based off of the lovely Bear Blog.

About

Dev repo for SW Sweeper website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •