This project demonstrates how to create a static profile page using HTML and CSS, and serve it using Python Flask.
-
Frontend:
- A clean and responsive profile page with a heading, image, bio, and links.
- Styled using CSS for a modern look.
-
Backend:
- Flask serves the static profile page at the
/profile
route. - Redirects the default route (
/
) to/profile
. - Uses
render_template
to serve the HTML file. - Serves static resources (CSS and images) from the
static
folder.
- Flask serves the static profile page at the
- Clone the repository.
- Install Flask:
pip install flask
. - Run the Flask app:
python app.py
. - Open your browser and go to
http://127.0.0.1:5000/
.
- The profile page is rendered using
render_template
. - The default route (
/
) redirects to/profile
.