27 |
42 |
43 | {currentWeatherError && (
44 |
45 | Failed to fetch current weather data: {currentWeatherError}
46 |
47 | )}
48 | {forecastError && (
49 |
50 | Failed to fetch forecast data: {forecastError}
51 |
52 | )}
53 |
54 | );
55 | }
56 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # 🚀 Contributing to Our Project
2 |
3 | We are thrilled that you are interested in contributing to our project. Your support and involvement are what make our community strong and our project better. Whether you're fixing a bug, adding a feature, or simply improving documentation, every contribution is valuable. 💪
4 |
5 | ## 📝 How to Contribute
6 |
7 | ### 1. Fork the Repository
8 |
9 | Click the _Fork_ button at the top right of this page to create a copy of the repository under your GitHub account.
10 |
11 | ### 2. Clone Your Fork
12 |
13 | bash
14 | git clone https://github.com/frau-azadeh/dashboard-weather.git
15 | cd REPOSITORY_NAME
16 |
17 | ### 3. Create a Branch
18 |
19 | Create a new branch for your changes:
20 |
21 | git checkout -b your-feature-name
22 |
23 | ### 4. Make Your Changes
24 |
25 | Edit the code, fix bugs, or improve the documentation. Remember to write clean and well-documented code.
26 |
27 | ### 5. Commit Your Changes
28 |
29 | git add .
30 | git commit -m "Brief description of your changes"
31 |
32 | ### 6. Push to Your Fork
33 |
34 | git push origin your-feature-name
35 |
36 | ### 7. Create a Pull Request
37 |
38 | Go to the original repository, click on _Pull Requests, and select \*\*New Pull Request_. Choose your branch and submit the PR for review.
39 |
40 | ## ✅ Contribution Guidelines
41 |
42 | - Ensure your code follows the existing style and conventions.
43 | - Write clear, concise commit messages.
44 | - Provide a detailed description of your changes in the pull request.
45 | - Test your changes before submitting.
46 |
47 | ## 🌟 Additional Ways to Contribute
48 |
49 | - Report issues 🐛
50 | - Suggest new features ✨
51 | - Improve documentation 📖
52 | - Share the project with others 💬
53 |
54 | ## 🤝 Code of Conduct
55 |
56 | Please note that we follow a [Code of Conduct](CODE_OF_CONDUCT.md) to ensure a welcoming and inclusive environment.
57 |
58 | ## 💬 Need Help?
59 |
60 | If you need any help or have questions, feel free to open an issue or reach out to us. We’re happy to help! 🚀
61 |
62 | Thank you for helping us make this project better! ❤️
63 |
--------------------------------------------------------------------------------
/src/components/Sidebar.tsx:
--------------------------------------------------------------------------------
1 | import { WiDayWindy , WiDayLightning ,WiThermometer, WiBarometer} from "react-icons/wi";
2 | import { FaChartSimple } from "react-icons/fa6";
3 | import { GiWorld } from "react-icons/gi";
4 | export default function Sidebar() {
5 | return (
6 | <>
7 |