1+ export const ASCIILogo = ( ) => {
2+ const text = ` +..=++++-.-
3+ %:+========+=++==++.% ##
4+ %-======#*%@@@@@@@@##+===.@ %*##@#%
5+ %:=====#%@#**#@@@@@%#*#@%#===:@% %%%@@#@@#
6+ @%=====+#@#*%@@@@@%%%@@@@@@*#%##@@@@%%:...@*@
7+ %%=====#%@#*@@@@ @###%%%=@@@@@...%@#%
8+ %%=====#@@@*@@@ ***%@@+@#......%%...@@#%
9+ %=====#@@%%%%@@ ***@@%+.....@@@#=.......@%#
10+ +====##@%%*==%%% ###@@@%:......-*@@@@@@@%+....-@@%##
11+ +===**@@%%===%@@%#**%@%%@@@@....%@@@@@@@@@@@@@==-:-==:@@#*
12+ ====#*@@@@==+#@@@*#%@%=.......%@....@%@....@@@@@@+==@%:=+=+:@@###
13+ %+==#*@@@%#==#%@@@@@@*.......-*:...@@.....::...%@@@@%+=.@@@@#.#%@@@*#
14+ @=+##@@@@%==*#%@@@@@@@@@@-...%@@@@@....@@+-::#@@@@@@@@@:+++@%@%@@@%@@@@%
15+ #@+%@@@@*==##@@@@%#.......@@@....@@@%....*@@#++=%@@@:-++:@ :%@@#@@@%@@@@
16+ #%*++++*#%@@@@@@@:...........@@......::::@@@@@+++++++++=:#@@@%#%@ %%%
17+ #%@@%@@@@@@*..#@....#@@@@@....@@.:::#%==+=+.@@@++++--%@@@@%@@@@@%
18+ %%%%@@@@-......@@...@@@@@@@@#@%%@@+++%@@@%.===+-@=%@@@@@%%%##@@
19+ ###%@@@:.......*@@@%...%@%...@@=+++-@+=++@@@@@@#:#@@@@@@@@%#++#%%* .RS
20+ ##@@@-.......*...@@@@@@#@@@@@=.*@@@.+=.@@+++=@@@@%@@@@@%%--+#%@@@@+=%+
21+ @%%@@@@%*%@@@=..:@@@@@@:++.@@@@@@-++=@@@@ #%@@%%@@%%--*%@@@@+.==+++*%#
22+ %@%%@@@@@@@@@@....@@@@@%=++++.:++++:@@@@@@@%@@%%@--#@@@@:----==*#%@*%
23+ %%@%%@@=++:@@@:==.@@@@@%+=+++++=.#@@#@@@@@%*@%-=%@@@.-----##@@
24+ @@%%%%===@@@@==+.%@@@@@@%@@@@@@@%@@ %#@@-*@@@%.::::+%@
25+ *@*===@@@++++@@@@@@@%%%%%%@@@@ %%@*@@@#:::::#%
26+ -==-@@@-==.@@% @@@@@@@ %#@@@*:::::-#
27+ --==@@@@@@@%% ##@@%:::::.#
28+ =----@@@@@@@ %#*%@%.:::::#
29+ #--===@@### ###*@@+::::::*#
30+ *----.@@@%*********#@@@.::::::+#
31+ @*-----::#@@@@@@@*.:::::::.##
32+ %*-----::::::::::::::+##
33+ ##-::::::::.=###`
34+ // const codepage = ` ▒ ▒▒▒▒▒░ ░
35+ // █░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ █ ▓▓
36+ // █░▒▒▒▒▒▒▓▓█████████▓▓▒▒▒▒ █ █▓▓▓█▓█
37+ // █░▒▒▒▒▒▓██▓▓▓▓██████▓▓▓██▓▒▒▒░██ █████▓██▓
38+ // ██▒▒▒▒▒▒▓█▓▓███████████████▓▓█▓▓██████░ █▓█
39+ // ██▒▒▒▒▒▓██▓▓████ █▓▓▓███▒█████ ██▓█
40+ // ██▒▒▒▒▒▓███▓███ ▓▓▓███▒█▓ ██ ██▓█
41+ // █▒▒▒▒▒▓████████ ▓▓▓███▒ ███▓▒ ██▓
42+ // ▒▒▒▒▒▓▓███▓▒▒███ ▓▓▓████░ ░▓████████▒ ░███▓▓
43+ // ▒▒▒▒▓▓████▒▒▒████▓▓▓████████ ██████████████▒▒░░░▒▒░██▓▓
44+ // ▒▒▒▒▓▓████▒▒▒▓███▓▓███▒ ██ ███ ██████▒▒▒██░▒▒▒▒░██▓▓▓
45+ // █▒▒▒▓▓████▓▒▒▓███████▓ ░▓░ ██ ░░ ██████▒▒ ████▓ ▓████▓▓
46+ // █▒▒▓▓█████▒▒▓▓███████████░ ██████ ██▒░░░▓█████████░▒▒▒█████████████
47+ // ▓█▒█████▓▒▒▓▓█████▓ ███ ████ ▓██▓▒▒▒████░░▒▒░█ ░███▓████████
48+ // ▓█▓▒▒▒▒▓▓████████░ ██ ░░░░█████▒▒▒▒▒▒▒▒▒▒░▓████▓██ ███
49+ // ▓██████████▓ ▓█ ▓█████ ██ ░░░▓█▒▒▒▒▒ ███▒▒▒▒░░████████████
50+ // ████████░ ██ ████████▓█████▒▒▒█████ ▒▒▒▒░█▒█████████▓▓██
51+ // ▓▓▓████░ ▓████ ███ ██▒▒▒▒░█▒▒▒▒██████▓░▓█████████▓▒▒▓██▓
52+ // ▓▓███░ ▓ ██████▓█████▒ ▓███ ▒▒ ██▒▒▒▒████████████░░▒▓█████▒▒█▒
53+ // ████████▓████▒ ░██████░▒▒ ██████░▒▒▒████ ▓█████████░░▓█████▒ ▒▒▒▒▒▓█▓
54+ // ██████████████ ██████▒▒▒▒▒ ░▒▒▒▒░█████████████░░▓████░░░░░▒▒▓▓██▓█
55+ // ███████▒▒▒░███░▒▒ ██████▒▒▒▒▒▒▒▒ ▓██▓██████▓██░▒████ ░░░░░▓▓██
56+ // ██████▒▒▒████▒▒▒ ██████████████████ █▓██░▓████ ░░░░▒██
57+ // ▓█▓▒▒▒███▒▒▒▒█████████████████ ███▓███▓░░░░░▓█
58+ // ░▒▒░███░▒▒ ███ ███████ █▓███▓░░░░░░▓
59+ // ░░▒▒█████████ ▓▓███░░░░░ ▓
60+ // ▒░░░░███████ █▓▓███ ░░░░░▓
61+ // ▓░░▒▒▒██▓▓▓ ▓▓▓▓██▒░░░░░░▓▓
62+ // ▓░░░░ ████▓▓▓▓▓▓▓▓▓▓███ ░░░░░░▒▓
63+ // █▓░░░░░░░▓███████▓ ░░░░░░░ ▓▓
64+ // █▓░░░░░░░░░░░░░░░░░░░▒▓▓
65+ // ▓▓░░░░░░░░░ ▒▓▓▓`
66+ return (
67+ < div id = { 'ascii-logo' } >
68+ < pre >
69+ { text . split ( '\n' ) . map ( ( line , index , arr ) => {
70+ // Calculate gradient color
71+ // let col = 'rgb(0,234,255)';
72+ // const startColor = [154, 58, 255];
73+ // const endColor = [18, 191, 255];
74+ const startColor = [ 200 , 0 , 255 ] ;
75+ const endColor = [ 0 , 234 , 255 ] ;
76+ const ratio = index / ( arr . length - 1 ) ;
77+ const color = startColor . map ( ( start , i ) =>
78+ Math . round ( start + ( endColor [ i ] - start ) * ratio )
79+ ) ;
80+ return (
81+ < span
82+ key = { index }
83+ style = { { color : `rgb(${ color . join ( ',' ) } )` } }
84+ >
85+ { line }
86+ < br />
87+ </ span >
88+ ) ;
89+ } ) }
90+ </ pre >
91+ </ div >
92+ ) ;
93+ } ;
0 commit comments