prettyyyyy

This commit is contained in:
Jarkko Toivanen 2024-09-28 01:27:52 +03:00
parent e13a8d130e
commit 8f2311df0b
Signed by: jt
GPG key ID: 9151B109B73ECAD5
2 changed files with 19 additions and 3 deletions

View file

@ -8,7 +8,7 @@
</head>
<body>
<div id="centerbox">
<h1>Snuffler</h1>
<div id="titlebox"><img src="favicon.ico" />Snuffler</div>
<form id="postform">
<textarea id="postformtextarea" name="text" rows="5" placeholder="Whatcha snuffin' about?"></textarea><br />
<div id="postformactionrow">
@ -32,7 +32,7 @@ if(!$database) {
//$database->addPost("Test post", 0);
$posts = $database->getPosts();
$posts = array_reverse($database->getPosts());
//var_dump($posts);
foreach($posts as $post) {
echo '<div class="post">';

View file

@ -7,13 +7,26 @@ hr {
border-color: #584200;
}
#titlebox {
font-size: 5em;
text-align: center;
}
#titlebox > img {
display: inline-block;
height: 1em;
}
#centerbox {
margin: auto;
max-width: 50em;
}
#postform {
margin-top: 1em;
margin-bottom: 1em;
}
#postformtextarea {
box-sizing: border-box;
width: 100%;
border-radius: 1em;
}
#postformactionrow {
text-align: right;
@ -22,7 +35,10 @@ hr {
.post {
border-style: solid;
border-width: 1px;
padding: .5em;
padding: 1em;
margin-top: 1em;
margin-bottom: 1em;
border-radius: 1em;
/*
margin: auto;
max-width: 50em;