Coder Social home page Coder Social logo

paf-frontend-exercise1's Introduction

Paf frontend exercise

Translate the provided designs (for small & large viewports) into a working solution with HTML, CSS and JavaScript.

Requirements

  1. Use HTML5 to produce a semantic information structure.
  2. Use JavaScript (client-side) to fetch JSON-data from the following url: /api/games/lists.json.
  3. Use JavaScript (client-side) to generate the HTML based on the fetched JSON-data.
  4. Add a search field.
    • Should filter the items rendered from the JSON-data.
    • Display previous search history.
  5. Use Webcomponents where it's appropriate.
  6. Use CSS to produce the layout with a mobile first approach (minimum requirement to support is screen resolutions from 320px up to 1920px).

You are allowed to make minor adjustments to the layout if needed.


Getting started

Author your solution in the following files:

index.html          # The place to author your HTML.
src/styles.css      # The place to author your CSS.
src/scripts.js      # The place to author your JavaScript.

To be able to fetch the JSON-data from the url /api/games/lists.json you should use one of the following development setups:


Localhost

This setup provides a development server to be used in your machine. Prerequisites are git and node.js (v10 or higher).

  1. Clone repository & install setup:
    git clone https://github.com/AndreasLindbergPAF/paf-frontend-exercise.git && cd paf-frontend-exercise
  2. Install dependencies:
    npm install
  3. Start server:
    npm start
  4. When done, package your solution with the following command:
    npm pack
  5. And then send us your paf-frontend-exercise-1.0.0.tgz.

Codesandbox

This is the web based setup that only requires a modern browser to get you started.

  1. Open a new Codesandbox.
  2. Prefix urls with ../dist.
    • For example /api/games/lists.json should be ../dist/api/games/lists.json in codesandbox to function properly.
  3. When done, send us your Codesandbox-link.

Designs

Small viewports

Small viewports

Large viewports

Large viewports

paf-frontend-exercise1's People

Contributors

razuk-78 avatar

Watchers

James Cloos 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.