Skip to main content
100%

smiley face nojs

✓ Published0🌍 Public
DDavid Beales
Last edited Mar 27, 2023
Created on Sep 22, 2022
Forked from HTML Starter

This example renders a grid of procedurally generated smiley faces using React components and D3’s `arc` generator for the mouths. Each face is built from SVG circles for the eyes and background, with randomized stroke widths, eye positions, and mouth dimensions via `Math.random`. The `FaceContainer` translates a central group, while `index.js` maps over `range(18)` to produce multiple variations, showcasing reusable component composition without external data.

AI-generated description

Halway to a smileyface, no js

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes