Untitled
unknown
plain_text
a year ago
8.8 kB
29
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mentorly - Your Growth Partner</title>
<style>
/* General Styles */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}
/* Header Styles */
header {
background-color: #4CAF50;
padding: 20px;
text-align: center;
}
header img {
height: 80px;
}
/* Navigation Styles */
nav {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #333;
padding: 10px 20px;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
}
nav ul li {
padding: 0 15px;
}
nav ul li a {
color: white;
text-decoration: none;
font-size: 16px;
}
nav ul li a:hover {
background-color: #ddd;
color: black;
padding: 5px 10px;
border-radius: 4px;
}
/* Login Button */
.login-btn {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
border-radius: 4px;
}
.login-btn:hover {
background-color: #45a049;
}
/* Banner Section */
.banner {
background-image: url('img/image1.jpg');
background-size: cover;
background-position: center;
height: 400px;
color: white;
display: flex;
justify-content: center;
align-items: center;
}
.banner h1 {
font-size: 50px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
/* Services Section */
.services {
padding: 40px;
background-color: #f9f9f9;
text-align: center;
}
.services h2 {
color: #4CAF50;
margin-bottom: 30px;
}
.services-container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.service-box {
background-color: white;
padding: 20px;
margin: 10px;
width: 30%;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.service-box img {
width: 100%;
height: 200px;
object-fit: cover;
}
.service-box h3 {
margin: 10px 0;
color: #333;
}
.service-box p {
color: #555;
}
/* Footer Styles */
footer {
background-color: #333;
color: white;
padding: 20px;
text-align: center;
}
footer a {
color: #4CAF50;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
/* Popup Modal */
.modal {
display: none; /* Hidden by default */
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
}
.modal-content {
background-color: white;
padding: 20px;
border-radius: 8px;
width: 300px;
text-align: center;
}
.modal-content input[type="text"], .modal-content input[type="password"] {
width: 90%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 4px;
}
.modal-content button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 4px;
margin-top: 10px;
}
.modal-content button:hover {
background-color: #45a049;
}
.modal-content .forgot-pass, .modal-content .signup {
display: block;
margin: 10px 0;
color: #4CAF50;
text-decoration: none;
}
.modal-content .forgot-pass:hover, .modal-content .signup:hover {
text-decoration: underline;
}
/* Responsive Design */
@media (max-width: 768px) {
.services-container {
flex-direction: column;
align-items: center;
}
.service-box {
width: 90%;
}
nav ul {
flex-direction: column;
align-items: center;
}
}
</style>
</head>
<body>
<!-- Header Section -->
<header>
<img src="img/1.png" alt="Mentorly Logo">
</header>
<!-- Navigation Menu with Login Button -->
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<button class="login-btn" onclick="openModal()">Login</button>
</nav>
<!-- Banner Section -->
<section class="banner">
<h1>Welcome to Mentorly</h1>
</section>
<!-- Services Section -->
<section id="services" class="services">
<h2>Our Services</h2>
<div class="services-container">
<!-- Service 1 -->
<div class="service-box">
<img src="img/image2.jpg" alt="Service 1">
<h3>Personalized Mentorship</h3>
<p>One-on-one mentoring tailored to your career goals and personal growth.</p>
</div>
<!-- Service 2 -->
<div class="service-box">
<img src="img/image3.jpg" alt="Service 2">
<h3>Workshops & Training</h3>
<p>Interactive workshops and training programs to enhance your professional skills.</p>
</div>
<!-- Service 3 -->
<div class="service-box">
<img src="img/image4.jpg" alt="Service 3">
<h3>Career Development</h3>
<p>Strategic career planning and guidance to ensure long-term success.</p>
</div>
</div>
</section>
<!-- Footer Section -->
<footer id="contact">
<p>© 2024 Mentorly. All Rights Reserved.</p>
<p>Contact us at <a href="mailto:info@mentorly.com">info@mentorly.com</a></p>
</footer>
<!-- Login Popup Modal -->
<div id="loginModal" class="modal">
<div class="modal-content">
<h2>Login</h2>
<input type="text" id="loginId" placeholder="Login ID">
<input type="password" id="password" placeholder="Password">
<button onclick="login()">Login</button>
<a href="#" class="forgot-pass">Forgot Password?</a>
<a href="#" class="signup">Sign Up</a>
</div>
</div>
<script>
// Function to open the login modal
function openModal() {
document.getElementById('loginModal').style.display = 'flex';
}
// Function to close the login modal when clicked outside
window.onclick = function(event) {
var modal = document.getElementById('loginModal');
if (event.target == modal) {
modal.style.display = 'none';
}
}
// Function to simulate login
function login() {
var loginId = document.getElementById('loginId').value;
var password = document.getElementById('password').value;
if (loginId && password) {
alert('Login Successful');
document.getElementById('loginModal').style.display = 'none';
} else {
alert('Please enter your login details.');
}
}
</script>
</body>
</html>
Editor is loading...
Leave a Comment