This commit is contained in:
XlXi 2020-12-15 14:14:13 -05:00
parent 335d8fb4f5
commit e45a3d8e93
3 changed files with 49 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class Web {
public function buildPage($headers) {
$contents = ob_get_contents();
ob_end_clean();
echo "<!DOCTYPE html>\n<html>\n<head>\n<link rel=\"stylesheet\" href=\"//cdn." . Web::GetDomain() . "/CSS/Base/fetch/\">\n$headers</head>\n<body>\n$contents</body>\n</html>";
echo "<!DOCTYPE html>\n<html>\n<head>\n<link rel=\"stylesheet\" href=\"//cdn." . Web::GetDomain() . "/CSS/Global/fetch/\">\n$headers</head>\n<body>\n$contents</body>\n</html>";
}
}

View File

@ -0,0 +1,42 @@
<?php
/*
Platinus Global CSS
*/
header("Content-Type: text/css");
?>
/*
Platinus Global CSS
Copyright (C) XlXi 2020
DO NOT DISTRIBUTE
*/
body, div, h1, h2, h3, h4, h5 {
margin: 0;
}
body {
font-family: segoe ui;
min-height: 100vh;
background-color: rgb(248,248,254);
}
.plt-header {
height: 50px;
background: linear-gradient(hsl(213 71% 50% / 1), hsl(213 71% 30% / 1));
border: 0;
border-bottom: 1px #292a2f;
border-style: solid;
box-shadow: #292a2f 0 -18px 2px 20px;
margin-bottom: 10px;
}
.container {
margin: auto;
max-width: 1000px;
}

View File

@ -17,8 +17,14 @@ $page = new Platinus\Web();
$headers = $page->buildHeaders();
?>
<div class="plt-header">
<div class="container">
<h1>Platinus</h1>
</div>
</div>
<div class="container">
<h3>Simple home page</h3>
</div>
<?php
$page->buildPage($headers);