Skip to content

elrincondeldev/backgrounds-hub

Repository files navigation

🎨 Background Customizer

Astro React TypeScript TailwindCSS

A modern and elegant React application that allows users to customize and preview different backgrounds for their web applications. Built with React, TypeScript, and TailwindCSS for a seamless user experience.

✨ Features

  • 🖼️ Live background preview
  • 📋 One-click code copying
  • 💾 Local storage persistence
  • 🌈 Multiple background options
  • 📱 Responsive design
  • 🚀 Fast and lightweight

🛠️ Technologies Used

  • React: Frontend library for building user interfaces
  • TypeScript: For type-safe code
  • TailwindCSS: For modern and responsive styling
  • React DOM Server: For server-side rendering capabilities

🚀 Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn

Installation

  1. Clone the repository:
git clone https://github.com/elrincondeldev/backgrounds-hub
  1. Install dependencies:
npm install
# or
yarn install
  1. Start the development server:
npm run dev
# or
yarn dev

💡 Usage

  1. Browse through the available background options
  2. Click "preview" to see how the background looks
  3. If you like it, click "copy code" to get the component code
  4. The selected background will be saved automatically

🔧 Components

Buttons Component

The main interactive component that provides:

  • Preview functionality
  • Code copying to clipboard
  • Toast notifications for user feedback
  • Background persistence using localStorage

🎨 Customization

The application uses TailwindCSS for styling, making it easy to customize:

  • Modify colors using Tailwind's color palette
  • Adjust spacing and sizing with utility classes
  • Customize component styles through the Tailwind configuration

📦 Storage

The application uses localStorage to persist user preferences:

  • Selected background code
  • Background name
  • User preferences

🤝 Contributing

Contributions are welcome! Feel free to:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

📝 License

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

📫 Contact

If you have any questions or suggestions, feel free to reach out:


Made with ❤️ by El Rincón Del Dev