46 lines
971 B
PHP
46 lines
971 B
PHP
<?php
|
|
/**
|
|
* Renders a simply fwdkr.co page.
|
|
*
|
|
* @param string $title the page's title, as displayed in the tab
|
|
* @param string $body the bit of text to display to the user
|
|
*/
|
|
function render_page(string $title, string $body)
|
|
{
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<title><?= $title ?></title>
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
|
|
<style>
|
|
* {
|
|
font-family: "Roboto", sans-serif;
|
|
}
|
|
|
|
a:link, a:visited, a:hover, a:active {
|
|
color: black;
|
|
}
|
|
|
|
#wrapper {
|
|
margin: auto;
|
|
padding-top: 50px;
|
|
|
|
width: 50%;
|
|
max-width: 800px;
|
|
min-width: 400px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="wrapper">
|
|
<h1><a href="https://fwdekker.com/">FWDekker</a></h1>
|
|
<?= $body ?>
|
|
</div>
|
|
</body>
|
|
</html><?php
|
|
}
|