Skip to content

Commit

Permalink
Merge pull request #12 from KavyaBS123/master
Browse files Browse the repository at this point in the history
modified
  • Loading branch information
Durgesh4993 authored Jun 20, 2024
2 parents b39efb7 + 25c1d4f commit f23b3cd
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 77 deletions.
58 changes: 34 additions & 24 deletions index.html
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>
125 changes: 72 additions & 53 deletions styles.css
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;
}

0 comments on commit f23b3cd

Please sign in to comment.