Skip to content

cjgwang/tea-brewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tea Brewery, A Flask Web App

Welcome to Tea Brewery, a warm and calming web app built with Flask on Python.

The images used for tea were sourced from Pinterest. Parts of the styling were generated by ChatGPT.

Structure

project/
│
├── app.py
├── README.md
├── requirements.txt
├── static/
│ ├── chamomile.jpg
│ ├── black-tea.jpg
│ ├── lemon.jpg
│ ├── boba.jpg
│ ├── matcha.jpg
│ └── styles.css
└── templates/
├── index.html
└── brew.html

How It Works

The home page (index.html) displays a dropdown menu of teas with cute emojis. When you click “Brew It 🍵,” your selection is sent to the Flask server through POST, and you are redirected to /brew.

Flask retrieves a cozy message and image for that tea type. The brew.html page shows your tea and message, along with a “Brew another cup” button, which redirects you make to the home page.

Modifying

You can easily add more tea options! Add your new tea image in /static/images/, e.g. green-tea.jpg. Add the new tea to the dropdown in index.html.

Modify CSS colors in index.html and brew.html for your preferred palette

Add gentle animations or background music for an even cozier vibe

Optional upgrade: add a progress animation or “steam” effect for fun

Tech Stack

Python 3 Flask — web framework HTML5 / CSS3 — frontend layout and design

About

tea brewery website (flask)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors