Git Product home page Git Product logo

nike-example's Introduction

Nike RWD Example

This is example of a page off of Nike.com that has been made responsive. There are two parts to this example:

  • Static HTML/CSS located at index.html.
  • React-based components located at index-components.html

The bulk of the work only took several hours, as can be seen by the Punchcard.

Installing

Clone the repository.

git clone https://github.com/breachofmind/nike-example.git

Install dependencies, Using yarn or npm (depending on how cool you are):

yarn install
# or...
npm install

Run the Browsersync server.

npm run dev

The server should run at http://localhost:3000. Try the following files:

Alternatively, you could open the file in your browser without the server running: public/index.html. However, inline SVG with symbols will not work. index-components.html will not work at all, because state.json cannot be served in this way.

Developing

To use webpack while making changes to files, make sure you have the webpack cli installed and run:

webpack --watch --progress

Notes

  • The original assets from nike.com changed while I was making this, so I used the most recent ones.
  • Source styles are written in stylus because that's what the folks at Nike use.
  • Only the Foundation 6 Flex Grid was used for base styles.
  • Styles are organized in the SMACSS way.
  • For time sake, I chose not to minify anything. Normally, production stuff would be minified.
  • The react application uses a simple /public/data/state.json to mock how a server would return data. The page layout is determined by this file, so try changing some values to see how the app changes.

nike-example's People

Watchers

 avatar  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.