diff options
Diffstat (limited to 'www/src/components/Shell.astro')
-rw-r--r-- | www/src/components/Shell.astro | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/www/src/components/Shell.astro b/www/src/components/Shell.astro deleted file mode 100644 index 09d4e0aeb..000000000 --- a/www/src/components/Shell.astro +++ /dev/null @@ -1,28 +0,0 @@ ---- -export interface Props { - code: string; -} -const { code } = Astro.props; ---- - -<pre><code>{String(code).trim().split('\n').map( - line => <span class="line">{ - line.startsWith('#') ? <span class="comment">{line}</span> : line - }</span>) -}</code></pre> - -<style> - pre, - code { - white-space: pre; - } - .comment { - color: var(--color-gray-400); - } - .line { - display: block; - } - .line:empty::after { - content: ' '; - } -</style> |