From 0b1a0085262fd79b5da8d6c98054b131548781d2 Mon Sep 17 00:00:00 2001 From: Filip Izydorczyk Date: Mon, 24 Aug 2020 11:10:01 +0200 Subject: [PATCH] Added logo --- .../src/main/java/com/plannaplan/App.java | 8 ++--- .../src/main/java/com/plannaplan/Logo.java | 33 +++++++++++++++++++ 2 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 restservice/src/main/java/com/plannaplan/Logo.java diff --git a/restservice/src/main/java/com/plannaplan/App.java b/restservice/src/main/java/com/plannaplan/App.java index 1e36994..137a7bd 100644 --- a/restservice/src/main/java/com/plannaplan/App.java +++ b/restservice/src/main/java/com/plannaplan/App.java @@ -6,12 +6,10 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class App { - public static final String ANSI_RESET = "\u001B[0m"; - public static final String ANSI_YELLOW = "\u001B[33m"; - public static final String ANSI_BLUE = "\u001B[34m"; - public static void main(String[] args) { - System.out.println(ANSI_YELLOW + "🎓" + ANSI_BLUE + "PlanNaPlan" + ANSI_RESET); + Logo logo = new Logo("beta"); + System.out.println(logo.getLogo()); + System.out.println("|=============================================================================================|"); SpringApplication.run(App.class, args); } } diff --git a/restservice/src/main/java/com/plannaplan/Logo.java b/restservice/src/main/java/com/plannaplan/Logo.java new file mode 100644 index 0000000..048744a --- /dev/null +++ b/restservice/src/main/java/com/plannaplan/Logo.java @@ -0,0 +1,33 @@ +package com.plannaplan; + +public class Logo { + + public static final String ANSI_RESET = "\u001B[0m"; + public static final String ANSI_YELLOW = "\u001B[33m"; + public static final String ANSI_BLUE = "\u001B[34m"; + public static final String ANSI_BLACK = "\u001B[30m"; + private String version; + + public Logo(String version){ + this.version = version; + } + + public String getLogo(){ + String result = ANSI_YELLOW + +" .,,,,, \n"+ +" .,,,,,,,,,,,,, \n" + +" .,,,,,,,,,,,,,,,,,,,,, \n" + +" .,,,,,,,(,,,,,,,,,,,,,,,,,,,,, \n" + +" ,,,,,,,(,,,,,,,,,,,,,,,,,,,,,,,,,,,,. \n" + +" ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,. " + ANSI_RESET + " _ _ \n"+ +" * " + ANSI_YELLOW +",,,,,,,,,,,,,,,,,,,,. " + ANSI_RESET + " | | | | \n" + +" * " + ANSI_BLUE + "%%%. " + ANSI_YELLOW +",,,,,,,,,,,,. "+ ANSI_BLUE+"(%%# " + ANSI_RESET + " _ __ | | __ _ _ __ _ __ __ _ _ __ | | __ _ _ __ \n" + +" * " + ANSI_BLUE + "%%%%%%%. " + ANSI_YELLOW + ",,,,. "+ ANSI_BLUE +"#%%%%%%# " + ANSI_RESET + "| '_ \\| |/ _` | '_ \\| '_ \\ / _` | '_ \\| |/ _` | '_ \\ \n" + +" * " + ANSI_BLUE +"%%%%%%%%%%%#%%%%%%%%%%# " + ANSI_RESET + "| |_) | | (_| | | | | | | | (_| | |_) | | (_| | | | |\n" + +" * " + ANSI_BLUE +"/%%%%%%%%%%%%%%%%%%% " + ANSI_RESET + "| .__/|_|\\__,_|_| |_|_| |_|\\__,_| .__/|_|\\__,_|_| |_|\n" + +" ( / " + ANSI_BLUE +"#%%%%%%%%%%%. " + ANSI_RESET + "| | | | "+ ANSI_BLUE +"(" +this.version + ")" +"\n" + ANSI_BLUE + +" %%%%/ " + ANSI_RESET + "|_| |_| \n" + +ANSI_RESET; + return result; + } +} \ No newline at end of file