You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HOSTEL_README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ This project has been converted from a project management system to a comprehens
8
8
-**Add Hostels**: Only admins and super admins can add new hostels
9
9
-**Hostel Information**: Complete hostel details including name, description, location (Google Maps link), contact info, and pricing
10
10
-**Image Management**: Support for multiple hostel images with primary image designation
11
+
-**Image Slider & Fullscreen View**: Hostel images are displayed in a modern Swiper slider. Click any image to view it fullscreen in a high-quality modal/lightbox.
11
12
-**Categories & Filtering**: Dynamic categorization system for amenities, room types, location types, price ranges, and atmosphere
12
13
13
14
### ⭐ Ratings & Reviews
@@ -34,6 +35,13 @@ This project has been converted from a project management system to a comprehens
34
35
35
36
Hostel images are now uploaded and stored using [Cloudinary](https://cloudinary.com/). The backend handles image uploads and stores the returned Cloudinary URLs in the database. **Firebase Storage is no longer used for images.**
36
37
38
+
### Cloudinary Features
39
+
-**High-Quality Images**: Images are displayed using Cloudinary's `q_auto:best` transformation for optimal quality.
40
+
-**Image Slider**: All hostel images are shown in a Swiper slider, supporting multiple images per hostel.
41
+
-**Fullscreen Modal/Lightbox**: Click any image to view it fullscreen in a modal for a better viewing experience.
42
+
-**Responsive Design**: The slider and modal are fully responsive and accessible.
43
+
-**Custom Transformations**: You can customize Cloudinary transformations (e.g., resizing, cropping, quality) by editing the image URL or backend logic.
44
+
37
45
### Cloudinary Setup
38
46
1.**Create a Cloudinary account** at https://cloudinary.com/ (free tier is sufficient).
39
47
2.**Get your credentials** from the Cloudinary dashboard:
@@ -52,6 +60,11 @@ Hostel images are now uploaded and stored using [Cloudinary](https://cloudinary.
52
60
```
53
61
5.**No further setup is needed.** The backend API will handle all uploads and return the Cloudinary image URLs for use in the app.
54
62
63
+
## UI Improvements
64
+
-**Single Card Per Row**: Hostel cards are now displayed one per row for better readability.
65
+
-**Modern Card/Grid Design**: The UI uses a clean, modern design with responsive layouts.
66
+
-**Accessible Image Viewing**: All images are accessible and can be viewed fullscreen for better detail.
Copy file name to clipboardExpand all lines: README.md
+12-22Lines changed: 12 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,26 @@
6
6
7
7
## 🚀 Features
8
8
- 🏠 **Hostel Management** – Add, edit, and manage hostel details including name, address, and price.
9
+
- 🖼️ **Image Management & Slider** – Upload multiple hostel images, displayed in a Swiper slider. Click any image to view it fullscreen in a high-quality modal/lightbox (powered by Cloudinary).
9
10
- 🗂️ **Category Management** – Create and organize hostel categories for better filtering and search.
10
11
- 📝 **Comment Moderation** – Admins can view, edit, report, and block user comments for a safe environment.
11
12
- 🚫 **User Blocking & Reporting** – Block users or report inappropriate comments, with in-app notifications.
12
13
- 🔒 **Access Control** – Secure admin and superadmin roles with persistent authentication.
13
-
- 💡 **Modern UI** – Built with Shadcn UI components for a clean, responsive, and accessible experience.
[](https://codecompasss.github.io/project_archive/public/video/demowebsitevideo.mp4)
18
+
## 🖼️ Image Storage & Display (Cloudinary)
19
+
- Hostel images are uploaded to and served from [Cloudinary](https://cloudinary.com/), with high-quality transformations (`q_auto:best`).
20
+
- All images are shown in a Swiper slider; click any image to view it fullscreen in a modal/lightbox.
21
+
- You can customize Cloudinary transformations (quality, size, cropping) by editing the image URL or backend logic.
0 commit comments