add more pages to the website

This commit is contained in:
hippoz 2020-10-04 22:48:57 +03:00
parent fe9a62edd2
commit 82e338147e
4 changed files with 24 additions and 1 deletions

6
pages/about.html Normal file
View file

@ -0,0 +1,6 @@
<h2>this is my about page</h2>
<p>i think</p>
<br>
<p>i'm hippoz.</p>
<p>i sometimes work on projects.</p>
<p>i think i like javascript, node, c, c++, html, and some other stuff.</p>

5
pages/contact.html Normal file
View file

@ -0,0 +1,5 @@
<h2>you can contact me</h2>
<p>i think</p>
<br>
<p>my email is hippoz@hippoz.xyz</p>
<p>i might respond.</p>

View file

@ -1 +1,4 @@
Hello! <h2>this is my homepage</h2>
<p>i think</p>
<br>
<p>i'm hippoz. i sometimes do stuff.</p>

View file

@ -12,10 +12,19 @@ const onButtonClick = (buttonId) => {
window.location.href = 'https://git.hippoz.xyz/' window.location.href = 'https://git.hippoz.xyz/'
break; break;
} }
case 'button-about-me': {
A('#content-container').load('/pages/about.html');
break;
}
case 'button-contact-me': {
A('#content-container').load('/pages/contact.html');
break;
}
} }
}; };
A(() => { A(() => {
A('#content-container').load('/pages/home.html');
A('.navigation-buttons .button-default').each((el) => { A('.navigation-buttons .button-default').each((el) => {
A(el).on('click', () => { A(el).on('click', () => {
onButtonClick(el.id); onButtonClick(el.id);