by we

App Title: ASCII Flix

Test this app for free
46
import logging

from flask import Flask, render_template
from gunicorn.app.base import BaseApplication

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

app = Flask(__name__)


@app.route("/")
def home_route():
    return render_template("home.html")

@app.route("/movies")
def movie_route():
    movies = [
        {"title": "Century Movie 1", "content": "..........           @@@@@    @@@@@........\n .........          @     @  @     @........\n  ........             @@@   @     @.........\n   .......           @@      @     @  ........\n    ......          @@@@@@@   @@@@@  th .......\n     .....        ----------------------- ......\n      ....          C  E  N  T  U  R  Y     .....\n       ...        -----------------------     ...\n        ..        @@@@@ @@@@@ @   @ @@@@@       ..\n        ==          @   @      @ @    @          ==\n      __||__        @   @@@@    @     @        __||__\n     |      |       @   @      @ @    @       |      |\n  _____|______|_____  @   @@@@@ @   @   @  _____|______|_____"},
        {"title": "Century Movie 2", "content": " .........      @@@@@    @@@@@     ..........\n .........     @     @  @     @     .........\n .........        @@@   @     @      ........\n  .......       @@      @     @       ........\n  ......       @@@@@@@   @@@@@  th     .......\n  .....      -----------------------    ......\n   ....         C  E  N  T  U  R  Y       .....\n    ..        -----------------------       ...\n    ..        @@@@@ @@@@@ @   @ @@@@@        ..\n    ==          @   @      @ @    @          ==\n  __||__        @   @@@@    @     @        __||__\n |      |       @   @      @ @    @       |      |\n_|______|_____  @   @@@@@ @   @   @  _____|______|_____"},
        {"title": "Century Movie 3", "content": " ..........   @@@@@    @@@@@             ...........\n .........   @     @  @     @            ..........\n ........       @@@   @     @             ........\n .......      @@      @     @             ........\n ......      @@@@@@@   @@@@@  th          .......\n .....     -----------------------        .....\n ....        C  E  N  T  U  R  Y          ....\n ...       -----------------------        ...\n ..        @@@@@ @@@@@ @   @ @@@@@        ..\n ==          @   @      @ @    @          ==\n__||__        @   @@@@    @     @        __||__\n|      |       @   @      @ @    @       |      |\n|______|_____  @   @@@@@ @   @   @  _____|______|_____"}
    ]
    return render_template("movie_list.html", movies=movies)
Get full code

Created: | Last Updated:

ASCII Flix is an app that allows users to watch, rate, and chat about ASCII movies. Contributors can submit ASCII movies by pasting or uploading text files, while moderators review and manage the submitted content for appropriateness. Here's the frames: .......... @@@@@ @@@@@........ ......... @ @ @ @........ ........ @@@ @ @......... ....... @@ @ @ ........ ...... @@@@@@@ @@@@@ th ....... ..... ----------------------- ...... .... C E N T U R Y ..... ... ----------------------- ... .. @@@@@ @@@@@ @ @ @@@@@ .. == @ @ @ @ @ == __||__ @ @@@@ @ @ __||__ | | @ @ @ @ @ | | _____|______|_____ @ @@@@@ @ @ @ _____|______|_____ .......... @@@@@ @@@@@......... ......... @ @ @ @......... ........ @@@ @ @ ......... ...... @@ @ @ ......... ...... @@@@@@@ @@@@@ th ....... .... ----------------------- ...... ... C E N T U R Y ..... .. ----------------------- ... .. @@@@@ @@@@@ @ @ @@@@@ .. == @ @ @ @ @ == __||__ @ @@@@ @ @ __||__ | | @ @ @ @ @ | | _____|______|_____ @ @@@@@ @ @ @ _____|______|_____ ......... @@@@@ @@@@@ .......... ......... @ @ @ @ ......... ......... @@@ @ @ ........ ....... @@ @ @ ........ ...... @@@@@@@ @@@@@ th ....... ..... ----------------------- ...... .... C E N T U R Y ..... .. ----------------------- ... .. @@@@@ @@@@@ @ @ @@@@@ .. == @ @ @ @ @ == __||__ @ @@@@ @ @ __||__ | | @ @ @ @ @ | | _|______|_____ @ @@@@@ @ @ @ _____|______|_____ .......... @@@@@ @@@@@ ........... ......... @ @ @ @ .......... ........ @@@ @ @ ........ ....... @@ @ @ ........ ...... @@@@@@@ @@@@@ th ....... ..... ----------------------- ..... .... C E N T U R Y .... ... ----------------------- ... .. @@@@@ @@@@@ @ @ @@@@@ .. == @ @ @ @ @ == __||__ @ @@@@ @ @ __||__ | | @ @ @ @ @ | | |______|_____ @ @@@@@ @ @ @ _____|______|_____ Dm me <@200272755520700416> for details

