From b801ac9da66bd7ed471b45ef2e512ebe0ed276d1 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 9 Feb 2026 16:06:27 -0600 Subject: [PATCH] Update README.md --- README.md | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 624595a..23214db 100644 --- a/README.md +++ b/README.md @@ -64,8 +64,33 @@ There are quill functions for every HTML style attribute. If they have units, th ### Real Home Shadow Example: -When starting, it is typical to make a "Home" shadow. This is a good example. +First, you need your index.html. Here is one: +``` + + + + Parchment + + + + + + + + + +``` + +When starting, it is typical to make a "Home" shadow and import it in index.js. Here is an example: + +index.js: +``` +import "./Home.js" +Home() +``` + +Home.js: ``` import "../components/NavBar.js" import "./HomeContent.js" @@ -120,4 +145,19 @@ class Home extends Shadow { register(Home) +``` + + +Success.js: + +``` +class Success extends Shadow { + render() { + p("Thanks for your purchase! You will receive a confirmation email shortly.

Keep that email; it will be checked at the door.") + .x(50, vw).y(50, vh) + .center() + } +} + +register(Success) ``` \ No newline at end of file