- 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 # 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); $img = getRandomFromArray($imgList);
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>Yagyuu</title> <title>Yagyuu</title>
<style type="text/css"> <link rel="stylesheet" href="style.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>
</head> </head>
<body> <body>
<center>
<!-- image displays here --> <!-- image displays here -->
<div><img src="<?php echo $path . $img ?>" alt="" /></div> <div class="pic-center">
</center> <img src="<?php echo $path . $img ?>" alt="" />
</div>
</body> </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; }