Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Cveinnt committed May 12, 2022
1 parent d7eed87 commit 00f8cb0
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 36 deletions.
49 changes: 26 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
# [LiveTerm - Make Terminal styled websites in minutes!](https://cveinnt.com)
# [LiveTerm - Make terminal styled websites in minutes!](https://liveterm.vercel.app)

Highly customizable, easy-to-use, and minimal terminal styled website template, written in Next.js.
Highly customizable, easy-to-use, and minimal terminal styled website template, powered by Next.js.

# Table of Contents:
To build a simple terminal styled website with LiveTerm, you only need to work with one file: `config.json`. After you filled out the config file, simply run `yarn install && yarn dev` to build your website!

- [LiveTerm - Make Terminal styled websites in minutes!](#liveterm---make-terminal-styled-websites-in-minutes)
- [Table of Contents:](#table-of-contents)
- [Showcase](#showcase)
- [Quick Start](#quick-start)
- [Configuration](#configuration)
- [Basic Configuration](#basic-configuration)
- [Favicons](#favicons)
- [Banner](#banner)
- [Advanced Configuration](#advanced-configuration)
- [Deploy on Vercel](#deploy-on-vercel)
- [Credit](#credit)
LiveTerm can be used to build a variety of websites: a personal website, a project page, a startpage, or just a cool browser music player...you name it!

Source files for LiveTerm are all less than 150 lines of codes in length, with great emphasis towards readability and customizability.

Feel free to play with the web demo!

## Showcase

Expand All @@ -23,14 +17,14 @@ Highly customizable, easy-to-use, and minimal terminal styled website template,
<strong>Default LiveTerm</strong>
</p>

Live version [here](https://cveinnt.com)
Live version: https://liveterm.vercel.app

<p align="center">
<img src="./demo/cveinnt.png" width="800"><br>
<strong>my personal website</strong>
</p>

Live version [here](https://cveinnt.com)
Live version: https://cveinnt.com

## Quick Start

Expand Down Expand Up @@ -66,33 +60,42 @@ Most of the configuration is done through the `config.json` file.

```javascript
{
"readmeUrl": //create a Github README and link it here!
"title": //title of the website
"name": //returned by the command of the same name
"readmeUrl": // create a Github README and link it here!
"title": // title of the website
"name": // returned by the command of the same name
"ascii": // ascii art to display
"social": {
"github": // your handle
"linkedin": // your handle
},
"email": // your email
"ps1_hostname": //hostname in prompt
"ps1_username": "guest", // username in prompt
"ps1_hostname": "liveterm" // hostname in prompt
"ps1_username": "visitor", // username in prompt
"resume_url": "~/Resume.pdf", // path to your resume
"non_terminal_url": "W",
"colors": {
... // you can use existing templates in themes.json or use your own!
"light": {
...
},
"dark": {
... // you can use existing templates in themes.json or use your own!
}
}
}
```

Feel free to change it as you see fit!

### Themes

You can find several pre-configured themes in `themes.json`, and you can replace the colors in `config.json` with the theme color you like! The themes are based on the themes on [this website](https://glitchbone.github.io/vscode-base16-term/#/).

<p align="center">
<img src="./demo/themes.png" width="800"><br>
<strong>different LiveTerm themes</strong>
</p>

Just replace `"light"` or `"dark"` in the `"color"` part of the config file!
For a better preview of the themes, checkout the images in the `demo` folder.

### Favicons

Expand Down
8 changes: 4 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"name": "John Doe",
"ascii": "liveterm",
"social": {
"github": "",
"linkedin": ""
"github": "github",
"linkedin": "linkedin"
},
"email": "contact@johndoe.com",
"email": "contact@email.com",
"ps1_hostname": "liveterm",
"ps1_username": "visitor",
"non_terminal_url": "https://github.com/Cveinnt/LiveTerm",
"repo": "https://github.com/Cveinnt/LiveTerm",
"resume_url": "https://upload.wikimedia.org/wikipedia/commons/c/cc/Resume.pdf",
"donate_urls": {
"paypal": "https://paypal.me/cveinnt",
Expand Down
Binary file modified demo/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/history/History.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const History: React.FC<{ history: Array<HistoryInterface> }> = ({

<p
className="whitespace-pre-wrap mb-2"
// style={{ lineHeight: 'normal' }}
style={{ lineHeight: 'normal' }}
dangerouslySetInnerHTML={{ __html: entry.output }}
/>
</div>
Expand Down
12 changes: 6 additions & 6 deletions src/utils/bin/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ export const help = async (args: string[]): Promise<string> => {
[tab]: trigger completion.
[ctrl+l]/clear: clear terminal.\n
Type 'sumfetch' to display summary.
Type 'gui' or click <u><a href="${config.non_terminal_url}" target="_blank">here</a></u> for a simpler version.
`;
};

// Redirection
export const gui = async (args: string[]): Promise<string> => {
window.open(`${config.non_terminal_url}`);
return 'Opening GUI version...';
export const repo = async (args: string[]): Promise<string> => {
window.open(`${config.repo}`);
return 'Opening Github repository...';
};

// About
Expand Down Expand Up @@ -114,7 +113,7 @@ export const emacs = async (args?: string[]): Promise<string> => {
};

export const sudo = async (args?: string[]): Promise<string> => {
window.open('https://www.youtube.com/watch?v=dQw4w9WgXcQ', '_blank'); // good ol' rick roll
window.open('https://www.youtube.com/watch?v=dQw4w9WgXcQ', '_blank'); // ...I'm sorry
return `Permission denied: with little power comes... no responsibility? `;
};

Expand All @@ -129,8 +128,9 @@ export const banner = (args?: string[]): string => {
β–‘β–ˆβ–ˆβ–ˆ β–ˆ β–‘β–ˆβ–ˆβ–ˆ β–‘β–‘β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–‘β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ β–‘β–ˆβ–ˆβ–ˆ β–‘β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘ β–‘β–ˆβ–ˆβ–ˆ β–‘β–ˆβ–ˆβ–ˆ β–‘β–ˆβ–ˆβ–ˆ β–‘β–ˆβ–ˆβ–ˆ
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ β–‘β–‘β–‘β–‘β–‘ β–‘β–‘β–‘β–‘β–‘ β–‘β–‘β–‘β–‘β–‘β–‘ β–‘β–‘β–‘β–‘β–‘ β–‘β–‘β–‘β–‘β–‘β–‘ β–‘β–‘β–‘β–‘β–‘ β–‘β–‘β–‘β–‘β–‘ β–‘β–‘β–‘ β–‘β–‘β–‘β–‘β–‘
Type 'help' to see the list of available commands.
Type 'sumfetch' to display summary.
Type 'gui' or click <u><a class="text-light-blue dark:text-dark-blue underline" href="${config.non_terminal_url}" target="_blank">here</a></u> for a simpler version.
Type 'repo' or click <u><a class="text-light-blue dark:text-dark-blue underline" href="${config.repo}" target="_blank">here</a></u> for the Github repository.
`;
};
4 changes: 2 additions & 2 deletions src/utils/bin/sumfetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const sumfetch = async (args: string[]): Promise<string> => {
@@ @@  ${config.name}
@@ @@ ο°© ${config.ps1_hostname}
@@ @@@ @@  <u><a href="${config.resume_url}" target="_blank">resume</a></u>
@@ @@@ @@ οͺž <u><a href="${config.non_terminal_url}" target="_blank">alt website</a></u>
@@ @@@ @@ οͺž <u><a href="${config.repo}" target="_blank">Github repo</a></u>
@@ @@ -----------
@@ .@@@@@@@@@@. @@ ο‘‹ CONTACT
@@ @@ @@ @@ ο›― <u><a href="mailto:${config.email}" target="_blank">${config.email}</a></u>
Expand All @@ -28,7 +28,7 @@ const sumfetch = async (args: string[]): Promise<string> => {
β–“β–“β–€ β–„β–“β–€Β  ▐▓▓ β–€β–“β–“Β  β–“β–“β–„Β  ο’‰ ABOUT
β–„β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“Β   ${config.name}
β–“β–“ β–“β–“β–“Β  ▐▓▓  ▐▓▓  β–“β–“Β   <u><a href="${config.resume_url}" target="_blank">resume</a></u>
▐▓▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▓ οͺž <u><a href="${config.non_terminal_url}" target="_blank">alt website</a></u>
▐▓▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▓ οͺž <u><a href="${config.repo}" target="_blank">Github repo</a></u>
▐▓  ▐▓ -----------
▐▓  > L I V E T E R M ▐▓ ο‘‹ CONTACT
▐▓  ▐▓ ο›― <u><a href="mailto:${config.email}" target="_blank">${config.email}</a></u>
Expand Down

0 comments on commit 00f8cb0

Please sign in to comment.