-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.ring
More file actions
23 lines (20 loc) · 926 Bytes
/
main.ring
File metadata and controls
23 lines (20 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# The Main File
load "package.ring"
load "lib.ring"
load "src/utils/color.ring"
# Constants
BOX_WIDTH = 47
BORDER_COLOR = :BRIGHT_BLUE
BORDER_STYLE = :BOLD
func main
displayBanner()
func displayBanner
? colorBox("╭" + copy("─", BOX_WIDTH) + "╮", BORDER_COLOR, BORDER_STYLE)
? colorBox("│" + copy(" ", BOX_WIDTH) + "│", BORDER_COLOR, NULL)
? centerInBox(aPackageInfo[:name], :CYAN, :BOLD, BOX_WIDTH, BORDER_COLOR)
? colorBox("│" + copy(" ", BOX_WIDTH) + "│", BORDER_COLOR, NULL)
? centerInBox("Version " + aPackageInfo[:version], :YELLOW, :BOLD, BOX_WIDTH, BORDER_COLOR)
? centerInBox("Author: Youssef Saeed (ysdragon)", :MAGENTA, NULL, BOX_WIDTH, BORDER_COLOR)
? centerInBox("https://github.com/ysdragon", :GREEN, :UNDERLINE, BOX_WIDTH, BORDER_COLOR)
? colorBox("│" + copy(" ", BOX_WIDTH) + "│", BORDER_COLOR, NULL)
? colorBox("╰" + copy("─", BOX_WIDTH) + "╯", BORDER_COLOR, BORDER_STYLE)