package thb.jeanluc.adventure.io.text;

/** Builds styled banners for big moments (game start, finale). */
public final class Banner {

    private Banner() {
    }

    /** A framed, heading-styled welcome banner for the given title. */
    public static StyledText welcome(String title) {
        String bar = "=".repeat(Math.max(8, title.length() + 8));
        return StyledText.builder()
                .heading(bar + "\n")
                .heading("    " + title + "\n")
                .heading(bar)
                .build();
    }
}
