feat: update main page
This commit is contained in:
parent
dc64a2092d
commit
127947d69c
2 changed files with 66 additions and 26 deletions
26
index.html
26
index.html
|
@ -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ıkçı</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ıkçı -->
|
||||
<!-- 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
66
index.php
Normal 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ıkçı-->
|
||||
<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ıkçı">
|
||||
|
||||
<!-- 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ıkçı</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ıkçı -->
|
||||
<!-- Version: 0.0.5-m -->
|
Loading…
Reference in a new issue