86 lines
3.3 KiB
Go
86 lines
3.3 KiB
Go
// ©AngelaMos | 2026
|
|
// banner.go
|
|
|
|
package ui
|
|
|
|
import "fmt"
|
|
|
|
var portiaBanner = []string{
|
|
" ",
|
|
"░░░░░░ ░░░░░░ ░░░░░░ ░░░░░░░░ ░░ ░░░░░ ",
|
|
"▒▒ ▒▒ ▒▒ ▒▒ ▒▒ ▒▒ ▒▒ ▒▒ ▒▒ ▒▒ ",
|
|
"▒▒▒▒▒▒ ▒▒ ▒▒ ▒▒▒▒▒▒ ▒▒ ▒▒ ▒▒▒▒▒▒▒ ",
|
|
"▓▓ ▓▓ ▓▓ ▓▓ ▓▓ ▓▓ ▓▓ ▓▓ ▓▓ ",
|
|
"██ ██████ ██ ██ ██ ██ ██ ██ ",
|
|
"",
|
|
}
|
|
|
|
var bannerColors = []func(a ...any) string{
|
|
Red,
|
|
Blue,
|
|
Red,
|
|
Blue,
|
|
Red,
|
|
}
|
|
|
|
var animeArt = []string{
|
|
"⣿⣿⣿⣿⣿⣷⣿⣿⣿⡅⡹⢿⠆⠙⠋⠉⠻⠿⣿⣿⣿⣿⣿⣿⣮⠻⣦⡙⢷⡑⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣌⠡⠌⠂⣙⠻⣛⠻⠷⠐⠈⠛⢱⣮⣷⣽⣿",
|
|
"⣿⣿⣿⣿⡇⢿⢹⣿⣶⠐⠁⠀⣀⣠⣤⠄⠀⠀⠈⠙⠻⣿⣿⣿⣦⣵⣌⠻⣷⢝⠦⠚⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢟⣻⣿⣊⡃⠀⣙⠿⣿⣿⣿⣎⢮⡀⢮⣽⣿⣿",
|
|
"⢿⣿⣿⣿⣧⡸⡎⡛⡩⠖⠀⣴⣿⣿⣿⠀⠀⠀⠀⠸⠇⠀⠙⢿⣿⣿⣿⣷⣌⢷⣑⢷⣄⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣫⠶⠛⠉⠀⠁⠀⠈⠈⠀⠠⠜⠻⣿⣆⢿⣼⣿⣿⣿",
|
|
"⢐⣿⣿⣿⣿⣧⢧⣧⢻⣦⢀⣹⣿⣿⣿⣇⠀⠄⠀⠀⠀⡀⠀⠈⢻⣿⣿⣿⣿⣷⣝⢦⡹⠷⡙⢿⣿⣿⣿⣿⣿⣿⣿⣿⠈⠁⠀⠀⠀⠁⠀⠀⠀⠱⣶⣄⡀⠀⠈⠛⠜⣿⣿⣿⣿",
|
|
"⠀⠊⢫⣿⣏⣿⡌⣼⣄⢫⡌⣿⣿⣿⣿⣿⣦⡈⠲⣄⣤⣤⡡⢀⣠⣿⣿⣿⣿⣿⣿⣷⣼⣍⢬⣦⡙⣿⣿⣿⣿⣿⣯⢁⡄⠀⡀⡀⠀⠄⢈⣠⢪⠀⣿⣿⣿⣦⠀⢉⢂⠹⡿⣿⣿",
|
|
"⠀⠀⠄⢹⢃⢻⣟⠙⣿⣦⠱⢻⣿⣿⣿⣿⣿⣿⣷⣬⣍⣭⣥⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⡙⢿⣼⡿⣿⣿⣿⣿⣿⣷⣄⠘⣱⢦⣤⡴⡿⢈⣼⣿⣿⣿⣇⣴⣶⣮⣅⢻⣿⡏",
|
|
"⠀⠀⠈⠹⣇⢡⢿⡆⠻⣿⣷⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣍⡻⣿⣟⣻⣿⣿⣿⣿⣷⣦⣥⣬⣤⣴⣾⣿⣿⣿⣿⣷⣿⣿⣿⣿⣷⡜⠃",
|
|
"⠀⠀⠀⢀⣘⠈⢂⠃⣧⡹⣿⣷⡄⠙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣮⣅⡙⢿⣟⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠋⡕⠂",
|
|
"⠀⠀⠀⠀⠀⠀⠛⢷⣜⢷⡌⠻⣿⣿⣦⣝⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣹⣷⣦⣹⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠉⠃⠀",
|
|
}
|
|
|
|
var artColors = []func(a ...any) string{
|
|
Blue,
|
|
Blue,
|
|
Blue,
|
|
Red,
|
|
Red,
|
|
Red,
|
|
Blue,
|
|
Blue,
|
|
Blue,
|
|
}
|
|
|
|
func PrintBanner() {
|
|
fmt.Println()
|
|
fmt.Println()
|
|
for i, line := range portiaBanner {
|
|
c := bannerColors[i%len(bannerColors)]
|
|
fmt.Printf(" %s\n", c(line))
|
|
}
|
|
fmt.Printf(" %s\n", HiWhite(HRule(52)))
|
|
fmt.Printf(
|
|
" %s\n\n",
|
|
WhiteItalic(
|
|
"Secrets scanner for git repos and config files",
|
|
),
|
|
)
|
|
}
|
|
|
|
func PrintBannerWithArt() {
|
|
fmt.Println()
|
|
for i, line := range portiaBanner {
|
|
c := bannerColors[i%len(bannerColors)]
|
|
fmt.Printf(" %s\n", c(line))
|
|
}
|
|
fmt.Printf(" %s\n", White(HRule(64)))
|
|
fmt.Printf(
|
|
" %s\n",
|
|
WhiteItalic(
|
|
"Secrets scanner for git repos and config files",
|
|
),
|
|
)
|
|
fmt.Println()
|
|
for i, line := range animeArt {
|
|
c := artColors[i%len(artColors)]
|
|
fmt.Printf(" %s\n", c(line))
|
|
}
|
|
fmt.Println()
|
|
}
|