This is a personal portfolio website built using Flask that showcases your profile and projects. It includes a fully functional contact form that sends emails using SMTP and custom HTML email templates.
- Clean and responsive HTML/CSS design
- Flask backend with Jinja2 templating
- Contact form with validation and success message
- Sends emails with SMTP using custom HTML templates
- Modular and easy to customize
portfolio/
│
├── static/
│ └── style.css # Custom styles
│
├── templates/
│ ├── index.html # Main portfolio page
│ └── email_template.html # HTML email design
│
├── .env # Environment variables (EMAIL, PASSWORD)
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
└── README.md # This file
- Clone the Repository
git clone https://github.com/yourusername/flask-portfolio.git
cd flask-portfolio- Create and Activate Virtual Environment
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate- Install Dependencies
pip install -r requirements.txt- Configure Environment Variables
Create a .env file in the root directory and add your email and password:
EMAIL=youremail@example.com
PASSWORD=yourpassword
⚠️ Use App Passwords if you're using Gmail.
- Run the App
python app.py- Visit in Browser
http://127.0.0.1:5000/
Beautifully designed HTML email template with custom animation and style, embedded with user-submitted details.
- Frontend: HTML5, CSS3
- Backend: Flask (Python)
- Email: SMTP with smtplib, email.message
- Templating: Jinja2
If you'd like to connect or collaborate, feel free to use the contact form on the website — it works! 😄
This project is open-source and available under the MIT License.
If you liked this project, give it a ⭐ on GitHub!
