Skip to content

最近の話

Published: at 11:32

このブログの形式は1年3か月前に作っていたのだけど、なぜか使っておらず、変に凝ったものをつくろうとして時間がたっていたのだけど、Cloudflareにアップ済みこのテンプレートを見つけてこれええやんとなった。

Table of contents

Open Table of contents

Intro

イントロ

Tech Stack

メモ

いろいろ書く、いろいろ

Features

あああ

Multiple Themes

Users can change multiple themes. At the time of writing this post, there are 5 themes; and more themes will probably be added in the future. The selected theme is saved in local storage so that the theme won’t change on page refresh.

Setting different theme

Command-line Completion

To look and feel as close to the actual terminal as possible, I put a command-line completion feature which auto fills in partially typed commands by simply pressing ‘Tab’ or ‘Ctrl + i’.

Demonstrating command-line completion

Previous Commands

Users can go back to the previous commands or navigate the previously typed commands by pressing Up & Down Arrows.

Going back to previous commands with UP Arrow

View/Clear Command History

previously typed commands can be viewed by typing ‘history’ in the command line. All the command history and terminal screen can be wiped out by typing ‘clear’ or pressing ‘Ctrl + l’.

Clearing the terminal with 'clear' or 'Ctrl + L' command

Outro

This is a really fun project, and one special part of this project is I had to focus on logic rather than user-interface (even though this is kind of a frontend project).