IEEE-VIT / templa-rs

One-Stop Solution for all boilerplate needs!
MIT License
28 stars 22 forks source link

Implement ASCII Art #9

Closed mintbomb27 closed 2 years ago

mintbomb27 commented 2 years ago

Design an ASCII Art Logo with the name "Templa-rs".

Add it to the TUI preferably as a block as well as in the help command output.

vini-fda commented 2 years ago

Hey there! Can you assign this issue to me?

Also, how should it scale with the size of the terminal? Or should it be fixed-size?

Edit: can it be multi-colored or only black/white?

mintbomb27 commented 2 years ago

Hey @vini-fda ! Thank you for showing interest! It can be of a fixed size that isn't too small or too big. If you could scale it with the terminal, then great! It can be multicolored. Do check the design at #3 and try to accommodate a block where you can add the art.

Assigning the issue.

vini-fda commented 2 years ago

Ok, cool! I'm thinking something like oh-my-zsh's ASCII logo. Do you guys have an "official font" in mind, as a reference? Currently I'm using FiraCode, which has ligatures(but obviously using ligature features in the ASCII art would make it non-accessible for others, so I'm not doing that).

This is how the oh-my-zsh logo looks on my terminal:

image

I've also taken the liberty of using this website and this one for inspiration for the ASCII art. Here are some outputs with my font in my terminal(with some slight modifications):

image

EDIT:

Just for fun, here's how it looks with lolcat:

image

mintbomb27 commented 2 years ago

Hey @vini-fda We liked the second one the most. Great work! For now, adding it in the help command output and in the readme would suffice.

(PS: the colours look 😍)

vini-fda commented 2 years ago

How should I go about adding it to the help command? I've looked into clap's documentation but didn't find out how to add a "logo" or anything like that. For now, I've added it to the commands.yml file, at the about page:

name: Templa-rs
version: "1.0.0"
author: IEEE-VIT. <contact@ieeevit.org>
about: |
  ████████╗███████╗███╗   ███╗██████╗ ██╗      █████╗     ██████╗ ███████╗
  ╚══██╔══╝██╔════╝████╗ ████║██╔══██╗██║     ██╔══██╗    ██╔══██╗██╔════╝
     ██║   █████╗  ██╔████╔██║██████╔╝██║     ███████║    ██████╔╝███████╗
     ██║   ██╔══╝  ██║╚██╔╝██║██╔═══╝ ██║     ██╔══██║    ██╔══██╗╚════██║
     ██║   ███████╗██║ ╚═╝ ██║██║     ███████╗██║  ██║    ██║  ██║███████║
     ╚═╝   ╚══════╝╚═╝     ╚═╝╚═╝     ╚══════╝╚═╝  ╚═╝    ╚═╝  ╚═╝╚══════╝
  Solves all boilerplate template needs!

Here's how cargo run -- --help looks on my terminal:

image

Also, how should I implement the rainbow version? Because currently I've just saved the piped output of lolcat into a file, and it has a ton of terminal color codes:

████████╗███████╗███╗   ███╗██████╗ ██╗      █████╗     ██████╗ ███████╗
╚══██╔══╝██╔════╝████╗ ████║██╔══██╗██║     ██╔══██╗    ██╔══██╗██╔════╝
   ██║   █████╗  ██╔████╔██║██████╔╝██║     ███████║    ██████╔╝███████╗
   ██║   ██╔══╝  ██║╚██╔╝██║██╔═══╝ ██║     ██╔══██║    ██╔══██╗╚════██║
   ██║   ███████╗██║ ╚═╝ ██║██║     ███████╗██║  ██║    ██║  ██║███████║
   ╚═╝   ╚══════╝╚═╝     ╚═╝╚═╝     ╚══════╝╚═╝  ╚═╝    ╚═╝  ╚═╝╚══════╝[?25h[?1;5;2004l
mintbomb27 commented 2 years ago

Hey @vini-fda yeah adding to the command.yml works. If you could also add to the README, would be great! The rainbow version, I'm not sure if it'll support a lot of terminals? If adding that to the command.yml works, then please go for it. But make sure it supports all the terminals.