Creating a comprehensive weather app involves multiple steps, including fetching data from a weather API, designing the user interface, and handlin...
For further actions, you may consider blocking this person and/or reporting abuse
Recently I've also done this weather app for Fun.
here it is you can also check out this one.
Live link
I've used Nextjs, Typescript, and Axios.
That sounds awesome! Weather apps are a great project to work on. I'd love to check out your version. Thanks for sharing the the live link . Could you share the GitHub repository link so I can take a look?
Sure here is the GitHub link: github.com/mahfuzurrahman01/weathe...
Need complete code
send the source code
Nice, I will try to build it using react
Absolutely, using React can indeed lead to a more efficient and maintainable application. It provides a structured way to manage your app's state and UI components. I
Thank you so much for sharing, I am on the CSS leg of my learning journey but I'm excited to try this app out locally in the future. This was easy to follow thank you.
it doesnot showing anything
body {
font-family: 'Courier New', Courier, monospace;
background-color: aqua;
}
.Container {
max-width: 400px;
margin: 0 auto;
text-align: center;
padding: 20px;
background-color: rgba(255, 255, 255, 0.5);
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
margin-top: 105px;
}
h1 {
font-size: 25px;
}
input[type="text"] {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
background-color: #007BFF;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}
.weather-info {
margin-top: 20px;
}
`
`
const apiKey = "6d7fa8bbc9d11323a4360290364f544d";
const apiUrl = "api.openweathermap.org/data/2.5/we...";
const locationInput = document.getElementById('locationInput');
const searchButton = document.getElementById('searchButton');
const locationElement = document.getElementById('location');
const temperatureElement = document.getElementById('temperature');
const descriptionElement = document.getElementById('description');
searchButton.addEventListener('click', () => {
const location = locationInput.value;
if (location) {
fetchWeather(location);
}
});
function fetchWeather(location) {
const url =
${apiUrl}?q=${location}&appid=${apiKey}&units=metric
;}
`
`
Amazing!
But a screenshot of the finished work, or a link to it would be great.
Thank you for the tip.I have now attached a screenshot of the finished work.
Awesome.
Great tutorial!
Like Dumebi, I would suggest including a screenshot or a codepen or similiar. You can even link to the code on Github/Gitlab/Gumroad, if you like!
Thank you for the feedback! I'm glad you found the tutorial helpful. I've attached some screenshots, and I'll be sure to add the GitHub link before the day is over. Stay tuned for the link, and feel free to reach out if you have any questions or need further assistance.
Hi Odumosu Matthew,
Top, very nice!
Thanks for sharing.
Thank you so much for your kind words! I'm glad you found the guide helpful. If you have any questions or need further insights, feel free to reach out!
I want want the full source code sir...anyone pls help me....
Thanks for this it was quite informative, looking forward to documenting my journey for recruiters. Currently jobless any tips