Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

<<<<<<< HEAD

HelpEthiopia - Smart Donation Platform

A vanilla HTML, CSS, and JavaScript donation matching platform connecting donors with verified recipients across Ethiopia.

🌟 Features

Core Functionality

  • Donation Posting: Users can post items they want to donate with photos, descriptions, and location
  • Request System: Recipients can request specific items with urgency levels
  • Interactive Map: Visual map showing all donations and requests across Ethiopian cities
  • Search & Filter: Advanced filtering by category, type, and search terms
  • Item Details: Detailed view for each donation/request with all information
  • User Authentication: Sign up, login, and user session management
  • Dashboard: Personal dashboard showing statistics and recent activity

Data Persistence

  • LocalStorage: All data persists in browser localStorage
  • SessionStorage: User sessions maintained across pages
  • No Backend Required: Fully functional without server-side code

User Experience

  • Form Validation: Real-time validation with helpful error messages
  • Image Preview: Preview uploaded images before submission
  • Notifications: Toast notifications for success/error messages
  • Responsive Design: Works on desktop, tablet, and mobile devices
  • Ethiopian Theme: Color scheme inspired by Ethiopian flag

πŸ“ Project Structure

helpethiopia/
β”œβ”€β”€ index.html              # Homepage
β”œβ”€β”€ items.html              # Browse all items
β”œβ”€β”€ donate.html             # Post donation form
β”œβ”€β”€ request.html            # Request item form
β”œβ”€β”€ map.html                # Interactive map view
β”œβ”€β”€ item-detail.html        # Individual item details
β”œβ”€β”€ login.html              # User login
β”œβ”€β”€ signup.html             # User registration
β”œβ”€β”€ dashboard.html          # User dashboard
β”œβ”€β”€ signup-success.html     # Registration success page
β”œβ”€β”€ donation-success.html   # Donation posted success
β”œβ”€β”€ request-success.html    # Request submitted success
β”œβ”€β”€ css/
β”‚   └── style.css          # All styles (no frameworks)
β”œβ”€β”€ js/
β”‚   β”œβ”€β”€ data.js            # Data management & localStorage
β”‚   β”œβ”€β”€ main.js            # Items page functionality
β”‚   └── utils.js           # Utility functions (validation, notifications)
└── images/                # Image assets

πŸš€ Getting Started

Prerequisites

  • Modern web browser (Chrome, Firefox, Safari, Edge)
  • No server or build tools required!

Installation

  1. Download or clone the project
  2. Open index.html in your web browser
  3. That's it! The app is ready to use

First Time Setup

  1. Click "Sign Up" to create an account
  2. Fill in your details and select your role (Donor/Recipient/NGO)
  3. Login with your credentials
  4. Start posting donations or making requests!

πŸ’‘ How to Use

For Donors

  1. Sign Up/Login as a Donor
  2. Click "Post a Donation"
  3. Fill in item details:
    • Item name and category
    • Condition and quantity
    • Upload a photo (optional)
    • Add description
  4. Submit and your item appears on the map and browse page

For Recipients

  1. Sign Up/Login as a Recipient
  2. Click "Make a Request"
  3. Fill in request details:
    • What you need
    • Category and urgency level
    • Your location
    • Contact information
  4. Submit and your request is visible to donors

Browsing Items

  • Use the search bar to find specific items
  • Filter by category (Food, Clothes, Books, etc.)
  • Filter by type (Donations or Requests)
  • Click "View Details" to see full information
  • Click markers on the map to see location-based items

πŸ› οΈ Technical Details

Technologies Used

  • HTML5: Semantic markup
  • CSS3: Custom styles with CSS variables, Grid, Flexbox
  • Vanilla JavaScript: No frameworks or libraries
  • LocalStorage API: Data persistence
  • SessionStorage API: User session management
  • FileReader API: Image upload and preview

Key Features Implementation

Data Persistence

// All data stored in localStorage
StorageManager.addItem(itemData);
StorageManager.getItems();
StorageManager.updateItem(id, updates);
StorageManager.deleteItem(id);

Form Validation

// Real-time validation
FormValidator.validateForm(formElement);
FormValidator.isValidEmail(email);
FormValidator.isValidPhone(phone);

Notifications

// Toast notifications
Notification.success('Item posted!');
Notification.error('Please fill all fields');
Notification.info('Loading...');

Browser Compatibility

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+

πŸ“± Responsive Design

The platform is fully responsive with breakpoints at:

  • Desktop: 1200px+
  • Tablet: 768px - 1199px
  • Mobile: < 768px

🎨 Color Scheme

Inspired by the Ethiopian flag:

  • Green (#2d963c): Primary actions, donations
  • Yellow (#f4c430): Secondary actions, highlights
  • Red (#d9381e): Urgent items, requests
  • Dark (#1a1a1a): Text
  • Light (#f7f7f7): Background

πŸ”’ Security Notes

Important: This is a client-side only application for demonstration purposes.

For production use, you should:

  • Implement server-side authentication
  • Hash passwords (currently stored in plain text)
  • Add CSRF protection
  • Sanitize user inputs
  • Use HTTPS
  • Implement proper session management
  • Add rate limiting

🚧 Future Enhancements

Potential features to add:

  • Real-time messaging between donors and recipients
  • Email notifications
  • Admin approval workflow
  • Rating and review system
  • Advanced matching algorithm
  • Export data functionality
  • Multi-language support (Amharic, Oromo, etc.)
  • Integration with real mapping services (Google Maps, Leaflet)
  • Mobile app version
  • Social media sharing

πŸ“„ License

This project is open source and available for educational purposes.

πŸ‘₯ Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest new features
  • Submit pull requests
  • Improve documentation

πŸ“ž Support

For questions or issues:

πŸ™ Acknowledgments

  • Design inspired by Freecycle, Byside Community Care, and Wegenfund
  • Ethiopian flag colors for cultural relevance
  • Community-driven approach to charitable giving

Built with ❀️ for the Ethiopian community

HelpEthiopia

b9237e795f9870f91db684cf57e87d881f7d8325

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages