LiveTerm 让你快速搭建一个终端风格的网站,具有高度可定制、易用等特性,它由 Next.js 提供支持。而你拥有这么一个有意思的网站,只需要处理一个 config.json 文件。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
mjh fe5e6f4618
Update scrolling for api commands
3 years ago
.husky first commit 3 years ago
demo added gif 3 years ago
install adding quickstart script 3 years ago
public first commit 3 years ago
src Update scrolling for api commands 3 years ago
.eslintrc.js first commit 3 years ago
.gitignore first commit 3 years ago
.prettierignore first commit 3 years ago
.prettierrc.json first commit 3 years ago
LICENSE first commit 3 years ago
README.md added gif 3 years ago
config.json update readme 3 years ago
next-env.d.ts first commit 3 years ago
next.config.js first commit 3 years ago
package.json first commit 3 years ago
postcss.config.js first commit 3 years ago
tailwind.config.js first commit 3 years ago
themes.json first commit 3 years ago
tsconfig.json first commit 3 years ago
vercel.json first commit 3 years ago
yarn.lock first commit 3 years ago

README.md

💻 LiveTerm - build terminal styled websites in minutes!

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

Building a simple website with LiveTerm only takes minutes, and you only need to work with one file: config.json. After you cloned this repository, simply run yarn install && yarn dev and start editing config.json to build your website!

LiveTerm can be used to build a variety of websites:

Feel free to play with the web demo above!

📸 Showcase


LiveTerm with different themes


my personal website

🚀 Ship your LiveTerm site in less than 5 minutes

LiveTerm requires the yarn package manager. You can install yarn here.

Simply run the following commmand in your terminal:

sh -c "$(curl -fsSL https://raw.github.com/Cveinnt/LiveTerm/main/install/install.sh)"

This will install LiveTerm to the current directory. You can start building your website with:

cd LiveTerm && yarn dev

Start editing config.json and try saving and see the updated changes!

Alternatively, you can clone this repository to a location of your choosing

git clone https://github.com/Cveinnt/LiveTerm.git && cd LiveTerm

Then install dependencies and start developing there:

yarn install && yarn dev

📄 Configuration

Basic Configuration

90% of LiveTerm's configurations are done through the config.json file.

{
  "readmeUrl": // create a Github README and link it here!
  "title": // title of the website
  "name": // your name, included in 'about' command
  "ascii": // ascii art to display
  "social": {
    "github": // your handle
    "linkedin": // your handle
  },
  "email": // your email
  "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": {
    "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.

For a better preview of the themes, checkout the images in the demo folder.

Favicons

Favicons are located in public/, along with the other files you may want to upload to your website. I used this website to generate favicons.

Banner

You may also want to change the output of the banner command. To do that, simply paste your generated banner in src/utils/bin/commands.ts. I used this website to generate my banner.

Advanced Configuration

If you want to further customize your page, feel free to change the source code to your liking!

🌐 Deploy on Vercel

The easiest way to deploy a Next.js app is to use the Vercel Platform from the creators of Next.js.

You can install vercel cli and follow the instruction here.

You can also connect your github account to vercel and have vercel automatically deploy the github repository for you.

Credit

Based on M4TT72's awesome Terminal.