Skip to main content
100%

smiley faces

✓ Published0🌍 Public
Yyeeet0421
Last edited Sep 19, 2022
Created on Sep 13, 2022
Forked from HTML Starter

A grid of 36 smiley faces renders via React components, with each face composed of D3-generated SVG shapes for the background circle, eyes, and mouth. The faces vary slightly in eye position and radius due to randomized values applied per face. Using `range` from D3 to generate the grid, the app maps each index to a `Face` component, scaling the composition across the viewport. The mouth uses D3’s `arc` generator with a fixed inner radius and angular span, while SVG `g` transforms center each face within its container.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes