From 5dd9537779222408ebd955cc0c09ebc3f5878699 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Sun, 23 Jun 2024 19:42:45 -0400 Subject: [PATCH 01/15] WIP landing page with spinning logo --- .../src/template/src/components/logo/logo.css | 23 ++++ .../src/template/src/components/logo/logo.js | 22 ++++ packages/init/src/template/src/favicon.ico | Bin 0 -> 15406 bytes .../init/src/template/src/pages/index.html | 99 ++++++++++++++++++ packages/init/src/template/src/pages/index.md | 1 - 5 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 packages/init/src/template/src/components/logo/logo.css create mode 100644 packages/init/src/template/src/components/logo/logo.js create mode 100644 packages/init/src/template/src/favicon.ico create mode 100644 packages/init/src/template/src/pages/index.html delete mode 100644 packages/init/src/template/src/pages/index.md diff --git a/packages/init/src/template/src/components/logo/logo.css b/packages/init/src/template/src/components/logo/logo.css new file mode 100644 index 000000000..af78f7213 --- /dev/null +++ b/packages/init/src/template/src/components/logo/logo.css @@ -0,0 +1,23 @@ + +:host img { + padding: 1.5em; + will-change: filter; + transition: filter 300ms; + width: 30%; +} + +@media (prefers-reduced-motion: no-preference) { + img { + animation: logo-spin infinite 20s linear; + } +} + +@keyframes logo-spin { + from { + transform: rotate(360deg); + } + + to { + transform: rotate(0deg); + } +} \ No newline at end of file diff --git a/packages/init/src/template/src/components/logo/logo.js b/packages/init/src/template/src/components/logo/logo.js new file mode 100644 index 000000000..7a1d405a0 --- /dev/null +++ b/packages/init/src/template/src/components/logo/logo.js @@ -0,0 +1,22 @@ +import sheet from './logo.css' with { type: 'css' }; + +const template = document.createElement('template'); + +template.innerHTML = ` + + + +`; + +class Logo extends HTMLElement { + connectedCallback() { + if (!this.shadowRoot) { + this.attachShadow({ mode: 'open' }); + this.shadowRoot.appendChild(template.content.cloneNode(true)); + } + + this.shadowRoot.adoptedStyleSheets = [sheet]; + } +} + +customElements.define('x-logo', Logo); \ No newline at end of file diff --git a/packages/init/src/template/src/favicon.ico b/packages/init/src/template/src/favicon.ico new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Pg212*Yx=2$(%7%#Ja4fY>t&-xveX8Xg9e{I_Txc-9!=Ys?P2iX{w AMF0Q* literal 0 HcmV?d00001 diff --git a/packages/init/src/template/src/pages/index.html b/packages/init/src/template/src/pages/index.html new file mode 100644 index 000000000..b0a88fb8f --- /dev/null +++ b/packages/init/src/template/src/pages/index.html @@ -0,0 +1,99 @@ + + + + Greenwood + + + + + + + + + + + + + + + +
+ +

Welcome to Greenwood!

+ + + +

Edit src/pages/index.html to start making changes

+ +
    +
  • + Getting Started + Lorum Ipsum +
  • +
  • + Docs + Blah Blah +
  • +
  • + Guides + Learn how to build and deploy your app! +
  • +
  • + Community + Come reach out to us on GitHub or Discord +
  • +
+
+ + + \ No newline at end of file diff --git a/packages/init/src/template/src/pages/index.md b/packages/init/src/template/src/pages/index.md deleted file mode 100644 index 6b343b58c..000000000 --- a/packages/init/src/template/src/pages/index.md +++ /dev/null @@ -1 +0,0 @@ -## My Project \ No newline at end of file From 4407be743f4ea142526d934968c02011109b2bd0 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Sun, 23 Jun 2024 20:17:48 -0400 Subject: [PATCH 02/15] flesh out cards conent --- .../src/template/src/components/logo/logo.css | 2 +- .../init/src/template/src/pages/index.html | 60 ++++++++++++------- 2 files changed, 39 insertions(+), 23 deletions(-) diff --git a/packages/init/src/template/src/components/logo/logo.css b/packages/init/src/template/src/components/logo/logo.css index af78f7213..49fcbe041 100644 --- a/packages/init/src/template/src/components/logo/logo.css +++ b/packages/init/src/template/src/components/logo/logo.css @@ -3,7 +3,7 @@ padding: 1.5em; will-change: filter; transition: filter 300ms; - width: 30%; + width: 15%; } @media (prefers-reduced-motion: no-preference) { diff --git a/packages/init/src/template/src/pages/index.html b/packages/init/src/template/src/pages/index.html index b0a88fb8f..3ad4ce015 100644 --- a/packages/init/src/template/src/pages/index.html +++ b/packages/init/src/template/src/pages/index.html @@ -52,13 +52,27 @@ ul { list-style-type: none; padding: 0; - display: block; display: flex; flex-wrap: wrap; } - li { + .card { + width: 40%; + margin: 5px auto; + padding: 1rem; + height: 100px; + display: inline-block; + background-color: #edefec; + border-radius: 1rem; + color: #020202; + @media(max-width: 768px) { + width: 80%; + } + } + + a { + color: #020202; } @@ -66,7 +80,6 @@ -

Welcome to Greenwood!

@@ -75,25 +88,28 @@

Welcome to Greenwood!

Edit src/pages/index.html to start making changes

-
    -
  • - Getting Started - Lorum Ipsum -
  • -
  • - Docs - Blah Blah -
  • -
  • - Guides - Learn how to build and deploy your app! -
  • -
  • - Community - Come reach out to us on GitHub or Discord -
  • -
+
+
+

Getting Started

+

Follow our guide on learning Greenwood for the first time.

+
+ +
+

Docs

+

Learn about Greenwood's features and capabilities.

+
+ +
+

Guides

+

Walkthroughs on ways to build and deploy with Greenwood.

+
+ +
+

Community

+

Come join us GitHub and Discord.

+
+
+
- \ No newline at end of file From b2b08cfc736dd6013ad356705073adab3e9ab6ec Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Tue, 25 Jun 2024 20:57:15 -0400 Subject: [PATCH 03/15] comment out fonts --- packages/init/src/template/src/pages/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/init/src/template/src/pages/index.html b/packages/init/src/template/src/pages/index.html index 3ad4ce015..1c4afbde0 100644 --- a/packages/init/src/template/src/pages/index.html +++ b/packages/init/src/template/src/pages/index.html @@ -11,7 +11,7 @@ + - + - + - + `; From f798bd800370d2a647d5451ab4ae87d03e1b2590 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Sat, 29 Jun 2024 16:12:36 -0400 Subject: [PATCH 08/15] add links --- packages/init/src/template/src/pages/index.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/init/src/template/src/pages/index.html b/packages/init/src/template/src/pages/index.html index 3ad4ce015..187bf9492 100644 --- a/packages/init/src/template/src/pages/index.html +++ b/packages/init/src/template/src/pages/index.html @@ -74,6 +74,10 @@ a { color: #020202; } + + x-logo:not(:defined) { + opacity: 0; + } @@ -91,17 +95,17 @@

Edit src/pages/index.html to start making changes

Getting Started

-

Follow our guide on learning Greenwood for the first time.

+

Follow our guide on learning Greenwood for the first time.

Docs

-

Learn about Greenwood's features and capabilities.

+

Learn about Greenwood's features and capabilities.

Guides

-

Walkthroughs on ways to build and deploy with Greenwood.

+

Walkthroughs on ways to build and deploy with Greenwood.

From decc78653200a6466f12d5420b6ce9f2b0067f13 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Fri, 2 Aug 2024 20:19:28 -0400 Subject: [PATCH 09/15] responsive and misc styling tweaks --- .../src/template/src/components/logo/logo.css | 21 ++++++- .../init/src/template/src/pages/index.html | 58 +++++++------------ 2 files changed, 42 insertions(+), 37 deletions(-) diff --git a/packages/init/src/template/src/components/logo/logo.css b/packages/init/src/template/src/components/logo/logo.css index a90330c03..13e2f3999 100644 --- a/packages/init/src/template/src/components/logo/logo.css +++ b/packages/init/src/template/src/components/logo/logo.css @@ -7,9 +7,10 @@ .my-logo div { display: inline-block; - width: 8%; + max-width: 35%; vertical-align: middle; border-radius: 20px; + vertical-align: top; } svg { @@ -43,3 +44,21 @@ svg { animation: leafanimation 8s linear; } } + +@media(min-width: 500px) { + .my-logo div { + max-width: 23%; + } +} + +@media(min-width: 768px) { + .my-logo div { + max-width: 15%; + } +} + +@media(min-width: 1024px) { + .my-logo div { + max-width: 10%; + } +} \ No newline at end of file diff --git a/packages/init/src/template/src/pages/index.html b/packages/init/src/template/src/pages/index.html index 187bf9492..193f60b96 100644 --- a/packages/init/src/template/src/pages/index.html +++ b/packages/init/src/template/src/pages/index.html @@ -11,31 +11,13 @@ @@ -110,7 +96,7 @@

Guides

Community

-

Come join us GitHub and Discord.

+

Come join us on GitHub and Discord to get involved.

From 303fcbe681f7b4851e263f186fe46633cad38ff1 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Fri, 2 Aug 2024 21:45:25 -0400 Subject: [PATCH 10/15] correctly align logo --- packages/init/src/template/src/components/logo/logo.css | 9 ++++++++- packages/init/src/template/src/components/logo/logo.js | 2 +- packages/init/src/template/src/pages/index.html | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/init/src/template/src/components/logo/logo.css b/packages/init/src/template/src/components/logo/logo.css index 13e2f3999..9fb1ba1c8 100644 --- a/packages/init/src/template/src/components/logo/logo.css +++ b/packages/init/src/template/src/components/logo/logo.css @@ -5,6 +5,13 @@ color: transparent; } +.spacer { + height: 100px; + width: 100px; + display: block; + margin-top: -100px; +} + .my-logo div { display: inline-block; max-width: 35%; @@ -41,7 +48,7 @@ svg { @media (prefers-reduced-motion: no-preference) { .my-logo { - animation: leafanimation 8s linear; + animation: leafanimation 6s linear; } } diff --git a/packages/init/src/template/src/components/logo/logo.js b/packages/init/src/template/src/components/logo/logo.js index d3be3c26a..bad3aa2ed 100644 --- a/packages/init/src/template/src/components/logo/logo.js +++ b/packages/init/src/template/src/components/logo/logo.js @@ -4,7 +4,7 @@ const template = document.createElement('template'); template.innerHTML = `