GithubHelp home page GithubHelp logo

gregrickaby / local-weather Goto Github PK

View Code? Open in Web Editor NEW
49.0 4.0 6.0 2.16 MB

⛈ A weather app using Next.js, Mantine, Edge API Routes, and the OpenWeatherMap and Google Maps API's.

Home Page: https://localwx.vercel.app

License: MIT License

JavaScript 3.59% TypeScript 91.52% CSS 4.89%
nextjs google-maps-api typescript mantine google-places-api geocoding openweathermap-api edge-runtime swr mantine-ui

local-weather's Introduction

local-weather's People

Contributors

dependabot[bot] avatar gregrickaby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

local-weather's Issues

Search History

It would be cool if the visitor's search history was retained and displayed when the visitor comes back.

Search Bar should clear on focus

If a user clicks into the search bar, it places the cursor at the end of the text. Forcing users to clear it before typing.

Instead, the search bar should clear on focus.

Geolocation

It'd be awesome if the app knew the user's (general) location to display their local weather, without them having to search. Luckily, Vercel supplies geolocation data!

  • Detect visitor's general location via Vercel Geolocation
  • Create a Location state in the React Context provider: <WeatherProvider />
  • User Next.js Middleware update the React Context
  • Run the weather query with this context data and display results

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.