Skip to main content
100%

Smiley Face Part I

✓ Published0🌍 Public
NNan Meng
Last edited Apr 19, 2021
Created on Apr 13, 2021
Forked from HTML Starter

This example shows a static yellow circle with a black stroke, positioned as the head of a smiley face, alongside two smaller filled circles representing eyes. The code uses React and ReactDOM to render the SVG elements, though the current version only displays the head and eyes—the mouth is not yet drawn, leaving the face incomplete. The SVG canvas is set to 960 by 500 pixels, with the circles explicitly positioned using cx and cy coordinates. The project relies on React’s production build loaded from unpkg, with the markup embedded in JSX within the React component.

AI-generated description

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

See also React Starter.

  1. Half way towards a smile face.
MIT Licensed

Similar vizzes