Giter VIP home page Giter VIP logo

knit-a-temperature-blanket's Introduction

knit-a-temperature-blanket

Generates a knitting pattern for a blanket with colours based on the recent temperature in your area. Built with Node v20.11.0

Alt text

This is a Next.js project bootstrapped with create-next-app.

This is deployed on push to main using vercel at https://knit-a-temperature-blanket.vercel.app/

Getting Started

To run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

To do

  • CLI-based fixed calculator
  • Create react front end to display fixed text results
  • Host this front end for public access
  • Key creator configuration
    • Allow users to enter their own colours and names
    • Get most current weather (no fixed date range)
    • Allow users to enter their own temperature ranges
    • Allow users to enter their own location to fetch weather from
    • Allow users to enter their own stitches per row e.g. knit 1 row, purl 1 row
    • Rainy day override
  • Share pattern with friends via URL
  • Save selected config to local storage for users to return to and refresh later in the year
  • Make pages responsive (mobile vs desktop)
  • Make fun header responsive
  • Make key creator a pretty visual experience i.e. UX to create the above pictured card key with yarn swatches.
  • Display pattern result alongside pretty colour visualisation of blanket
  • Make a location frame
  • Parse (don't validate) local storage and query param temperature keys
  • MVP printable knitting instructions
  • Export customisable knitting pattern to print
  • Share state between pages to allow custom patterns to be printed
  • Add line of previous progress e.g. already knitted january, just focus on pattern for feb - march.
  • About or home page explaining a temperature blanket
  • Auto-generate temperature ranges based on previous years' data
  • Make 'share' button nice
  • Give more user feedback / instruction on creating sharable URL
  • Use some pretty icons for edit & reset colour range buttons

Sneak Peek

Screenshot of the web app running locally on different size browser screens, including an iPhone SE

Print a pattern

A printable version of the pattern (default colours only so far) is available at /print-a-pattern

Text representation of a temperature blanket pattern Preview of version to be printed

Browser compatible

Fun and fancy header now responsive for browsers with different text-wrap compatibilities.

Desktop views of the fun header in Firefox, Safari, and Chrome Mobile views of the fun header in Firefox, Safari, and Chrome

Resources

This project was built with NextJS following the following guides:

Troubleshooting for a future me

Changes not reflecting accurately locally?

Help! I've made a change to a tsx file but that change isn't reflected visually. When I inspect the changed element I can see a new tailwind class name, but it's not working??

Refreshing the page won't work. Killing and recompiling the app won't work. Opening the page in a new tab won't work. Poke Tailwind back into life by removing a dynamic className. For example, if this isn't working:

<div className={`border-w-${borderWidth}`} />

try changing it to:

<div className={`border-w-4`} />

Your changes should come through and you can now revert the className change.

Credit & attributions

knit-a-temperature-blanket's People

Contributors

atrace avatar

Watchers

 avatar

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.