Compare commits

...

2 Commits

Author SHA1 Message Date
710dddd4a6 lol 2024-10-10 18:32:10 -03:00
3bf4408562 kiki 2024-10-10 18:30:25 -03:00
9 changed files with 137 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

View File

@ -3,7 +3,6 @@
image-rendering: auto; image-rendering: auto;
} }
#kiki_portrait{ table{
width: 136px; border-color: green;
height: auto;
} }

View File

@ -0,0 +1,7 @@
.lostAeon{
color: yellow;
}
.kiki_pixel{
border: 1px solid var(--celeste)
}

View File

@ -11,6 +11,10 @@ body{
image-rendering: pixelated; image-rendering: pixelated;
} }
table{
border-color: var(--celeste);
}
p{ p{
color: white; color: white;
} }
@ -26,4 +30,12 @@ hr{
border-top: 1px solid var(--celeste); border-top: 1px solid var(--celeste);
margin: 1em 0; margin: 1em 0;
padding: 0; padding: 0;
}
img{
max-width: 100%;
}
section{
padding: 10px;
} }

View File

@ -4,6 +4,33 @@ const router = express.Router();
const { readCsv } = require('../utils/csv'); const { readCsv } = require('../utils/csv');
const { dirname } = require('path'); const { dirname } = require('path');
const appDir = dirname(require.main.filename); const appDir = dirname(require.main.filename);
const fs = require('fs')
function addPaths(path){
const viewsRelativeDir = path.split('/views/')[1]
fs.readdir(path, (err, files) => {
if(err){
console.error(err)
return
}
files.forEach(file => {
const splitFile = file.split('.')
if (splitFile[splitFile.length-1] === 'hbs'){
splitFile.pop()
const viewName = splitFile.join('.')
createCommonPath(router, viewsRelativeDir + viewName)
}
else{
if (file === 'partials' || file === 'layouts') return
addPaths(path + file + '/')
}
})
})
}
addPaths(appDir + '/views/')
createCommonPath(router, '/', {view: "home"}) createCommonPath(router, '/', {view: "home"})

View File

@ -15,11 +15,11 @@
E-mail: <a href="mailto:gor@lyricaltokarev.com">gor@lyricaltokarev.com</a> - <a href="/public/etc/gor.asc">PGP Key</a> (03E152196B44F1493A40DD422BC14FE04B476C38)<br> E-mail: <a href="mailto:gor@lyricaltokarev.com">gor@lyricaltokarev.com</a> - <a href="/public/etc/gor.asc">PGP Key</a> (03E152196B44F1493A40DD422BC14FE04B476C38)<br>
If possible, encrypt your communications. If possible, encrypt your communications.
</p> </p>
<table border="1" align="center" cellpading="0" bordercolor="green"> <table border="1" align="center" cellpading="0">
<tbody> <tbody>
<tr> <tr>
<td> <td>
<img title="トップをねらえ!魔法少女危機!!!" id="kiki_portrait" src="/public/images/kiki.png"> <a href="/kiki"><img width="136px" title="トップをねらえ!魔法少女危機!!!" id="kiki_portrait" src="/public/images/kiki.png"></a>
</td> </td>
</tr> </tr>
</tbody> </tbody>

9
views/kiki.hbs Normal file
View File

@ -0,0 +1,9 @@
<body>
<center>
<br>
<br>
<br>
<h1>Kiki Nation</h1>
<a href="/kiki/kiki"><img src="/public/images/kiki/kiki_nation.gif"><br>>Enter<</a>
</center>
</body>

78
views/kiki/kiki.hbs Normal file
View File

@ -0,0 +1,78 @@
<body>
<center>
<h1>Kiki</h1>
<table cellpadding="5" border="1px">
<tbody>
<tr>
<td colspan="2">
Name: Kiki
</td>
<td>
Age: Second Year Student
</td>
<td>
Occupation: Second Year Student
</td>
</tr>
<tr>
<td cellpadding="0">
<img width="300px" class="kiki_pixel" src="/public/images/kiki.png">
</td>
<td valign="top" colspan="2">
Spells:<br>
Fireball<br>
Teleport (To Mouse Location)<br>
Paralyze (Like Argentum Online by Pablo Marquez Alias Morgolock)<br>
<span class="lostAeon">Hyperborea Buster</span><br>
<br>
<hr>
<hr>
Transformations:<br>
<span class="lostAeon">Lost Aeon ~ Forsaken Executioner<br>
(Requires Raging Heart Heat Meter 100%)</span><br>
<img width="64px" src="/public/images/kiki/transformation.png">
</td>
<td valign="top">
Inventory:<br>
Homeconomicon<br>
Return Branch<br>
<span class="lostAeon">Raging Heart ~ To Protect Those That I Love!</span><br>
(Of Ancient And Mystical Knowledge) Toilet Paper Roll<br>
Probably a scroll<br>
<hr>
<hr>
<center>
<marquee scrollamount="10">
<img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"></img><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"></img><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"></img><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"></img><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"></img><img src="/public/images/assets/kiki_small_floating_head.png">
</marquee><br>
<marquee scrollamount="20">
<img src="/public/images/assets/kiki_floating_head.png"></img><img src="/public/images/assets/kiki_floating_head.png"></img><img src="/public/images/assets/kiki_floating_head.png"></img><img src="/public/images/assets/kiki_floating_head.png"></img><img src="/public/images/assets/kiki_floating_head.png"></img><img src="/public/images/assets/kiki_floating_head.png"></img>
</marquee><br>
<marquee scrollamount="10">
<img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"></img><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"></img><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"></img><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"></img><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"><img src="/public/images/assets/kiki_small_floating_head.png"></img><img src="/public/images/assets/kiki_small_floating_head.png">
</marquee>
</center>
</td>
</tr>
<tr>
<td>
Affiliations: Unknown
</td>
<td>
Likes: Unknown
</td>
<td>
Dislikes: Unknown
</td>
<td>
Famous Quotes:<br>
"The buddhists are in the bathrooms"<br>
</td>
</tr>
<tr align="center">
<td colspan="4">Origin: トップをねらえ!魔法少女危機!!!</td>
</tr>
</tbody>
</table>
</center>
</body>