Skip to main content
100%

Hello HTML

✓ Published0🌍 Public
Jjsilvermanh
Last edited Sep 28, 2023
Created on Sep 28, 2023
Forked from HTML Starter

This example shows a simple smiley face rendered as an SVG graphic using React components. The face consists of a yellow circle, two eyes, and a mouth arc, all composed through reusable React components like `BackgroundCircle` and `Eyes`. The code imports `arc` from D3 v7 to generate the mouth path, while React 18 handles component structure and rendering. Static values for geometry, such as eye offset and mouth radius, are defined in the main `App` component, which transforms the group to center the face in a 960×500 SVG viewport.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes