Skip to content
Snippets Groups Projects
Commit 7b2ae432 authored by Genvictus's avatar Genvictus
Browse files

feat: implement navbar on compose page

parent 4852a3ce
No related merge requests found
...@@ -18,6 +18,8 @@ require_once PAGE_PATH . "/templates/navbar.php"; ...@@ -18,6 +18,8 @@ require_once PAGE_PATH . "/templates/navbar.php";
<?php <?php
echo Navbar(); echo Navbar();
?> ?>
<div id="list-post">
</div>
</div> </div>
<script src="/public/js/home.js"></script> <script src="/public/js/home.js"></script>
</body> </body>
......
<?php
require_once PAGE_PATH . "/templates/navbar.php"
?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
...@@ -5,34 +9,40 @@ ...@@ -5,34 +9,40 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/public/css/post.css"> <link rel="stylesheet" type="text/css" href="/public/css/post.css">
<link rel="stylesheet" href="/public/css/shared.css" />
<link href="https://fonts.googleapis.com/css?family=Rubik" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Rubik" rel="stylesheet">
<title>Post Page</title> <title>Post Page</title>
</head> </head>
<body> <body>
<section id="overlay"> <div class="layout">
<img src="/public/assets/Logo.png" alt="Kicau Logo" id="logo"> <?php
<hr> echo Navbar();
<form enctype="multipart/form-data" action="create" method="POST"> ?>
<h1>Create a post!</h1> <section id="overlay">
<section class="post_body"> <img src="/public/assets/Logo.png" alt="Kicau Logo" id="logo">
<label for="post_body">Type in the box below:</label> <hr>
<form enctype="multipart/form-data" action="create" method="POST">
<h1>Create a post!</h1>
<section class="post_body">
<label for="post_body">Type in the box below:</label>
<br>
<textarea id="post_body" name="post_body" rows="15" cols="70"></textarea>
</section>
<br> <br>
<textarea id="post_body" name="post_body" rows="15" cols="70"></textarea>
</section>
<br>
<section class="file"> <section class="file">
<label for="file_input">Select a file:</label> <label for="file_input">Select a file:</label>
<input type="file" id="file_input" name="file_input"> <input type="file" id="file_input" name="file_input">
</section> </section>
<hr> <hr>
<section class="submission"> <section class="submission">
<input type="submit" id="btn-post" value="Post"> <input type="submit" id="btn-post" value="Post">
</section> </section>
</form> </form>
</section> </section>
</div>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -35,8 +35,6 @@ function Navbar() ...@@ -35,8 +35,6 @@ function Navbar()
</a> </a>
</div> </div>
</div> </div>
<div id="list-post">
</div>
EOT; EOT;
return $html; return $html;
......
...@@ -23,7 +23,7 @@ body{ ...@@ -23,7 +23,7 @@ body{
.layout { .layout {
display: grid; display: grid;
grid-template-columns: 275px auto 150px; grid-template-columns: 275px auto auto;
/* margin: auto; */ /* margin: auto; */
/* max-width: 2200px; */ /* max-width: 2200px; */
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment