Coat of paint
This commit is contained in:
parent
41d45a76ff
commit
8c95e4d8b6
@ -1,6 +1,7 @@
|
||||
:root {
|
||||
--primary: #fff;
|
||||
--secondary: #ddd;
|
||||
--secondary: #eee;
|
||||
--border: #ccc;
|
||||
--text: #111;
|
||||
--links: #00f;
|
||||
}
|
||||
@ -9,6 +10,7 @@
|
||||
:root {
|
||||
--primary: #111;
|
||||
--secondary: #222;
|
||||
--border: #444;
|
||||
--text: #eee;
|
||||
--links: #aaf;
|
||||
}
|
||||
@ -19,15 +21,26 @@
|
||||
|
||||
body {
|
||||
background: var(--primary);
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
|
||||
font-size: 1rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
main, header > nav {
|
||||
padding: .75rem;
|
||||
max-width: 40rem;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #335;
|
||||
}
|
||||
header > nav > a {
|
||||
color: #eee;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--links);
|
||||
}
|
||||
@ -74,6 +87,6 @@ blockquote {
|
||||
font-style: italic;
|
||||
padding: .5rem;
|
||||
padding-left: 1.25rem;
|
||||
border-left: .25rem solid var(--secondary);
|
||||
border-left: .25rem solid var(--border);
|
||||
margin: 0;
|
||||
}
|
@ -9,12 +9,19 @@ if (!isset($is_index)) {
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="<?=url('/')?>style.css">
|
||||
<title><?=$title?><?php if ($is_index) {echo '';} else {echo ' | Willy\'s Website';}?></title>
|
||||
<?php if ($is_index): ?>
|
||||
<title>Willy's Website</title>
|
||||
<?php else: ?>
|
||||
<title><?=$title?> | Willy's Website</title>
|
||||
<?php endif; ?>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="<?=url('/')?>">Willy's Website</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
<?php if (!$is_index): ?>
|
||||
<main>
|
||||
<h1><a href="<?=url('/')?>">Willy's Website</a> | <?=$title?></h1>
|
||||
<h1><?=$title?></h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<main>
|
@ -1,6 +1,4 @@
|
||||
<?= view('header', ['is_index' => true, 'title' => 'Willy\'s Website']) ?>
|
||||
|
||||
<h1>Willy's Website</h1>
|
||||
<?= view('header', ['is_index' => true]) ?>
|
||||
|
||||
<p><blockquote>More than just willies! Some of the time.</blockquote></p>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?= view('header', ['title' => 'Test']) ?>
|
||||
<?= view('header', ['title' => 'The Illusion of Meaning']) ?>
|
||||
|
||||
<blockquote>Quote</blockquote>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user