Skip to content

cogrow4/Green-Repairs

Repository files navigation

🌿 Green Repairs

Green Repairs Logo

Professional Tech Repair Services Platform

Fast, reliable, and affordable device repairs with modern web technology

GitHub stars GitHub forks GitHub issues License

Netlify Status Made with Tailwind JavaScript

🌐 Live Demo β€’ πŸ“– Documentation β€’ πŸ› Report Bug β€’ ✨ Request Feature


πŸ“‹ Table of Contents


✨ Features

Feature Description
🎨 Modern UI/UX Beautiful dark mode, smooth animations, and responsive design
πŸ“§ Contact System Integrated email notifications via Mailgun
πŸ” Admin Panel Secure authentication with testimonial & stats management
⚑ High Performance Optimized animations, lazy loading, and GPU acceleration
πŸ“± Mobile First Fully responsive across all devices and screen sizes
πŸŒ™ Dark Mode Elegant dark theme with seamless switching
πŸ“Š Dynamic Stats Admin-controlled counters for business metrics
⭐ Testimonials CRUD system for customer reviews
🎭 3D Effects Interactive service cards with tilt and glow effects
πŸ”„ Real-time Updates Dynamic content loading without page refresh

🎯 What Makes This Special

πŸ—οΈ Built With Modern Technology

Frontend:         Tailwind CSS 3.x + Vanilla JavaScript (ES6+)
Backend:          Netlify Functions (Serverless)
Storage:          Netlify Blobs (Key-Value Store)
Email:            Mailgun API
Animations:       AOS (Animate on Scroll)
Icons:            Feather Icons

πŸŽͺ Interactive Features

  • Service Cards: 3D tilt effects with cursor-following glow
  • Animated Counters: Smooth count-up animations on scroll
  • Parallax Scrolling: Depth-based background movement
  • Progress Bar: Visual scroll progress indicator
  • Smooth Transitions: Hardware-accelerated CSS transforms

πŸ”§ Admin Capabilities

  • πŸ“ˆ Statistics Management: Update devices repaired counter
  • πŸ’¬ Testimonial Control: Add, view, and delete customer reviews
  • πŸ” Secure Authentication: JWT-based session management
  • πŸ“± Responsive Dashboard: Works on all devices

πŸš€ Quick Start

Prerequisites

  • Node.js 14+ (for local development)
  • Netlify account (for deployment)
  • Mailgun account (for contact form)

Installation

# Clone the repository
git clone https://github.com/cogrow4/Green-Repairs.git

# Navigate to project directory
cd Green-Repairs

# Install dependencies (if using Netlify Dev)
npm install

# Copy environment variables
cp .env.example .env

# Edit .env with your credentials
nano .env

Local Development

# Start Netlify Dev server
netlify dev

# Or use a simple HTTP server
python -m http.server 8000

Open http://localhost:8888 in your browser.


βš™οΈ Configuration

Environment Variables

Create a .env file in the root directory:

# Email Configuration (Mailgun)
MAILGUN_API_KEY=your_mailgun_api_key
MAILGUN_DOMAIN=your_mailgun_domain
MAILGUN_TO_EMAIL=[email protected]

# Admin Panel (Required)
ADMIN_PASSWORD=your_strong_password

# Admin Panel (Optional - has default value)
# ADMIN_SECRET=your_custom_secret

πŸ’‘ Tip: See ADMIN_SETUP.md for detailed configuration guide.

Netlify Setup

  1. Connect Repository

    • Go to Netlify Dashboard
    • Click "Add new site" β†’ "Import an existing project"
    • Connect your GitHub repository
  2. Configure Environment Variables

    Site settings β†’ Environment variables β†’ Add variables
    

    Add all variables from your .env file

  3. Deploy Settings

    • Build command: (leave empty)
    • Publish directory: /
    • Functions directory: netlify/functions

🎨 Customization

Changing Colors

Edit the Tailwind config in index.html:

tailwind.config = {
  theme: {
    extend: {
      colors: {
        primary: {
          500: '#22c55e', // Change this to your brand color
        }
      }
    }
  }
}

Adding Services

Add a new service card in index.html under the Services section:

<div class="service-card group" data-aos="fade-up">
  <div class="w-16 h-16 rounded-2xl bg-gradient-to-br from-green-100...">
    <i data-feather="your-icon" class="w-8 h-8..."></i>
  </div>
  <h3 class="text-2xl font-bold mb-4">Your Service</h3>
  <p class="text-gray-600 dark:text-gray-300 mb-6">
    Service description...
  </p>
  <!-- Pricing and link -->
</div>

Modifying Animations

Adjust animation settings in js/main.js:

AOS.init({
  duration: 800,     // Animation duration
  easing: 'ease-in-out',
  once: true,        // Only animate once
  offset: 100        // Trigger offset
});

πŸ“¦ Deployment

Netlify (Recommended)

Deploy to Netlify

Manual Deployment

# Build and test
npm run build

# Deploy via Netlify CLI
netlify deploy --prod

Other Platforms

The site is static HTML/CSS/JS and can be deployed to:

  • Vercel
  • GitHub Pages
  • Cloudflare Pages
  • Any static hosting service

⚠️ Note: Netlify Functions required for admin panel and contact form.


πŸ”’ Security

Best Practices

  • βœ… Never commit .env file to version control
  • βœ… Use strong passwords for ADMIN_PASSWORD
  • βœ… Enable HTTPS in production (Netlify provides this)
  • βœ… Regularly update dependencies
  • βœ… Use environment variables for all sensitive data
  • βœ… Set secure cookies in production (HttpOnly, Secure, SameSite)

Admin Access

  • Admin panel: /admin.html
  • Default username: admin
  • Password: Set via ADMIN_PASSWORD environment variable
  • Session duration: 12 hours

🀝 Contributing

Contributions are what make the open-source community amazing! Any contributions you make are greatly appreciated.

How to Contribute

  1. Fork the Project
  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

Contribution Guidelines

  • Follow existing code style
  • Write meaningful commit messages
  • Test your changes thoroughly
  • Update documentation as needed
  • Add comments for complex logic

πŸ“„ License

This project is licensed under the Custom Non-Commercial License (NCL) - see the LICENSE.md file for details.

License Summary

βœ… You CAN:

  • Use the code for your business website (repair shop, restaurant, etc.)
  • Use for personal projects and portfolios
  • Modify and adapt the code
  • Share and distribute the code (for free)
  • Use for educational purposes
  • Make money from your business that uses this code

❌ You CANNOT:

  • Sell this code or derivatives (on marketplaces, etc.)
  • Charge money for the code itself
  • Remove copyright notices
  • Distribute without sharing the source code

πŸ“œ You MUST:

  • Credit the original author (coeng24)
  • Share modifications under the same license
  • Include the original license with distributions
  • Keep the source code open

πŸ’– Credits

Created By

coeng24 - GitHub

Technologies Used

Inspiration

Inspired by modern web design trends and the need for accessible, performant repair service websites.


⭐ Star this repository if you find it helpful!

Made with ❀️ by coeng24

⬆ Back to Top

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published