diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/Aligarh.webp b/Aligarh.webp new file mode 100644 index 0000000..ca6b5e3 Binary files /dev/null and b/Aligarh.webp differ diff --git a/Burdwan.jpg b/Burdwan.jpg new file mode 100644 index 0000000..f215866 Binary files /dev/null and b/Burdwan.jpg differ diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..656af80 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,77 @@ +# 📜 Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our community a respectful, harassment-free experience for everyone. We are committed to building a welcoming environment for people of all races, ethnicities, gender identities, sexual orientations, disabilities, mental health statuses, socioeconomic backgrounds, ages, physical appearances, body sizes, religions, or technical abilities. + +We pledge to act and interact in ways that contribute to an open, inclusive, and healthy community. + +--- + +## Our Standards + +Examples of behavior that contributes to a positive environment include: + +- ✅ Being respectful and kind to others +- ✅ Using inclusive and welcoming language +- ✅ Gracefully accepting constructive feedback +- ✅ Focusing on what is best for the community +- ✅ Showing empathy and patience toward others + +Examples of unacceptable behavior include: + +- ❌ Discrimination or insulting comments +- ❌ Trolling, threats, or personal attacks +- ❌ Harassment in any form (public or private) +- ❌ Publishing others’ private information without consent +- ❌ Unwanted sexual attention or advances + +--- + +## Enforcement Responsibilities + +Project maintainers are responsible for: + +- Clarifying the standards of acceptable behavior +- Taking appropriate corrective action in response to any behavior they deem inappropriate, threatening, offensive, or harmful +- Ensuring fair and consistent enforcement of this Code of Conduct + +--- + +## Scope + +This Code of Conduct applies within: + +- All project spaces (e.g., repo discussions, issues, pull requests) +- All project-related communication (e.g., Discord, email, online/offline events) + +--- + +## Reporting + +If you experience or witness unacceptable behavior, please report it by emailing the maintainers: + + + +All reports will be handled confidentially and reviewed promptly. + +--- + +## Enforcement Guidelines + +Maintainers will follow a tiered approach: + +1. **Warning** – A private warning for first offenses. +2. **Temporary Ban** – Removal from the community for a period of time. +3. **Permanent Ban** – Permanent removal for repeated or severe violations. + +--- + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1. +[homepage]: https://www.contributor-covenant.org + +--- + +## 🙌 Let’s work together to make this community welcoming for everyone. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..f405bdc --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,105 @@ +# 🛠️ Contributing to One-Stop-Guide + +Thank you for considering contributing to **One-Stop-Guide** — a helpful city guide platform. This document outlines how you can contribute, coding standards, and the contribution process. + +--- + +## 📁 Project Structure + +- `*.html` – Static city guide pages (e.g., `ajmer.html`, `delhi.html`) +- `*.php` – Backend scripts (e.g., `dbconnect.php`, `city.php`) +- `CityGuideDb.sql` – SQL file to set up the database +- `README.md` – Project overview and setup instructions +- `LICENSE.md` – License file + +--- + +## 🚀 Getting Started + +### 1. Fork & Clone + +```bash +git clone https://github.com/YOUR_USERNAME/One-Stop-Guide.git +cd One-Stop-Guide +``` + +### 2. Set Up Locally + +- Install [XAMPP](https://www.apachefriends.org/index.html) or any LAMP stack +- Move the project to the `htdocs` directory +- Import `CityGuideDb.sql` into phpMyAdmin +- Open the app in your browser: + `http://localhost/One-Stop-Guide/index.html` + +--- + +## ✅ How You Can Contribute + +- Improve UI/UX of city pages +- Add new city guides +- Refactor or enhance backend PHP scripts +- Fix bugs or broken links +- Improve accessibility and responsiveness +- Help with documentation (README, guides) + +--- + +## 🧠 Code Guidelines + +- Write clean, readable, and commented code +- Follow HTML5 and PHP conventions +- Use semantic HTML and proper indentation +- Sanitize inputs and follow secure DB practices +- Keep UI consistent with existing pages + +--- + +## 🧪 Testing Checklist + +- ✅ HTML loads without errors in the browser +- ✅ Pages pass W3C validation +- ✅ PHP scripts connect to the database successfully +- ✅ Forms and links function as expected +- ✅ Design is responsive on different screen sizes + +--- + +## 🔁 Submitting a Pull Request + +1. Create a new branch: + +```bash +git checkout -b feature/your-feature-name +``` + +2. Make your changes and commit: + +```bash +git commit -m "Add: Description of what you changed" +``` + +3. Push and open a PR: + +```bash +git push origin feature/your-feature-name +``` + +4. Open a Pull Request and include: + - ✅ What you did + - ✅ Why it matters + - ✅ How to test it + +--- + +## 👥 Community Standards + +- Be respectful and inclusive +- Provide helpful feedback during reviews +- Submit clean and tested code +- Collaborate to improve the project together + +--- + +## 💬 Questions? + +Feel free to [open an issue](https://github.com/YOUR_USERNAME/One-Stop-Guide/issues) for help or guidance. diff --git a/CityGuideDb.sql b/CityGuideDb.sql index 2c4f67c..eb3f7ce 100644 --- a/CityGuideDb.sql +++ b/CityGuideDb.sql @@ -8,7 +8,9 @@ CREATE TABLE city_data ( city_name VARCHAR(50), place_name VARCHAR(100), place_type VARCHAR(50), - description TEXT + description TEXT, + INDEX idx_city (city_name), + INDEX idx_place_type (place_type) ); -- Ajmer @@ -16,7 +18,7 @@ INSERT INTO city_data (city_name, place_name, place_type, description) VALUES ('Ajmer', 'Ajmer Sharif Dargah', 'Place', 'A famous Sufi shrine.'), ('Ajmer', 'Ana Sagar Lake', 'Place', 'Scenic artificial lake.'), ('Ajmer', 'JLN Hospital', 'Hospital', 'Major hospital in Ajmer.'), -('Ajmer', 'Mayo College', 'College', 'One of India\'s oldest public schools.'), +('Ajmer', 'Mayo College', 'College', 'One of India\'s ' oldest public schools.'), ('Ajmer', 'Coffee Day', 'Cafe', 'Popular café for youth.'); -- Kota @@ -66,3 +68,66 @@ INSERT INTO city_data (city_name, place_name, place_type, description) VALUES ('Kishangarh', 'JLN College', 'College', 'Oldest college in city.'), ('Kishangarh', 'ABC Public School', 'School', 'Popular private school.'), ('Kishangarh', 'KGC Café', 'Cafe', 'Stylish café for students.'); + +-- Laxmangarh +INSERT INTO city_data (city_name, place_name, place_type, description) VALUES + ('Laxmangarh', 'Laxmangarh Fort', 'Place', 'Historical fort situated atop a hill.'), + ('Laxmangarh', 'CHC Laxmangarh', 'Hospital', 'Community Health Center serving the town.'), + ('Laxmangarh', 'Mody University', 'College', 'Premier women''s university with a large campus.'), + ('Laxmangarh', 'Tagore Public School', 'School', 'English medium co-ed school.'), + ('Laxmangarh', 'The Brew Villa Café', 'Cafe', 'Trendy student-friendly café near university.'); + + -- Burdwan (Bardhaman) +INSERT INTO city_data (state_name, city_name, place_name, place_type, description) VALUES +('West Bengal', 'Burdwan', '108 Shiva Temple', 'Place', 'Historic temple complex with 108 shrines.'), +('West Bengal', 'Burdwan', 'Burdwan Medical College', 'Hospital', 'Major government medical hospital.'), +('West Bengal', 'Burdwan', 'University of Burdwan', 'College', 'Renowned state university.'), +('West Bengal', 'Burdwan', 'St. Xavier''s School', 'School', 'Prestigious English medium school.'), +('West Bengal', 'Burdwan', 'Cafe Royal', 'Cafe', 'Popular youth café in city center.'); + +-- Kolkata +INSERT INTO city_data (state_name, city_name, place_name, place_type, description) VALUES +('West Bengal', 'Kolkata', 'Victoria Memorial', 'Place', 'Iconic marble museum and garden.'), +('West Bengal', 'Kolkata', 'Apollo Gleneagles Hospital', 'Hospital', 'Famous multi-speciality hospital.'), +('West Bengal', 'Kolkata', 'Jadavpur University', 'College', 'Leading university in India.'), +('West Bengal', 'Kolkata', 'La Martiniere School', 'School', 'Historic and elite private school.'), +('West Bengal', 'Kolkata', 'Flurys', 'Cafe', 'Legendary tearoom and bakery.'); + +-- Aligarh +INSERT INTO city_data (state_name, city_name, place_name, place_type, description) VALUES +('Uttar Pradesh', 'Aligarh', 'Aligarh Fort', 'Place', 'Historic fort built in the 16th century.'), +('Uttar Pradesh', 'Aligarh', 'JNMCH Hospital', 'Hospital', 'Jawaharlal Nehru Medical College Hospital.'), +('Uttar Pradesh', 'Aligarh', 'Aligarh Muslim University', 'College', 'World-famous central university.'), +('Uttar Pradesh', 'Aligarh', 'Our Lady of Fatima School', 'School', 'Reputed convent school.'), +('Uttar Pradesh', 'Aligarh', 'Cafe Coffee Day', 'Cafe', 'Youth hangout near AMU.'); + +-- Pune +INSERT INTO city_data (state_name, city_name, place_name, place_type, description) VALUES +('Maharashtra', 'Pune', 'Shaniwar Wada', 'Place', 'Historic fort palace built in 1732.'), +('Maharashtra', 'Pune', 'Ruby Hall Clinic', 'Hospital', 'Well-known multi-speciality hospital.'), +('Maharashtra', 'Pune', 'Savitribai Phule Pune University', 'College', 'One of India''s premier universities.'), +('Maharashtra', 'Pune', 'St. Mary''s School', 'School', 'Prestigious English medium school.'), +('Maharashtra', 'Pune', 'Vaishali Restaurant', 'Cafe', 'Iconic café popular with students and professionals.'); + +-- Jaipur +INSERT INTO city_data (state_name, city_name, place_name, place_type, description) VALUES +('Rajasthan', 'Jaipur', 'Hawa Mahal', 'Place', 'Iconic pink sandstone palace with 953 windows.'), +('Rajasthan', 'Jaipur', 'SMS Hospital', 'Hospital', 'Sawai Man Singh Hospital, largest government hospital in Rajasthan.'), +('Rajasthan', 'Jaipur', 'University of Rajasthan', 'College', 'Oldest and prominent university in Jaipur.'), +('Rajasthan', 'Jaipur', 'Maharani Gayatri Devi Girls'' School', 'School', 'Renowned all-girls school with rich history.'), +('Rajasthan', 'Jaipur', 'Tapri Central', 'Cafe', 'Trendy café famous for tea and snacks with rooftop view.'); + + +SELECT * FROM city_data; + +SELECT * FROM city_data +WHERE city_name = 'Jaipur'; + +SELECT * FROM city_data +WHERE place_name LIKE '%Fort%'; + +-- Sample query: Get all cafes in Kolkata +SELECT place_name, description +FROM city_data +WHERE city_name = 'Kolkata' AND place_type = 'Cafe'; + diff --git a/Implement Authentication System b/Implement Authentication System new file mode 100644 index 0000000..44bbd87 --- /dev/null +++ b/Implement Authentication System @@ -0,0 +1,272 @@ + +This PR introduces a complete authentication system with both login and registration functionality. The implementation includes: + +- Clean, responsive UI for both login and registration forms +- Form validation and secure password handling +- Simulated authentication flow with dashboard redirection +- Password visibility toggle functionality +- Tab-based navigation between login and registration +- Dashboard mockup with user information sections + +## Files Changed/Added +1. `auth-system.html` - The main authentication system implementation + +## Screenshots +![Login Screen](https://placehold.co/600x400?text=Login+Screen+with+Email+Password+Fields) +![Register Screen](https://placehold.co/600x400?text=Register+Form+with+Validation) +![Dashboard](https://placehold.co/600x400?text=User+Dashboard+After+Login) + +## Testing Instructions +1. Open `auth-system.html` in browser +2. Test the login flow with: + - Valid credentials (any will work, it's simulated) + - Invalid credentials (should show error) +3. Test registration flow: + - Fill out form with valid details + - Try mismatched passwords to see validation + - Submit to see success flow +4. Test the logout functionality from dashboard + +## Technical Details +- Uses Tailwind CSS for styling +- Pure JavaScript implementation (no external dependencies) +- Responsive design that works on mobile and desktop +- Secure password handling simulation (client-side only in this demo) + +## Notes +- This is a frontend-only implementation. In a production environment, you would need to: + - Connect to a backend authentication service + - Implement proper password hashing + - Add CSRF protection + - Set up proper session management + + + + + + Authentication System + + + + +
+
+ +
+ +

Welcome Back

+

Sign in to access your account

+
+ + +
+ + +
+ + +
+ +
+
+ +
+ +
+
+ +
+ +
+ + +
+ +
+ + + +
+ Don't have an account? + +
+
+ + +
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+

• Minimum 8 characters

+

• At least one uppercase letter

+

• At least one number

+
+
+ +
+ +
+ + +
+
+ +
+ + +
+ + + +
+ Already have an account? + +
+
+
+
+
+ + +