Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes and alterations #14

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 44 additions & 43 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@
<!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" 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>
<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>

<script src="script.js"></script>
</body>
<!DOCTYPE html>
<html>

<head>
<title>Experience Certificate Generator</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>

<body>
<div class="container">
<h1>Experience Certificate Generator</h1>
<form id="certificateForm" value="_blank">
<div class="form_content">
<label>Employee Name:
<input type="text" id="employeeName" placeholder="Enter your name">
</label>
</div>
<div class="form_content">
<label>Company Name:
<input type="text" id="companyName" placeholder="Company name">
</label>
</div>
<div class="form_content">
<label>Duration:
<input type="text" id="duration" placeholder="Service duration">
</label>
</div>
<div class="form_content">
<label>Designation:
<input type="text" id="designation" placeholder="Designation">
</label>
</div>
<div class="form_content">
<input type="submit" value="Generate Certificate">
</div>
</form>
<div id="certificateOutput" class="certificate-preview hidden">
<h2>Experience Certificate</h2>
<div id="certificateContent"></div>
<button id="downloadBtn" class="hidden">Download</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>
97 changes: 42 additions & 55 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,73 +1,60 @@
body {
font-family: Arial, sans-serif;
background: #f0f0f0;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-image: linear-gradient(115deg, rgba(58, 58, 158, 0.8), rgba(136, 136, 206, 0.7)), url(https://cdn.freecodecamp.org/testable-projects-fcc/images/survey-form-background.jpeg);
background-position: center;
background-repeat: no-repeat;
height: 100%;
}


.container {
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;
}
display: flex;
margin: 20%;
background-color: rgb(15, 15, 51);
border: 1px solid rgb(15, 15, 51);
border-radius: 1em;
padding: 1em 2em;
justify-content: center;
flex-direction: column;
align-items: center;
box-sizing: border-box;

h1 {
margin-bottom: 20px;
font-size: 24px;
color: #333;
}

.form-group {
margin-bottom: 15px;
text-align: left;
position: relative;
}
h1 {
color: aliceblue;
font-size: 36px;
border-bottom: 0.2px solid white;

.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_content {
display: flex;
font-size: 30px;
color: aliceblue;
margin-bottom: 0.8em;
flex-direction: column;
align-items: start;
justify-content: start;
}

.form-group input:focus {
border-color: #007BFF;
.form_content input {
width: 100%;
height: 25px;
}

button {
background: #28a745;
color: #fff;
border: none;
padding: 10px 15px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background 0.3s;
.form_content input[type="submit"] {
width: 35%;
color: aliceblue;
background-color: rgb(63, 66, 63);
margin-left: 30%;
}

button:hover {
background: #218838;
#certificateOutput {
display: flex;
flex-direction: column;
margin:2% 20%;
color: aliceblue;
border: 1px solid rgb(15, 15, 51);
}