feat: update main page

This commit is contained in:
Aliberk Sandıkçı 2023-07-15 17:08:39 +03:00
parent dc64a2092d
commit 127947d69c
2 changed files with 66 additions and 26 deletions

View File

@ -1,26 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Annual Maintenance</title>
</head>
<body style="background-color: rgb(53, 58, 63);color: rgb(159, 204, 218);">
<h1 style="text-align: center;">Personal Website | Aliberk Sandıı</h1>
<hr>
<h2 style="text-align: center;">UNDER ANNUAL MAINTENANCE</h2>
<hr>
<h3 style="text-align: center;">Please try again later</h3>
<div>
<h3><a href="link/">Links</a><br></h3>
<h3><a href="about/">About Me</a></h3>
<h3><a href="now/">Now</a></h3>
</div>
<!-- 2023 © Aliberk Sandıı -->
<!-- Version: 0.0.4-m -->
<!-- Consider visiting /dev folder if you are a developer -->
<!-- Source code in https://git.aliberksandikci.com.tr/asandikci.com/www -->
</body>
</html>

66
index.php Normal file
View File

@ -0,0 +1,66 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<?php
### ERROR HANDLING ###
function warnError($errno, $errstr, $errfile, $errline)
{
echo "<br><p style='padding:0px;margin:0px;background-color:white;color:black;'><b style='color:red;'>Error:</b> [$errno] $errstr <br> in file <b style='color:blue'>$errfile</b> line <b style='color:red'>$errline</b></p>";
}
set_error_handler("warnError");
if (!$_SERVER['DOCUMENT_ROOT']) {
$_SERVER['DOCUMENT_ROOT'] = '/weblink';
}
# TODO separate file
?>
<head>
<!--!Copyright © 2023 Aliberk Sandıı-->
<meta charset="UTF-8">
<!-- Meta Content -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Main Page">
<meta name="keywords" content="personal,website,mainpage,main">
<meta name="author" content="Aliberk Sandıı">
<!-- CSS Files -->
<?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/css");
foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".css")) {
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
}
} ?>
<title>Aliberk Sandıı</title>
</head>
<body>
<header>
<a href="/" id="hlogo"><img src="/assets/images/icons/favicon.png"></a>
<div class="tmpinfo">This page is still in active development</div>
</header>
<article style="text-align:center;align-items:center;">
<p>Main Page is still under construction, please consider to visit <a href="about/">about me</a>, <a href="link/">social media links</a> or <a href="now/">now</a> page.</p>
</article>
<footer>
<div class="tmpinfo">This page is still in active development</div>
</footer>
<?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/js");
foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") {
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';
}
} ?>
</body>
</html>
<!-- 2023 © Aliberk Sandıı -->
<!-- Version: 0.0.5-m -->