Add ASCII art header with side-by-side timestamp layout
- Created compact 3-line ASCII art for 'piNail' on the left - Timestamp and status info displayed on the right side - Efficient use of screen space - Better visual appeal while remaining compact - Deployed and verified on Pi
This commit is contained in:
@@ -228,20 +228,32 @@ class StatusDisplay:
|
||||
"""Draw the complete status display frame."""
|
||||
lines = []
|
||||
|
||||
# ASCII Art Title (ultra-compact)
|
||||
lines.append("")
|
||||
lines.append("{}{}{}".format(Colors.BRIGHT_CYAN + Colors.BOLD,
|
||||
">> PINAIL STATUS <<", Colors.RESET))
|
||||
|
||||
# Timestamp
|
||||
# ASCII Art Title with timestamp side-by-side
|
||||
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
lines.append("")
|
||||
lines.append("{}{} {}{}".format(
|
||||
lines.append("{}{}{:<20} {}{}{}".format(
|
||||
Colors.BRIGHT_CYAN + Colors.BOLD,
|
||||
" ___ _ _ _ _",
|
||||
"",
|
||||
Colors.DIM,
|
||||
timestamp,
|
||||
Colors.RESET,
|
||||
""
|
||||
Colors.RESET
|
||||
))
|
||||
lines.append("{}{}{:<20} {}{}{}".format(
|
||||
Colors.BRIGHT_CYAN + Colors.BOLD,
|
||||
"| \\| | __ _ _ _| | ||_|",
|
||||
"",
|
||||
Colors.DIM,
|
||||
"piNail2 Status",
|
||||
Colors.RESET
|
||||
))
|
||||
lines.append("{}{}{:<20}{}".format(
|
||||
Colors.BRIGHT_CYAN + Colors.BOLD,
|
||||
"|__/|_|__|||_||_||_|\\__/",
|
||||
"",
|
||||
Colors.RESET
|
||||
))
|
||||
|
||||
lines.append("")
|
||||
|
||||
# Get data safely
|
||||
|
||||
Reference in New Issue
Block a user