Resume builder1
Resume builder1
Resume builder1
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Resume Builder</title>
</head>
<body>
<header>
<div class="container">
</div>
</header>
<main>
<section class="form-section">
{% csrf_token %}
<div class="form-group">
</div>
<div class="form-group">
<label for="email">Email:</label>
</div>
<div class="form-group">
<label for="phone">Phone:</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
<label for="education">Education:</label>
</div>
</section>
<section class="resume-output">
<div class="resume">
{% if resume %}
{{ resume|safe }}
{% endif %}
</div>
</section>
<section class="ai-analysis">
<h2>AI Analysis</h2>
<div class="ai-feedback">
{% if analysis %}
{% else %}
{% endif %}
</div>
</section>
</main>
<footer>
</footer>
</body>
</html>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
body {
background-color: #f4f4f4;
color: #333;
header {
background-color: #4CAF50;
color: white;
text-align: center;
padding: 1.5rem 0;
header h1 {
font-size: 2.5rem;
header p {
font-size: 1.2rem;
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
main {
padding: 2rem 0;
.form-section {
background: white;
margin-bottom: 2rem;
h2 {
margin-bottom: 1rem;
font-size: 1.8rem;
.form-group {
margin-bottom: 1.5rem;
label {
display: block;
font-weight: bold;
margin-bottom: 0.5rem;
input, textarea {
width: 100%;
padding: 0.8rem;
border-radius: 5px;
font-size: 1rem;
}
textarea {
resize: vertical;
.btn-submit {
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
.btn-submit:hover {
background-color: #45a049;
.resume-output, .ai-analysis {
background: white;
padding: 2rem;
margin-bottom: 2rem;
}
.resume, .ai-feedback {
margin-top: 1rem;
font-size: 1rem;
line-height: 1.5;
color: #555;
footer {
text-align: center;
padding: 1rem 0;
background: #333;
color: white;
font-size: 0.9rem;
def process_resume(request):
if request.method == 'POST':
email = request.POST.get('email')
phone = request.POST.get('phone')
summary = request.POST.get('summary')
skills = request.POST.get('skills')
experience = request.POST.get('experience')
education = request.POST.get('education')
resume = f"""
<h2>{name}</h2>
<p><strong>Email:</strong> {email}</p>
<p><strong>Phone:</strong> {phone}</p>
<h3>Professional Summary</h3>
<p>{summary}</p>
<h3>Skills</h3>
<p>{skills}</p>
<h3>Work Experience</h3>
<p>{experience}</p>
<h3>Education</h3>
<p>{education}</p>
"""
analysis = "Your resume looks great! Consider adding specific metrics to your achievements for
more impact."
# Pass the generated resume and analysis to the template