diff --git a/templates/vanilla-js-example/index.html b/templates/vanilla-js-example/index.html
index a479916..2636f39 100644
--- a/templates/vanilla-js-example/index.html
+++ b/templates/vanilla-js-example/index.html
@@ -29,9 +29,8 @@
Explore this demo app built with vanilla JavaScript, Tailwind, and
- Juno
-
- , showcasing a practical application of these technologies.
+ Juno, showcasing a practical application of these technologies.
diff --git a/templates/vanilla-js-example/package.json b/templates/vanilla-js-example/package.json
index 1ca0817..657f88a 100644
--- a/templates/vanilla-js-example/package.json
+++ b/templates/vanilla-js-example/package.json
@@ -20,6 +20,7 @@
"vite": "^5.2.0"
},
"dependencies": {
- "@junobuild/core": "^0.0.49"
+ "@junobuild/core": "^0.0.49",
+ "nanoid": "^5.0.7"
}
}
diff --git a/templates/vanilla-js-example/src/components/content.js b/templates/vanilla-js-example/src/components/content.js
new file mode 100644
index 0000000..62ca59e
--- /dev/null
+++ b/templates/vanilla-js-example/src/components/content.js
@@ -0,0 +1,11 @@
+import {renderLogout} from './logout';
+import {renderModal} from './modal';
+
+export const renderContent = (app) => {
+ app.innerHTML = `
+
+ ${renderModal(app)}
+
+ ${renderLogout(app)}
+
`;
+};
diff --git a/templates/vanilla-js-example/src/components/logout.js b/templates/vanilla-js-example/src/components/logout.js
index ab9768c..2b63b54 100644
--- a/templates/vanilla-js-example/src/components/logout.js
+++ b/templates/vanilla-js-example/src/components/logout.js
@@ -8,7 +8,7 @@ export const renderLogout = (app) => {
fn: signOut
});
- app.innerHTML = `