Code Monkey home page Code Monkey logo

grid-of-users's Introduction

Grid of Users

By default, the grid displays the data in the order that is is received. Each person is displayed in a rectangle with a black border of 2px and display 3 per row on desktop (not responsive). The name is an h2 of size 16px and bold, the age is 12px and italic, and the category is 12 px and regular. The priority is displayed as a background color:

  1. Orange
  2. Green
  3. Blue
  4. Purple

There are the following sorts and filters:

  • Sorts ­ chosen from a select.
    • Featured ­ the default sort (no sort)
    • A­Z: Alphabetically ascending by name
    • Priority: Listed in ascending order
  • Filters ­ chosen by radio buttons for each type of filter. When a filter is selected, only the matching people are displayed. The non­matching are not rendered.
    • Category ­ show the unique categories present in the initial set of data.

Seeded with the following data:

{
	"data": [{
		"name": "Joe",
		"age": 24,
		"priority": 1,
		"category": "cat2"
	}, {
		"name": "Jane",
		"age": 76,
		"priority": 4,
		"category": "cat1"
	}, {
		"name": "Kevin",
		"age": 32,
		"priority": 2,
		"category": "cat2"
	}, {
		"name": "Lucy",
		"age": 54,
		"priority": 1,
		"category": "cat3"
	}, {
		"name": "Colin",
		"age": 34,
		"priority": 3,
		"category": "cat1"
	}, {
		"name": "Franny",
		"age": 36,
		"priority": 2,
		"category": "cat3"
	}, {
		"name": "Neil",
		"age": 74,
		"priority": 4,
		"category": "cat2"
	}, {
		"name": "Katy",
		"age": 55,
		"priority": 3,
		"category": "cat2"
	}]
}

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.