Ascii Art Web Style

Ascii Art Web is a web application that generates ASCII art representations based on user input and chosen banner styles.

Description

Ascii Art Web style is a simple web application built with Go (Golang) that allows users to input text and select from predefined banner styles to generate ASCII art. It processes the user input, handles special characters, and displays the ASCII art output using HTML and Custom CSS.

Usage: How to Run

To run the project locally, follow these steps:

  1. Clone the repository:
   git https://learn.zone01kisumu.ke/git/ebarsula/ascii-art-web-stylize.git
   cd ascii-art-web-stylize
  1. Start the server on port 8080:
go run .
  1. Open your web browser and navigate to:
http://localhost:8080/

  1. Enter your text in the textarea, choose a banner style, and click "Create art" to generate ASCII art based on your input.

Implementation Details: Algorithm

  • The core functionality of Ascii-art-Web involves converting user-provided text into ASCII art. Here's an overview of the implementation:

1. Server Setup:

  • The application runs a web server using Go's net/http package.

2. Handling Requests:

  • GET /: Serves the index.html file located in the templates directory.
  • POST /: Processes form submissions containing user input for generating ASCII art.

3. ASCII Art Generation:

  • Reads ASCII character representations from files (standard.txt, thinkertoy.txt, shadow.txt).
  • Processes user input to handle special characters like newline (\n) and tab (\t).
  • Generates ASCII art by mapping characters to their respective ASCII representations.

4. Error Handling:

  • Checks for empty ASCII art files (standard.txt, thinkertoy.txt, shadow.txt).
  • Handles issues related to newline characters in the input string.


This application is a basic implementation of ASCII art generation using Go and Custom CSS,
suitable for educational purposes or as a starting point for more complex ASCII art applications.

Authors

Aaron/
Aoron Ochieng
Emmanuel/
Emmanuel Barsulai
Abraham/
Abraham kingoo

License

© 2024 Ascii Art Web™. All Rights Reserved.

This README.md file provides a clear overview of our project, including its purpose, how to run it,
details about the ASCII art generation algorithm, and credits to the authors.
Adjust the URLs and details as per your specific project setup and preferences.