Initial commit
This commit is contained in:
commit
c20a6e9b01
|
@ -0,0 +1,32 @@
|
|||
document.getElementById('applicationForm').addEventListener('submit', function(event) {
|
||||
event.preventDefault();
|
||||
|
||||
// Get form data
|
||||
const formData = new FormData(this);
|
||||
|
||||
// Convert form data to an object
|
||||
const data = Object.fromEntries(formData.entries());
|
||||
|
||||
// Display the form data in the console
|
||||
console.log(data);
|
||||
|
||||
// Send form data to a server-side script
|
||||
fetch('your-server-endpoint', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(result => {
|
||||
console.log('Success:', result);
|
||||
// Redirect or show a success message here
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error:', error);
|
||||
});
|
||||
|
||||
// Display a thank you message (or redirect to another page)
|
||||
document.body.innerHTML = '<h2>Thank you for your application!</h2>';
|
||||
});
|
Binary file not shown.
After Width: | Height: | Size: 9.8 KiB |
|
@ -0,0 +1,79 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Tech Launchpad Traineeship Program</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Header Section -->
|
||||
<header>
|
||||
<div class="logo-container">
|
||||
<img src="images/logo.png" alt="TechStep Logo" class="logo">
|
||||
</div>
|
||||
<div class="container">
|
||||
<h1>Welcome to Tech Launchpad Traineeship</h1>
|
||||
<p>Where Tech Careers Begin</p>
|
||||
<a href="#apply" class="cta-button">Apply Now</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Program Overview Section -->
|
||||
<section id="overview">
|
||||
<div class="container">
|
||||
<h2>About the Program</h2>
|
||||
<p>The Tech Launchpad Traineeship Program is designed for aspiring IT professionals who want to build a solid foundation in the tech industry. We get to assist you in honing your technical skills for the challenges and opportunities in today’s technology landscape.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Curriculum Section -->
|
||||
<section id="curriculum">
|
||||
<div class="container">
|
||||
<h2> Recommended IT courses</h2>
|
||||
<ul>
|
||||
<li>Missing Semester - Advanced Computer Skills: <a href="https://missing.csail.mit.edu/">https://missing.csail.mit.edu/</a></li>
|
||||
|
||||
<li>Programming Overview: <a href="https://pll.harvard.edu/course/cs50-introduction-computer-science">https://pll.harvard.edu/course/cs50-introduction-computer-science</a></li>
|
||||
|
||||
<li>To dive deeper into a fascinating programming language: <a href="https://learnyouahaskell.github.io/">https://learnyouahaskell.github.io/</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Testimonials Section -->
|
||||
<section id="testimonials">
|
||||
<div class="container">
|
||||
<h2>What Our Trainees Say</h2>
|
||||
<blockquote>
|
||||
<p>"Tech Launchpad gave me the skills and confidence I needed to start my career in IT. The mentorship and real-world experience were invaluable!"</p>
|
||||
<cite>— Ryan Mwangi, Software Developer</cite>
|
||||
</blockquote>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Call to Action Section -->
|
||||
<section id="apply">
|
||||
<div class="container">
|
||||
<h2>Get Started</h2>
|
||||
<p>Ready to take the next step in your IT career? Apply today!</p>
|
||||
<form id="applicationForm">
|
||||
<input type="text" name="name" placeholder="Your Name" required>
|
||||
<input type="email" name="email" placeholder="Your Email" required>
|
||||
<textarea name="message" placeholder="Why are you interested in this program?" required></textarea>
|
||||
<button type="submit" class="cta-button">Submit Application</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<!-- Footer Section -->
|
||||
<footer>
|
||||
<div class="container">
|
||||
<p>© 2024 Tech Launchpad Traineeship Program. All rights reserved.</p>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="form-handler.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,135 @@
|
|||
/* Basic Reset */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1100px;
|
||||
margin: auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
header {
|
||||
background: #004080;
|
||||
color: #fff;
|
||||
padding: 60px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
header p {
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
header .cta-button {
|
||||
background: #ff9900;
|
||||
color: #fff;
|
||||
padding: 10px 20px;
|
||||
text-decoration: none;
|
||||
font-size: 1.2rem;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
header .cta-button:hover {
|
||||
background: #cc7a00;
|
||||
}
|
||||
|
||||
.logo-container {
|
||||
position: absolute;
|
||||
top: 60px;
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
max-width: 150px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* Sections */
|
||||
section {
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
section h2 {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 20px;
|
||||
color: #004080;
|
||||
}
|
||||
|
||||
/* Curriculum */
|
||||
#curriculum ul {
|
||||
list-style: none;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
#curriculum ul li {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* Testimonials */
|
||||
#testimonials blockquote {
|
||||
font-size: 1.2rem;
|
||||
font-style: italic;
|
||||
margin: 20px 0;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
#testimonials cite {
|
||||
font-size: 1rem;
|
||||
color: #333;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
/* Call to Action Form */
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
form input,
|
||||
form textarea {
|
||||
margin-bottom: 15px;
|
||||
padding: 10px;
|
||||
font-size: 1rem;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
form button {
|
||||
background: #004080;
|
||||
color: #fff;
|
||||
padding: 10px 20px;
|
||||
font-size: 1.2rem;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
form button:hover {
|
||||
background: #00264d;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
footer {
|
||||
background: #f4f4f4;
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
footer p {
|
||||
font-size: 0.9rem;
|
||||
}
|
Loading…
Reference in New Issue