From 3ed19ec8d4fafdfd367a375b1baf957121143174 Mon Sep 17 00:00:00 2001 From: Dwayne Charrington Date: Fri, 13 Dec 2024 20:52:21 +1000 Subject: [PATCH] feat(site): examples on homepage, restyle of single page --- themes/aurelia-theme/data/header.yaml | 4 ++ .../layouts/examples/single.html | 25 ++++++++- themes/aurelia-theme/layouts/index.html | 56 +++++++++++++++++++ 3 files changed, 84 insertions(+), 1 deletion(-) diff --git a/themes/aurelia-theme/data/header.yaml b/themes/aurelia-theme/data/header.yaml index 1f59bde..086fcea 100644 --- a/themes/aurelia-theme/data/header.yaml +++ b/themes/aurelia-theme/data/header.yaml @@ -15,6 +15,10 @@ menu: link: "/blog" icon: "blog" active: "eq .Section 'blog'" + - name: "Examples" + link: "/examples" + icon: "examples" + active: "eq .RelPermalink '/examples/'" - name: "Learn" link: "/learn" icon: "learn" diff --git a/themes/aurelia-theme/layouts/examples/single.html b/themes/aurelia-theme/layouts/examples/single.html index f80f7f7..fd81f2c 100644 --- a/themes/aurelia-theme/layouts/examples/single.html +++ b/themes/aurelia-theme/layouts/examples/single.html @@ -18,8 +18,31 @@

+
+
+
+
+

Want to explore the code?

+

Get all of the code for these examples in our repository.

+
+ + + View on GitHub + +
+
+
+ + -
+
diff --git a/themes/aurelia-theme/layouts/index.html b/themes/aurelia-theme/layouts/index.html index 34b5d7c..72fe745 100644 --- a/themes/aurelia-theme/layouts/index.html +++ b/themes/aurelia-theme/layouts/index.html @@ -138,6 +138,62 @@

+
+
+ + Interactive Examples + +

+ Learn by Example +

+

+ Explore our collection of interactive examples showcasing Aurelia 2's powerful features +

+
+ + +
+ +
+
+

Counter Example

+
+ + + +
+
+
+

A simple counter demonstrating reactive state management in Aurelia 2

+
+ + +
+
+

Real-time Clock

+
+ + + +
+
+
+

See how Aurelia 2 handles real-time updates and rendering

+
+
+ + + +
+

+