television_screen/
logo.rs

1use ratatui::widgets::Paragraph;
2
3//const LOGO: &str = r"                                           _______________
4//    __      __         _     _            |,----------.  |\
5//   / /____ / /__ _  __(_)__ (_)__  ___    ||           |=| |
6//  / __/ -_) / -_) |/ / (_-</ / _ \/ _ \   ||           | | |
7//  \__/\__/_/\__/|___/_/___/_/\___/_//_/   ||           |o| |
8//                                          |`-----------' |/
9//                                          `--------------'";
10
11const LOGO: &str = r"  _______________
12 |,----------.  |\
13 ||           |=| |
14 ||           | | |
15 ||           |o| |
16 |`-----------' |/ 
17 `--------------'";
18
19pub fn build_logo_paragraph<'a>() -> Paragraph<'a> {
20    let lines = LOGO
21        .lines()
22        .map(std::convert::Into::into)
23        .collect::<Vec<_>>();
24    let logo_paragraph = Paragraph::new(lines);
25    logo_paragraph
26}
27
28const REMOTE_LOGO: &str = r"
29 _____________
30/             \
31| (*)     (#) |
32|             |
33| (1) (2) (3) |
34| (4) (5) (6) |
35| (7) (8) (9) |
36|             |
37|      _      |
38|     | |     |
39|  (_¯(0)¯_)  |
40|     | |     |
41|      ¯      |
42|             |
43|             |
44| === === === |
45|             |
46|     T.V     |
47`-------------´";
48
49pub fn build_remote_logo_paragraph<'a>() -> Paragraph<'a> {
50    let lines = REMOTE_LOGO
51        .lines()
52        .map(std::convert::Into::into)
53        .collect::<Vec<_>>();
54    let logo_paragraph = Paragraph::new(lines);
55    logo_paragraph
56}