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

feat: implement navbar on compose page

parent 4852a3ce
Branches
Tags
No related merge requests found
......@@ -18,6 +18,8 @@ require_once PAGE_PATH . "/templates/navbar.php";
<?php
echo Navbar();
?>
<div id="list-post">
</div>
</div>
<script src="/public/js/home.js"></script>
</body>
......
<?php
require_once PAGE_PATH . "/templates/navbar.php"
?>
<!DOCTYPE html>
<html lang="en">
......@@ -5,34 +9,40 @@
<meta charset="utf-8">
<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" href="/public/css/shared.css" />
<link href="https://fonts.googleapis.com/css?family=Rubik" rel="stylesheet">
<title>Post Page</title>
</head>
<body>
<section id="overlay">
<img src="/public/assets/Logo.png" alt="Kicau Logo" id="logo">
<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>
<div class="layout">
<?php
echo Navbar();
?>
<section id="overlay">
<img src="/public/assets/Logo.png" alt="Kicau Logo" id="logo">
<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>
<textarea id="post_body" name="post_body" rows="15" cols="70"></textarea>
</section>
<br>
<section class="file">
<label for="file_input">Select a file:</label>
<input type="file" id="file_input" name="file_input">
</section>
<hr>
<section class="file">
<label for="file_input">Select a file:</label>
<input type="file" id="file_input" name="file_input">
</section>
<hr>
<section class="submission">
<input type="submit" id="btn-post" value="Post">
</section>
</form>
</section>
<section class="submission">
<input type="submit" id="btn-post" value="Post">
</section>
</form>
</section>
</div>
</body>
</html>
\ No newline at end of file
......@@ -35,8 +35,6 @@ function Navbar()
</a>
</div>
</div>
<div id="list-post">
</div>
EOT;
return $html;
......
......@@ -23,7 +23,7 @@ body{
.layout {
display: grid;
grid-template-columns: 275px auto 150px;
grid-template-columns: 275px auto auto;
/* margin: auto; */
/* 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