-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from KavyaBS123/master
modified
- Loading branch information
Showing
2 changed files
with
106 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset=""UTF-8> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<title>Experience Certificate Generator</title> | ||
<link rel="stylesheet" type="text/css" href="styles.css"> | ||
<link rel="stylesheet" href="styles.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Experience Certificate Generator</h1> | ||
<form id="certificateForm"> | ||
<label for="employeeName">Employee Name:</label> | ||
<input type="text" id="employeeName" required> | ||
|
||
<label for="companyName">Company Name:</label> | ||
<input type="text" id="companyName" required> | ||
|
||
<label for="duration">Duration:</label> | ||
<input type="text" id="duration" required> | ||
|
||
<label for="designation">Designation:</label> | ||
<input type="text" id="designation" required> | ||
|
||
<button type="submit">Generate Certificate</button> | ||
</form> | ||
|
||
<div id="certificateOutput" class="certificate-preview hidden"> | ||
<h2>Experience Certificate</h2> | ||
<div id="certificateContent"></div> | ||
<button id="downloadBtn" class="hidden">Download</button> | ||
<div class="container"> | ||
<h1>Experience Certificate Generator</h1> | ||
<form> | ||
<div class="form-group"> | ||
<label for="employee-name"> | ||
<i class="fas fa-user"></i> Employee Name: | ||
</label> | ||
<input type="text" id="employee-name" name="employee-name"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="company-name"> | ||
<i class="fas fa-building"></i> Company Name: | ||
</label> | ||
<input type="text" id="company-name" name="company-name"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="duration"> | ||
<i class="fas fa-calendar-alt"></i> Duration: | ||
</label> | ||
<input type="text" id="duration" name="duration"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="designation"> | ||
<i class="fas fa-user-tie"></i> Designation: | ||
</label> | ||
<input type="text" id="designation" name="designation"> | ||
</div> | ||
<button type="submit">Generate Certificate</button> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<script src="script.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,73 @@ | ||
body { | ||
font-family: Arial, sans-serif; | ||
background: #f0f0f0; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
|
||
.container { | ||
max-width: 500px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
} | ||
|
||
h1 { | ||
text-align: center; | ||
} | ||
|
||
form { | ||
margin-bottom: 20px; | ||
} | ||
|
||
label { | ||
display: block; | ||
margin-bottom: 5px; | ||
} | ||
|
||
input[type="text"] { | ||
width: 100%; | ||
padding: 8px; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
button { | ||
background-color: #4CAF50; | ||
color: white; | ||
padding: 10px 20px; | ||
border: none; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
} | ||
|
||
.certificate-preview { | ||
margin-top: 20px; | ||
border: 1px solid #ccc; | ||
padding: 20px; | ||
font-family: Arial, sans-serif; | ||
} | ||
|
||
.hidden { | ||
display: none; | ||
} | ||
|
||
#certificateContent { | ||
margin-bottom: 20px; | ||
} | ||
|
||
#downloadBtn { | ||
margin-top: 10px; | ||
} | ||
background: #ffffff; | ||
padding: 20px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
border-radius: 8px; | ||
max-width: 400px; | ||
width: 100%; | ||
text-align: center; | ||
} | ||
|
||
h1 { | ||
margin-bottom: 20px; | ||
font-size: 24px; | ||
color: #333; | ||
} | ||
|
||
.form-group { | ||
margin-bottom: 15px; | ||
text-align: left; | ||
position: relative; | ||
} | ||
|
||
.form-group label { | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 5px; | ||
color: #555; | ||
} | ||
|
||
.form-group i { | ||
margin-right: 10px; | ||
color: #007BFF; | ||
} | ||
|
||
.form-group input { | ||
width: calc(100% - 20px); | ||
padding: 8px 10px; | ||
border: 1px solid #ddd; | ||
border-radius: 4px; | ||
font-size: 16px; | ||
outline: none; | ||
transition: border-color 0.3s; | ||
} | ||
|
||
.form-group input:focus { | ||
border-color: #007BFF; | ||
} | ||
|
||
button { | ||
background: #28a745; | ||
color: #fff; | ||
border: none; | ||
padding: 10px 15px; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
transition: background 0.3s; | ||
} | ||
|
||
button:hover { | ||
background: #218838; | ||
} |