- split CSS and HTML
- updated README to proper markdown - made site html5 valid
This commit is contained in:
parent
8990c30c59
commit
02c2b6662c
@ -1,2 +1,2 @@
|
||||
# yagyuu.moe
|
||||
Sourcecode from <a href="yayuu.moe">Yagyuu.moe</a>
|
||||
Source code from [Yagyuu.moe](http://yagyuu.moe/)
|
||||
|
22
index.php
22
index.php
@ -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
11
style.css
Normal 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; }
|
Loading…
Reference in New Issue
Block a user