- split CSS and HTML

- updated README to proper markdown
- made site html5 valid
This commit is contained in:
Andreas Bielawski 2015-02-06 22:12:55 +01:00
parent 8990c30c59
commit 02c2b6662c
3 changed files with 18 additions and 17 deletions

View File

@ -1,2 +1,2 @@
# yagyuu.moe
Sourcecode from <a href="yayuu.moe">Yagyuu.moe</a>
Source code from [Yagyuu.moe](http://yagyuu.moe/)

View File

@ -33,28 +33,18 @@ $imgList = getImagesFromDir($root . $path);
$img = getRandomFromArray($imgList);
?>
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8" />
<title>Yagyuu</title>
<style type="text/css">
body { font: 14px/1.3 verdana, arial, helvetica, sans-serif; }
h1 { font-size:1.3em; }
h2 { font-size:1.2em; }
a:link { color:#33c; }
a:visited { color:#339; }
p { max-width: 60em; }
/* so linked image won't have border */
a img { border:none; }
</style>
<link rel="stylesheet" href="style.css">
</head>
<body>
<center>
<!-- image displays here -->
<div><img src="<?php echo $path . $img ?>" alt="" /></div>
</center>
<div class="pic-center">
<img src="<?php echo $path . $img ?>" alt="" />
</div>
</body>
</html>
</html>

11
style.css Normal file
View File

@ -0,0 +1,11 @@
body { font: 14px/1.3 verdana, arial, helvetica, sans-serif; }
h1 { font-size:1.3em; }
h2 { font-size:1.2em; }
a:link { color:#33c; }
a:visited { color:#339; }
p { max-width: 60em; }
/* so linked image won't have border */
a img { border:none; }
.pic-center { text-align: center; }