-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
222 lines (187 loc) · 6.73 KB
/
index.php
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Define the character encoding for the HTML document -->
<meta charset="UTF-8">
<!-- Set the viewport to control the layout on different devices (width and initial scale) -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="indexstyle.css" .css>
<!-- Set the title of the webpage -->
<title>DSI Tutoring | Home Page</title>
</head>
<style>
.hero-wrapper {
display: flex;
justify-content: space-between;
padding: auto;
}
.content {
flex-direction: column;
justify-content: flex-end;
align-items: flex-start;
max-width: 46%;
display: flex;
justify-content: left;
float: left;
padding-right: 100px;
padding-top: 65px;
font-size: 16px;
}
.picture-content img {
height: 200px;
display: flex;
justify-content: right;
margin-right: 200px;
float: right;
margin-top: 40px;
padding-left: 160px;
height: 40vh;
padding-bottom: 40px;
}
.btn-primary {
padding: 10px;
background-color: #4b1290;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
text-align: center;
text-decoration: none;
/* Make the button fill the container horizontally */
width: 100%;
max-width: 200px;
/* Center the button vertically in the container */
align-self: left;
}
.btn-primary:hover {
background-color: #360f6f;
}
br {
/* Display the <br> element as a white line */
display: block;
height: 2px;
background-color: #fff;
margin: 10px 0;
}
h1{
text-align: center;
}
.banner {
width: 100%;
height: 90vh;
background-image: linear-gradient(rgba(2, 1, 3, 0.69),rgba(19, 7, 36, 0.94)), url(home.page.pic/Header.jpeg);
background-size: cover;
background-position: center;
}
#myBtn {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
font-size: 18px;
border: NONE;
outline: none;
background-color:transparent;
color: white;
cursor: pointer;
padding: 15px;
border-radius: 900PX;
}
#myBtn:hover{
color: #fff;
}
</style>
<body>
<button onclick="topFunction()" id="myBtn" title="Go to top"><i class='fas fa-arrow-alt-circle-up' style='font-size:48px;color:#4b1290'></i></button>
<script>
// Get the button
let mybutton = document.getElementById("myBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<!-- Display the header with the logo, navigation menu, and search bar -->
<header>
<div class="logo">
<img src="home.page.pic\logo.png" alt="Logo">
</div>
<nav>
<a href="index.php" target="_self">HOME</a>
<div class="dropdown">
<a href="#">SUBJECTS</a>
<div class="dropdown-content">
<a href="register.php" target="_self">DEVELOPMENT SOFTWARE 1</a>
<a href="register.php" target="_self">DEVELOPMENT SOFTWARE 2</a>
<a href="register.php" target="_self">TECHNICAL PROGRAMMING 1</a>
</div>
</div>
<a href="contact.php" target="_self">CONTACT</a>
<a href="login.php" target="_self">LOGIN</a>
</nav>
<button onclick="window.location.href='register.php'">GET A TUTOR</button>
</header>
<div class="banner">
<main>
<h1>Welcome to DSI Tutoring Homepage </h1>
<p style="text-align: center;">Here you will find information about our services, and contact details.</p>
<br>
</main>
</div>
<br>
<div class="hero-wrapper" id="about">
<div class="content">
<h1>About my tutorials!</h1>
<p>The classes are conducted in a dynamic and interactive manner,<br>
providing personalized attention and support to each student. <br>
The sessions include live lectures, group discussions, <br>
hands-on activities, and coding exercises to ensure a comprehensive <br>
understanding of the topics</p>
<a href="contact.php" class="btn-primary">ENQUIRE NOW</a>
</div>
<div class="picture-content">
<img src="home.page.pic/kgaugelo.png" alt="">
</div>
</div>
<br>
<br>
<div class="hero-wrapper">
<div class="picture-content">
<img src="vendors/images/banner-img.png" alt="">
</div>
<div class="content">
<h1>About my tutorials!</h1>
<p>TThe classes aim to make learning engaging and accessible, catering to students of all levels. Kgaugelo Mmakola is committed to guiding students through their learning journey, helping them develop critical thinking skills and succeed in their academic endeavors.</p>
<a href="contact.php" class="btn-primary" >ENQUIRE NOW</a>
</div>
</div>
<footer>
<hr>
<div class="CopyContainer">
<div class="copyright">
<ul class="social-media">
<li><a class="sos-media" href="#facebook"><i class="fab fa-facebook-f"></i></a></li>
<li><a class="sos-media" href="#twitter"><i class="fab fa-twitter"></i></a></li>
<li><a class="sos-media" href="#linkedin"><i class="fab fa-linkedin-in"></i></a></li>
<li><a class="sos-media" href="#instagram"><i class="fab fa-instagram"></i></a></li>
</ul>
<a href="">© Digital Service Invetion 2024</a>
</div>
</div>
</footer>
</body>
</html>