Add styling
authorJacob Casper <dev@jacobcasper.com>
Sat, 9 Apr 2022 21:17:44 +0000 (16:17 -0500)
committerJacob Casper <dev@jacobcasper.com>
Sat, 9 Apr 2022 21:17:44 +0000 (16:17 -0500)
index.php
style.css [new file with mode: 0644]

index 804a15e..88310ff 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,4 +1,10 @@
 <html>
+<head>
+<link rel="stylesheet" href="style.css">
+</head>
+
+<body>
+<main>
 <a href='upload.php'>Upload</a>
 <?php
 
@@ -29,5 +35,6 @@ while ($post = $posts->fetchArray()) {
   echo '</div>';
 }
 ?>
-<div>footer</div>
+</main>
+</body>
 </html>
diff --git a/style.css b/style.css
new file mode 100644 (file)
index 0000000..df0850b
--- /dev/null
+++ b/style.css
@@ -0,0 +1,16 @@
+body {
+  background-color: #eee;
+}
+main {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+
+}
+
+main p::before {
+  content: "Jacob: ";
+}
+main p {
+  max-width: 480px;
+}