update home

This commit is contained in:
2023-08-03 21:52:50 +03:00
parent 5420715adc
commit ec67c82886
6 changed files with 41 additions and 31 deletions

View File

@@ -1,3 +1,5 @@
import { routes } from './routes.js';
/* main */
window.onload = function () {
let app = document.documentElement;
@@ -54,26 +56,3 @@ const location_handler = async () => {
.querySelector('meta[name="description"]')
.setAttribute('content', route.description);
};
const routes = {
404: {
template: '/pages/404.html',
title: '404',
description: 'Page not found',
},
'/': {
template: '/pages/home.html',
title: 'Home',
description: '...',
},
about: {
template: '/pages/about.html',
title: 'About Us',
description: '...',
},
games: {
template: '/pages/games.html',
title: 'Games',
description: '...',
},
};

22
app/assets/js/routes.js Normal file
View File

@@ -0,0 +1,22 @@
export const routes = {
404: {
template: '/pages/404.html',
title: '404',
description: 'Page not found',
},
'/': {
template: '/pages/home.html',
title: 'a2s',
description: '...',
},
about: {
template: '/pages/about.html',
title: 'О сайте',
description: '...',
},
games: {
template: '/pages/games.html',
title: 'Games',
description: '...',
},
};

View File

@@ -1,7 +1,6 @@
<footer class="text-center mt-3 text-white-50">
<p class="text-shadow m-0">// licking and assemble //</p>
<footer class="text-center text-shadow mt-3 text-white-50">
<p class="font-monospace">
build:
<a class="text-reset" href="#" target="_blank">ab6324f</a>
<a class="text-reset text-decoration-none border-bottom py-1" href="#" target="_blank">ab6324f</a>
</p>
</footer>

View File

@@ -1,7 +1,8 @@
<header class="mb-3">
<div class="text-shadow">
<h3 id="app_title" class="float-md-start mb-0">
<span class="font-monospace">inet://home/</span>
<span class="font-monospace">inet://home/</span><br>
<p class="text-secondary fs-6 text-shadow m-0">// licking and assemble //</p>
</h3>
<nav class="nav nav-masthead justify-content-center float-md-end">
<a class="nav-link fw-bold py-1 px-0 icon-link" href="/">