add: desktop
command
This commit is contained in:
parent
a8c5adaeea
commit
01c8eb3b27
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
@ -77,4 +77,17 @@ input {
|
|||||||
#switch_theme {
|
#switch_theme {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-grid {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-grid > * {
|
||||||
|
max-width: 50%;
|
||||||
|
max-height: 50%;
|
||||||
}
|
}
|
@ -150,6 +150,26 @@ const COMMANDS = [
|
|||||||
|
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'desktop',
|
||||||
|
description: 'Show some desktop screenshots',
|
||||||
|
usage: '',
|
||||||
|
usage_examples: [],
|
||||||
|
arguments: [],
|
||||||
|
output: () => {
|
||||||
|
let result = [];
|
||||||
|
|
||||||
|
for (let i = 0; i < 3;) {
|
||||||
|
result.push(`<img src="assets/desktop_screenshots/${++i}.png" alt="Desktop screenshot"/>`)
|
||||||
|
}
|
||||||
|
|
||||||
|
return `
|
||||||
|
<div class="image-grid">
|
||||||
|
${result.join('\n')}
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user