-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
188 lines (166 loc) · 7.7 KB
/
home.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>home</title>
<link rel="icon" href="/images/my-icon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css2?family=Inria+Serif:wght@400;700&display=swap" rel="stylesheet">
<style>
/* Add background image and style */
body {
margin: 0;
padding: 0;
background-image: url('plainbg.png'); /* Change the path to your image */
background-size: cover; /* Ensure the image covers the entire background */
background-position: center; /* Center the image */
background-attachment: fixed; /* Make the background fixed while scrolling */
background-repeat: no-repeat; /* Avoid tiling the background */
height: 100vh; /* Full viewport height */
display: flex; /* Use flexbox for centering */
flex-direction: column; /* Arrange children in a column */
justify-content: center; /* Center vertically */
align-items: center; /* Center horizontally */
}
/* Icon styling */
.icon {
position: absolute; /* Use absolute positioning */
top: 10px; /* Position it 10px from the top */
left: 10px; /* Position it 10px from the left */
}
.icon img {
height: 50px; /* Adjust the size of the icon */
width: auto; /* Maintain aspect ratio */
}
/* Centering the text at the top middle */
.top-middle-text {
font-family: 'Inria Serif', serif; /* Use Inria Serif font */
position: absolute; /* Use absolute positioning */
top: 20px; /* Position it 20px from the top */
left: 50%; /* Center horizontally */
transform: translateX(-50%); /* Adjust for the width of the element */
text-align: center; /* Center align text */
color: black; /* Text color */
width: 100%; /* Full width for centering */
}
/* Style for the text */
h1 {
font-size: 36px; /* Adjust font size */
font-weight: bold; /* Use bold weight */
margin: 0; /* Remove margin */
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}
/* Sign Up button styling */
.signup-button {
position: absolute; /* Use absolute positioning */
top: 20px; /* Position it 20px from the top */
right: 20px; /* Position it 20px from the right */
padding: 10px 20px; /* Add padding for the button */
background-color: #007BFF; /* Button color */
color: white; /* Text color */
border: none; /* Remove border */
border-radius: 5px; /* Rounded corners */
font-size: 16px; /* Font size */
cursor: pointer; /* Change cursor on hover */
transition: background-color 0.3s; /* Smooth transition for hover effect */
}
.signup-button:hover {
background-color: #0056b3; /* Darker blue on hover */
}
.positioned-image {
position: absolute; /* Use absolute positioning */
top: 45px; /* Adjust as needed */
left: 500px; /* Adjust as needed */
width: 500px; /* Adjust size as needed */
height: auto; /* Maintain aspect ratio */
margin-top: 100px;
}
/* Left middle text styling */
.left-middle-text {
position: absolute; /* Use absolute positioning */
left: 20px; /* Position it 20px from the left */
top: 40%; /* Center vertically */
transform: translateY(-50%); /* Adjust for the height of the element */
text-align: left; /* Left align text */
color: black; /* Text color */
}
.left-middle-text h2 {
font-size: 30px; /* Adjust font size */
margin: 10; /* Remove margin */
text-shadow: none; /* Remove text shadow */
}
.left-middle-text h3 {
font-size: 20px; /* Adjust font size */
margin: 10; /* Remove margin */
}
.explore-link {
display: block; /* Make it a block element */
font-size: 18px; /* Adjust font size to a smaller size */
margin-top: 5px; /* Space between texts */
color: black; /* Change the color to black */
text-decoration: underline; /* Underline for emphasis */
cursor: pointer; /* Change cursor on hover */
}
.explore-link:hover {
color: red; /* Change color to red on hover */
}
/* New styling for the image container */
.image-container {
display: flex; /* Use flexbox to align images in a row */
justify-content: left; /* Center images */
margin-top: 350px; /* Space above the image container */
width: 100%; /* Full width for the container */
}
.image-container div {
text-align: center; /* Center align text under images */
margin: 0 35px; /* Add margin between image blocks */
}
.image-container img {
width: 50px; /* Adjust the size of the images */
height: auto; /* Maintain aspect ratio */
margin: 0; /* No margin for images */
}
</style>
</head>
<body>
<!-- Icon on the top left corner -->
<div class="icon">
<img src="icon.png" alt="Icon representing skills"> <!-- Ensure this path is correct -->
</div>
<!-- Text positioned at the top middle -->
<div class="top-middle-text">
<h1>MASTER NEW SKILLS<br>ANYTIME, ANYWHERE</h1>
</div>
<!-- Centered Image -->
<img class="positioned-image" src="girl.png" alt="Your centered image"> <!-- Replace with your image path -->
<!-- Left middle text -->
<div class="left-middle-text">
<h2>Welcome to EduQuestor</h2>
<h3>Unlock Your Potential with our Online Courses<br><br>Join thousands of satisfied learners who have transformed their<br> careers through our courses!<br>Start your learning journey today! Sign up for free and explore our course offerings.</h3>
<a class="explore-link" href="explore.html">Explore Us</a> <!-- Replace 'explore.html' with the path to your desired page -->
</div>
<!-- Image container with 4 images -->
<div class="image-container">
<div>
<img src="home.png" alt="Image 1"> <!-- Replace with your image path -->
<a class="explore-link" href="home.html">Home</a> <!-- Link under Image 1 -->
</div>
<div>
<img src="about.png" alt="Image 2"> <!-- Replace with your image path -->
<a class="explore-link" href="about.html">About Us</a> <!-- Link under Image 2 -->
</div>
<div>
<img src="contact.png" alt="Image 3"> <!-- Replace with your image path -->
<a class="explore-link" href="contact.html">Contact</a> <!-- Link under Image 3 -->
</div>
<div>
<img src="faqs.png" alt="Image 4"> <!-- Replace with your image path -->
<a class="explore-link" href="faqs.html">FAQs</a> <!-- Link under Image 4 -->
</div>
</div>
<!-- Sign Up button -->
<!-- Sign Up button -->
<a href="signup.html" class="signup-button">Sign Up</a>
</body>
</html>