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 2 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
67 changes: 40 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,47 @@
<!DOCTYPE html>
<html>

<head>
<title>Experience Certificate Generator</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<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">
<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>
<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>
</div>
<script src="script.js"></script>
<script src="script.js"></script>

</body>
</html>

</html>
111 changes: 59 additions & 52 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,54 +1,61 @@
body {
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 {
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"] {
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 {
color: aliceblue;
font-size: 36px;
border-bottom: 0.2px solid white;

}


.form_content {
display: flex;
font-size: 30px;
color: aliceblue;
margin-bottom: 0.8em;
flex-direction: column;
align-items: start;
justify-content: start;
}

.form_content input {
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;
}
height: 25px;
}

.form_content input[type="submit"] {
width: 35%;
color: aliceblue;
background-color: rgb(63, 66, 63);
margin-left: 30%;
}

#certificateOutput {
display: flex;
flex-direction: column;
margin:5% 20%;
color: aliceblue;
border: 1px solid rgb(15, 15, 51);

}