added fancy ascii image

This commit is contained in:
valentijn
2024-02-05 11:16:47 +01:00
parent 2dc4fc6a95
commit e74086d588
6 changed files with 23 additions and 10 deletions

View File

@@ -127,7 +127,21 @@ function help(req, res) {
function info(req, res){
respondToCommand(
req, res,
`<div style='display:flex; justify-content:flex-start; gap:5px;'>
<img src='icon-ascii.png' alt='ascii image' style='height: 600px;'/>
<div style='display:flex; flex-direction: column; gap:15px; justify-content: center;'>
<p>OS: HerpDerpOS</p>
<p>USER: ${req.session.state.username}</p>
<p>CPU: 12th Gen Intel i7-1260P (12) @ 2.496GHz</p>
<p>GPU: NVIDIA Geforce RTX 4060 TI</p>
<p>Memory: 812MiB/2048MiB</p>
</div>
</div>`,
req.session.state.directory,
"info"
)
}
function respondToCommand(req, res, text, directory, command) {