Skip to main content
100%

Fork of smile face part 1

✓ Published0🌍 Public
Hhung2606
Last edited Oct 9, 2021
Created on Oct 9, 2021
Forked from smile face part 1

This example displays a simple smiley face drawn as a yellow circle with black stroke, two eyes, and an arc-shaped mouth, all centered in an SVG. It shows how reusable React components define each facial part, with the `BackgroundCircle` and `Eyes` components accepting props for sizing and positioning. The code uses D3’s `arc` generator to create the mouth path, while React 17 and D3 v7 render the static SVG output. The viewport is fixed at 960 by 500 pixels, with a hidden overflow style.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes