This commit is contained in:
Aliberk Sandıkçı 2023-05-11 17:58:03 +03:00
parent 81ce342306
commit 6c666b805d
6 changed files with 117 additions and 68 deletions

View file

@ -20,3 +20,6 @@ whereis php
# check php version with: # check php version with:
php --version php --version
# When running in local machine link /weblink to ./www
ln -sv /path/to/www/ /weblink

View file

@ -1,35 +1,26 @@
:root {
--palette1-color1: #212A3E;
--palette1-color2: #394867;
--palette1-color3: #9BA4B5;
--palette1-color4: #F1F6F9;
--palette2-color1: #1B262C;
--palette2-color2: #0F4C75;
--palette2-color3: #3282B8;
--palette2-color4: #BBE1FA;
--cur-color1: var(--palette2-color1);
--cur-color2: var(--palette2-color2);
--cur-color3: var(--palette2-color3);
--cur-color4: var(--palette2-color4);
}
body { body {
background-color: var(--cur-color1); background-color: #212A3E;
} }
body .block-out {
.outline {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin: 0rem 5rem;
align-self: center;
} }
body .block-out .block-in {
.inline { background-color: #394867;
background-color: var(--cur-color2); color: #F1F6F9;
color: var(--cur-color4);
border-radius: 10px; border-radius: 10px;
border-style: groove; border-style: groove;
padding: 1rem 0; padding: 1rem 0;
margin: 1rem 0;
}
body .block-out .block-in .basic-list {
text-align: center;
list-style-type: none;
}
body .block-out .block-in .basic-list > .block-list-in {
padding: 1rem 0;
} }
/*# sourceMappingURL=main.css.map */ /*# sourceMappingURL=main.css.map */

View file

@ -1 +1 @@
{"version":3,"sourceRoot":"","sources":["../scss/main.css"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF","file":"main.css"} {"version":3,"sourceRoot":"","sources":["../scss/main.scss"],"names":[],"mappings":"AAeA;EACE,kBAhBgB;;AAkBhB;EACE;EACA;EACA;EACA;;AAEA;EACE,kBAxBY;EAyBZ,OAvBY;EAyBZ;EACA;EAEA;EACA;;AAEA;EACE;EACA;;AAEA;EACE","file":"main.css"}

View file

@ -1,35 +1,47 @@
:root { $palette1-color1: #212A3E;
--palette1-color1: #212A3E; $palette1-color2: #394867;
--palette1-color2: #394867; $palette1-color3: #9BA4B5;
--palette1-color3: #9BA4B5; $palette1-color4: #F1F6F9;
--palette1-color4: #F1F6F9;
--palette2-color1: #1B262C; $palette2-color1: #1B262C;
--palette2-color2: #0F4C75; $palette2-color2: #0F4C75;
--palette2-color3: #3282B8; $palette2-color3: #3282B8;
--palette2-color4: #BBE1FA; $palette2-color4: #BBE1FA;
--cur-color1: var(--palette2-color1); $cur-color1: $palette1-color1;
--cur-color2: var(--palette2-color2); $cur-color2: $palette1-color2;
--cur-color3: var(--palette2-color3); $cur-color3: $palette1-color3;
--cur-color4: var(--palette2-color4); $cur-color4: $palette1-color4;
}
body { body {
background-color: var(--cur-color1); background-color: $cur-color1;
}
.outline { .block-out {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} margin: 0rem 5rem;
align-self: center;
.inline { .block-in {
background-color: var(--cur-color2); background-color: $cur-color2;
color: var(--cur-color4); color: $cur-color4;
border-radius: 10px; border-radius: 10px;
border-style: groove; border-style: groove;
padding: 1rem 0;
margin: 1rem 0;
.basic-list {
text-align: center;
list-style-type: none;
>.block-list-in{
padding: 1rem 0;
}
}
}
}
padding: 1rem 0;
} }

View file

@ -1,13 +1,34 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <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
?>
<style>
body{
color: white;
}
</style>
<head> <head>
<!--!Copyright © 2023 Aliberk Sandıı--> <!--!Copyright © 2023 Aliberk Sandıı-->
<meta charset="UTF-8"> <meta charset="UTF-8">
<!-- CSS Files --> <!-- CSS Files -->
<?php <?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT']."/assets/css"); $dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/css");
foreach ($dir as $file) { foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".css")) { if ((!$file->isDot()) && str_ends_with($file, ".css")) {
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' '; echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
@ -21,8 +42,9 @@
<body> <body>
<h1>DEVELOPMENT PAGE</h1> <h1>DEVELOPMENT PAGE</h1>
<hr> <hr>
<?php <?php
echo 'DOCUMENTS_ROOT:' . $_SERVER['DOCUMENT_ROOT'] . PHP_EOL . "<br>"; echo 'DOCUMENTS_ROOT:' . $_SERVER['DOCUMENT_ROOT'] . PHP_EOL . "<br>";
echo 'PHP_SELF:' . $_SERVER['PHP_SELF'] . PHP_EOL . "<br>"; echo 'PHP_SELF:' . $_SERVER['PHP_SELF'] . PHP_EOL . "<br>";
echo 'GATEWAY_INTERFACE:' . $_SERVER['GATEWAY_INTERFACE'] . PHP_EOL . "<br>"; echo 'GATEWAY_INTERFACE:' . $_SERVER['GATEWAY_INTERFACE'] . PHP_EOL . "<br>";
@ -57,8 +79,8 @@
?> ?>
<?php <?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT']."/assets/js"); $dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/js");
foreach ($dir as $file) { foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") { if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") {
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' '; echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';

View file

@ -1,5 +1,19 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <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> <head>
<!--!Copyright © 2023 Aliberk Sandıı--> <!--!Copyright © 2023 Aliberk Sandıı-->
@ -13,33 +27,40 @@
<!-- CSS Files --> <!-- CSS Files -->
<?php <?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT']."/assets/css"); $dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/css");
foreach ($dir as $file) { foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".css")) { if ((!$file->isDot()) && str_ends_with($file, ".css")) {
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' '; echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
} }
} ?> } ?>
<title>Aliberk Sandıı | Personel Website | aliberksandikci.com.tr</title> <title>My Links | Aliberk Sandıı</title>
</head> </head>
<body> <body>
<div class="outline"> <h1>STILL UNDER ACTIVE DEVELOPMENT</h1>
<ul class="inline">
<li><a href="https://asandikci.com/about">About me (not ready)</a></li>
<li><a href="https://mastodon.social/@asandikci">Mastodon (Fediverse)</a></li>
</ul>
<ul class="inline"> <div class="block-out">
<li><a href="https://www.instagram.com/aliberksandikci/">Instagram</a></li>
<li>Discord: kinetokor#7641</li> <div class="block-in">
</ul> <ul class="basic-list">
<li class="block-list-in"><a href="https://asandikci.com/about">About me (not ready)</a></li>
<li class="block-list-in"><a href="https://mastodon.social/@asandikci">Mastodon (Fediverse)</a></li>
</ul>
</div>
<div class="block-in">
<ul class="basic-list">
<li class="block-list-in"><a href="https://www.instagram.com/aliberksandikci/">Instagram</a></li>
<li class="block-list-in">Discord: kinetokor#7641</li>
</ul>
</div>
</div> </div>
<?php <?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT']."/assets/js"); $dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/js");
foreach ($dir as $file) { foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") { if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") {
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' '; echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';