Here's a step-by-step guide for using the ASCII Flix template:

Introduction

The ASCII Flix template allows you to create a web application that displays ASCII art movies. This guide will walk you through setting up and using the template to create your own ASCII movie gallery.

Getting Started

  1. Click "Start with this Template" to begin using the ASCII Flix template in the Lazy Builder interface.

  2. Once the template is loaded, you'll see the pre-populated code for the main application, HTML templates, and CSS styles.

Test the Application

  1. Click the "Test" button to deploy and run the application.

  2. The Lazy CLI will start, and you'll see deployment progress in the console.

  3. Once deployment is complete, you'll receive a dedicated server link to access your ASCII Flix application.

Using the Application

  1. Open the provided server link in your web browser to view the ASCII Flix application.

  2. You'll see a welcome page with a link to view the ASCII movies.

  3. Click on the "View Movies" link to see the gallery of ASCII art movies.

  4. The movie gallery page will display three sample ASCII art movies, each with a title and ASCII content.

Customizing the Application

To customize the ASCII Flix application, you can modify the following parts of the code:

  1. Update the movie data in the main.py file:

python movies = [ {"title": "Your Movie Title", "content": "Your ASCII art content"}, # Add more movies as needed ]

  1. Modify the HTML templates (home.html and movie_list.html) to change the layout or add new elements.

  2. Adjust the CSS styles in style.css to customize the appearance of the application.

  3. If you want to add more routes or functionality, you can extend the Flask application in main.py.

Remember that any changes you make will be automatically deployed when you click the "Test" button again.

By following these steps, you'll have a functioning ASCII Flix application that displays a gallery of ASCII art movies. You can continue to customize and expand the application as needed for your specific use case.

Technologies

Streamline CSS Development with Lazy AI: Automate Styling, Optimize Workflows and More Streamline CSS Development with Lazy AI: Automate Styling, Optimize Workflows and More
Enhance HTML Development with Lazy AI: Automate Templates, Optimize Workflows and More Enhance HTML Development with Lazy AI: Automate Templates, Optimize Workflows and More
Enhance Your Projects with HTML, CSS, and JavaScript Templates Enhance Your Projects with HTML, CSS, and JavaScript Templates

Similar templates

Open Source LLM based Web Chat Interface

This app will be a web interface that allows the user to send prompts to open source LLMs. It requires to enter the openrouter API key for it to work. This api key is free to get on openrouter.ai and there are a bunch of free opensource models on openrouter.ai so you can make a free chatbot. The user will be able to choose from a list of models and have a conversation with the chosen model. The conversation history will be displayed in chronological order, with the oldest message on top and the newest message below. The app will indicate who said each message in the conversation. The app will show a loader and block the send button while waiting for the model's response. The chat bar will be displayed as a sticky bar at the bottom of the page, with 10 pixels of padding below it. The input field will be 3 times wider than the default size, but it will not exceed the width of the page. The send button will be on the right side of the input field and will always fit on the page. The user will be able to press enter to send the message in addition to pressing the send button. The send button will have padding on the right side to match the left side. The message will be cleared from the input bar after pressing send. The last message will now be displayed above the sticky input block, and the conversation div will have a height of 80% to leave space for the model selection and input fields. There will be some space between the messages, and the user messages will be colored in green while the model messages will be colored in grey. The input will be blocked when waiting for the model's response, and a spinner will be displayed on the send button during this time.

Icon 1 Icon 1
483