CityTab
- 2 Devlogs
- 7 Total hours
A City Pop inspired new tab!
A City Pop inspired new tab!
A City Pop inspired new tab!
Most weather apps have a search bar where you can find your city and see the weather, but I wanted to use geolocation api so the weather automatically appears when you allow the website to access your location.
.
I was following like 3 different tutorials to get the code to work. The latitude and longitude kept showing up as “undefined” every time I ran the code. Turns out I had to set them to “const” and not as variables😐. So after that, I was able to get everything else to work. I gave it some basic styling for right now.
.
Big thanks to @nokira!! I saw that they did something similar in their project (MainTab) and their code helped me figure out what was wrong with mine. So, once again, thank you!!
That’s it for now. Until next time!
A City Pop inspired new tab!
New project wooooo!!! Making the basics of the website took me wayy longer than if should’ve, but at least I got it done 😭
I followed a tutorial for the search bar to get the basic searching functions. After that, I changed the look and size of it to fit the website and created a function to let you search stuff by pressing “enter”.
Fixing bugs took the most time out of this session. I mainly had issues centering items. After fighting with the “justify-content” and “align-items”, I ended up just using transform to center everything.
Thanks for reading! Until next time!