Skip to main content
100%

Smiley face part 1

✓ Published0🌍 Public
CChrisishere
Last edited Apr 23, 2021
Created on Apr 18, 2021
Forked from HTML Starter

This example shows a yellow smiley face rendered as an SVG within a React application, featuring two black eye circles on a larger circular face. The face is centered on a 960×500 viewport, with the face radius and eye positions calculated from the center coordinates and fixed offset values. The code uses React and ReactDOM to render the SVG elements, with inline styling for stroke width and fill colors. The face circle uses a yellow fill with a black stroke, while the eyes are positioned using centerX and centerY with offset values, though one variable name inconsistency exists in the eye offsets.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes