diff --git a/package-lock.json b/package-lock.json
index d9a560c..b4c7c9b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,8 +9,8 @@
"version": "0.0.1",
"dependencies": {
"astro": "^1.2.6",
- "astro-github-stats": "^0.2.1",
- "astro-reactive-form": "^0.0.10"
+ "astro-github-stats": "^0.3.1",
+ "astro-reactive-form": "^0.1.1"
}
},
"node_modules/@ampproject/remapping": {
@@ -985,17 +985,17 @@
}
},
"node_modules/astro-github-stats": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/astro-github-stats/-/astro-github-stats-0.2.1.tgz",
- "integrity": "sha512-MGbJB8sCJEl67tl7qvg+FPpgrmNDmBIjXzhEQxwPvEy574rbp019bdCTK9T3AX84sWD0QFh/zpiGBOpKSHU6Bw==",
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/astro-github-stats/-/astro-github-stats-0.3.1.tgz",
+ "integrity": "sha512-AAsXvo6H8WiSoEjHLpbgetlrI8rNpZ7xY9bY3O++qysMXng3uzwxTyhPcvE5yI1QYJ4EdkB8ByiOUydOp5Fg1w==",
"peerDependencies": {
"astro": "^1.0.0"
}
},
"node_modules/astro-reactive-form": {
- "version": "0.0.10",
- "resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.0.10.tgz",
- "integrity": "sha512-51UmPdyPIZ+fovQvCgT4XctvvSJJoKMuIgitj7jqnFxqgBKMPPZVvJHnwRz3ssLe+vtaS83pyoLrJt+Fuc5yJQ==",
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.1.1.tgz",
+ "integrity": "sha512-E9AabXwZKpq+nevtdKK0IGKMdGW+AyvHRraKovMarxBnVCl9ypzXXQ1FRqxgczrd1vsNTeR95G8165T+oPahMA==",
"peerDependencies": {
"astro": "^1.0.0"
}
@@ -6570,15 +6570,15 @@
}
},
"astro-github-stats": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/astro-github-stats/-/astro-github-stats-0.2.1.tgz",
- "integrity": "sha512-MGbJB8sCJEl67tl7qvg+FPpgrmNDmBIjXzhEQxwPvEy574rbp019bdCTK9T3AX84sWD0QFh/zpiGBOpKSHU6Bw==",
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/astro-github-stats/-/astro-github-stats-0.3.1.tgz",
+ "integrity": "sha512-AAsXvo6H8WiSoEjHLpbgetlrI8rNpZ7xY9bY3O++qysMXng3uzwxTyhPcvE5yI1QYJ4EdkB8ByiOUydOp5Fg1w==",
"requires": {}
},
"astro-reactive-form": {
- "version": "0.0.10",
- "resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.0.10.tgz",
- "integrity": "sha512-51UmPdyPIZ+fovQvCgT4XctvvSJJoKMuIgitj7jqnFxqgBKMPPZVvJHnwRz3ssLe+vtaS83pyoLrJt+Fuc5yJQ==",
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.1.1.tgz",
+ "integrity": "sha512-E9AabXwZKpq+nevtdKK0IGKMdGW+AyvHRraKovMarxBnVCl9ypzXXQ1FRqxgczrd1vsNTeR95G8165T+oPahMA==",
"requires": {}
},
"bail": {
diff --git a/package.json b/package.json
index 21036cd..f944d0c 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
},
"dependencies": {
"astro": "^1.2.6",
- "astro-github-stats": "^0.2.1",
- "astro-reactive-form": "^0.0.10"
+ "astro-github-stats": "^0.3.1",
+ "astro-reactive-form": "^0.1.1"
}
}
diff --git a/src/pages/showcase/astro-github-stats.astro b/src/pages/showcase/astro-github-stats.astro
index 16caa07..dd0ad7c 100644
--- a/src/pages/showcase/astro-github-stats.astro
+++ b/src/pages/showcase/astro-github-stats.astro
@@ -9,9 +9,17 @@ import GithubStats from "astro-github-stats";
Astro GitHub Stats ✨
+
+ Account Stats
+
+ Account Top Languages
+
+
+ Repo card
- Links
+
+ Links
-
GitHub repo:
+
diff --git a/src/pages/showcase/astro-reactive-form.astro b/src/pages/showcase/astro-reactive-form.astro
index d2eb7b3..343a79e 100644
--- a/src/pages/showcase/astro-reactive-form.astro
+++ b/src/pages/showcase/astro-reactive-form.astro
@@ -2,8 +2,22 @@
import Layout from "../../layouts/Layout.astro";
import Footer from "../../components/Footer.astro";
import Back from "../../components/Back.astro";
-import Form, { FormGroup } from "astro-reactive-form";
-const form = new FormGroup([
+import Form, { FormControl, FormGroup } from "astro-reactive-form";
+
+const simpleForm = new FormGroup([
+ {
+ name: "simple-text",
+ label: "Simple Text Control",
+ },
+ {
+ name: "a-checkbox",
+ label: "A Checkbox with Label on the left",
+ type: "checkbox",
+ value: "checked",
+ },
+]);
+
+const name: FormControl[] = [
{
name: "first-name",
value: "Ayo",
@@ -14,21 +28,30 @@ const form = new FormGroup([
value: "Ayco",
label: "Last Name",
},
- {
- name: "is-awesome",
- type: "checkbox",
- value: "checked",
- label: "Is Awesome?",
- labelPosition: "right",
- },
+];
+
+const characteristics: FormControl[] = [
{
name: "is-good-looking",
type: "radio",
+ label: "Is Good Looking?",
value: "checked",
- label: "Is Good-Looking?",
labelPosition: "right",
},
-]);
+ {
+ name: "is-awesome",
+ type: "checkbox",
+ label: "Is Awesome?",
+ value: "checked",
+ labelPosition: "right",
+ },
+];
+
+const nameForm: FormGroup = new FormGroup(name, "Name");
+const characteristicsForm: FormGroup = new FormGroup(
+ characteristics,
+ "Characteristics"
+);
---
@@ -36,9 +59,13 @@ const form = new FormGroup([
Astro Reactive Form 🔥
-
+ Simple single form group
+
- Links
+ Multiple Form Groups
+
+
+ Links
-
GitHub repo: