public/subjects/gossip-grid
lee bc58ab2518 fix(dom-subjects): renaming css files to data.css files 2023-02-28 10:53:26 +00:00
..
README.md fix(dom-subjects): renaming css files to data.css files 2023-02-28 10:53:26 +00:00
gossip-grid.data.css fix(dom-subjects): renaming css files to data.css files 2023-02-28 10:53:26 +00:00
gossip-grid.data.js gossip-grid: change files naming 2021-03-11 02:50:30 +00:00
gossip-grid.html fix(dom-subjects): renaming css files to data.css files 2023-02-28 10:53:26 +00:00

README.md

Gossip grid

Instructions

Create the function grid which displays all the gossips, provided in the data file below, as cards on a grid (in the same order).

They will each be represented as a div with the gossip class.

The first gossip card must be a form. It will need a textarea, and a submit button with the text "Share gossip!". It will add new gossip to the list.

Create 3 type="range" inputs with the class range, all wrapped in a div with the class ranges.

  • id="width": that controls the width of cards from 200 to 800 pixels.
  • id="fontSize": that controls the font size from 20 to 40 pixels.
  • id="background": that control the background lightness from 20% to 75%.

Use hsl for colors

Files

You only need to create & submit the JS file gossip-grid.js; we're providing you the following files to download and test locally:

  • the HTML file gossip-grid.html to open in the browser, which includes:

    • the JS script which will enable you to run your code.
  • the data file gossip-grid.data.js from which you can import gossips.

  • feel free to use the CSS file gossip-grid.data.css as it is or you can also modify it.

Expected result

You can see an example of the expected result here

Notions