Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
35 changes: 35 additions & 0 deletions AdminErrorPage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>

<title>EDUCARE | ERROR</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="stylePage.css" type="text/css"></link>

</head>
<body id="myPage">

<div class="jumbotron text-center">
<h1>Error </h1>
<?php
if(isset($_SESSION['error_msg']))
{
$error_message = $_SESSION['error_msg'];
}
else
$error_message = "An error occured on the previous page";
echo "<h3>". $error_message. "</h3>";
echo "<a href='adminSignIn.html'>Try Again</a>";
?>
</div>
</body>
</html>
110 changes: 110 additions & 0 deletions about.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
body{
background-color: darkseagreen;
background-image: url("Images/background.jpg");
}


h3{
font-size: 60px;
font-style: italic;
color: rgb(77, 0, 150);
padding-left: 15%;
padding-right: 15%;
margin-top: 20px;
margin-bottom: 20px;
text-shadow:5px -5px 10px rgb(5, 247, 255);
text-align: center;
text-decoration: underline;
text-decoration-style: dotted;
text-shadow: darkslateblue;
}

.counters {
background-color: cadetblue;
color: #fff;
text-shadow: 2px 2px 3px cornsilk;
padding: 40px 20px;
border: 3px lightskyblue solid;
margin-left: 2px;
margin-right: 2px;

}

.counters .container {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-gap: 30px;
text-align: center;
}

.counters .counter {
font-size: 45px;
margin: 10px 0;
}

@media (max-width: 1000px) {
.counters .container {
grid-template-columns: repeat(3, 2fr);
}


.counters .container > div:nth-of-type(1),
.counters .container > div:nth-of-type(2),
.counters .container > div:nth-of-type(3) {
border-bottom: 1px lightskyblue solid;
padding-bottom: 20px;
}
}

#abt{
font-size: 25px;
font-family: 'Times New Roman', Times, serif;
font-style: italic;
margin: 50px;
padding: 50px;
color: rgb(0, 255, 255);
text-align: justify;
background-color: rgba(0, 139, 139, 0.486);
box-shadow: 5px 5px 5px 5px whitesmoke;
}

.column {
position: relative;
float: left;
width: 50%;
margin: 0 auto;
padding-left: 10%;
padding-right: 10px;
background-color:rgba(168, 194, 194, 0.397);
vertical-align: middle;
}

.row{
margin-left: 200px;
margin-right: 200px;
background-color:rgba(168, 194, 194, 0.397) ;
vertical-align: middle;
}

.row::after {
content: "";
clear: both;
display: table;
vertical-align: middle;
}

h5{
color: rgb(8, 87, 8);
font-size: 25px;
margin-top: 40px;
margin-bottom: 30px;
}
b{
color: rgba(49, 45, 45, 0.979);
}
img{
width: 100%;
height: 80%;
vertical-align: middle;
padding-top: 30%;
}
25 changes: 25 additions & 0 deletions about.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const counters = document.querySelectorAll('.counter');
const speed = 1000; // The lower the faster

counters.forEach(counter => {
const updateCount = () => {
const target = +counter.getAttribute('data-target');
const count = +counter.innerText;

// Lower inc to slow and higher to slow
const inc = target / speed;


// Check if target is reached
if (count < target) {
// Add inc to count and output in counter
counter.innerText = Math.ceil(count + inc);
// Call function every ms
setTimeout(updateCount, 1);
} else {
counter.innerText = target;
}
};

updateCount();
});
Loading