add more pages to the website
This commit is contained in:
parent
fe9a62edd2
commit
82e338147e
4 changed files with 24 additions and 1 deletions
6
pages/about.html
Normal file
6
pages/about.html
Normal 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
5
pages/contact.html
Normal 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>
|
|
@ -1 +1,4 @@
|
|||
Hello!
|
||||
<h2>this is my homepage</h2>
|
||||
<p>i think</p>
|
||||
<br>
|
||||
<p>i'm hippoz. i sometimes do stuff.</p>
|
|
@ -12,10 +12,19 @@ const onButtonClick = (buttonId) => {
|
|||
window.location.href = 'https://git.hippoz.xyz/'
|
||||
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('#content-container').load('/pages/home.html');
|
||||
A('.navigation-buttons .button-default').each((el) => {
|
||||
A(el).on('click', () => {
|
||||
onButtonClick(el.id);
|
||||
|
|
Loading…
Reference in a new issue