aboutsummaryrefslogtreecommitdiff
path: root/src/js/ui/sections/notFoundSection.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-03 12:15:31 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-03 12:15:31 +0200
commitad0f59fbc2dea546d1e33e2f4ee515827e698eed (patch)
treea0931bb97a482fa087d78a2218453f16c24a8a3c /src/js/ui/sections/notFoundSection.js
parentfb2428fb2eff87150d40d84b83c66ccdd7ea47b3 (diff)
downloadarching-kaos-web-ui-ad0f59fbc2dea546d1e33e2f4ee515827e698eed.tar.gz
arching-kaos-web-ui-ad0f59fbc2dea546d1e33e2f4ee515827e698eed.tar.bz2
arching-kaos-web-ui-ad0f59fbc2dea546d1e33e2f4ee515827e698eed.zip
Separating content from layout
Diffstat (limited to 'src/js/ui/sections/notFoundSection.js')
-rw-r--r--src/js/ui/sections/notFoundSection.js29
1 files changed, 21 insertions, 8 deletions
diff --git a/src/js/ui/sections/notFoundSection.js b/src/js/ui/sections/notFoundSection.js
index 3e3d000..46fc421 100644
--- a/src/js/ui/sections/notFoundSection.js
+++ b/src/js/ui/sections/notFoundSection.js
@@ -9,15 +9,19 @@ import { makeElement } from "../../arching-kaos-generator.js";
export function notFoundSection()
{
- var notFoundSection = {
- element: 'div',
- id: 'not-found-section',
- hidden: true,
+ var whereAmI = {
+ element: "div",
+ className: "where-am-i",
+ innerHTML: [
+ { element: "img", src:"./img/logo.png", onclick:"menusel({id:'#/welcome-section'})"},
+ { element: "span", innerText:">"},
+ { element: "h2", innerText:"Not found"}
+ ]
+ };
+ var content = {
+ element: "div",
+ className: "content",
innerHTML: [
- {
- element: 'h2',
- innerText: 'Not found'
- },
{
element: 'p',
innerText: 'Soft 404'
@@ -28,6 +32,15 @@ export function notFoundSection()
}
]
};
+ var notFoundSection = {
+ element: 'div',
+ id: 'not-found-section',
+ hidden: true,
+ innerHTML: [
+ whereAmI,
+ content
+ ]
+ };
makeElement(notFoundSection, document.querySelector('.main'));
}