prettyyyyy

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

View file

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

View file

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