diff --git a/src/app/view/home.php b/src/app/view/home.php index b1652ecd0684af8b0dd77e642a9b509be17d2e97..e17783baf177978a08e924ca02b7778cde23d7f9 100644 --- a/src/app/view/home.php +++ b/src/app/view/home.php @@ -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> diff --git a/src/app/view/post.php b/src/app/view/post.php index 1e6cb6f96165db7a982de624fad42e20a3999d7e..82205f23af8e722f6f8830dc06e8b8071a4c2153 100644 --- a/src/app/view/post.php +++ b/src/app/view/post.php @@ -1,3 +1,7 @@ +<?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 diff --git a/src/app/view/templates/navbar.php b/src/app/view/templates/navbar.php index ce9173c0870062ebd19581957dc15fb4da46729a..e036bd49176447127c21492d5bd91e982c5a95b5 100644 --- a/src/app/view/templates/navbar.php +++ b/src/app/view/templates/navbar.php @@ -35,8 +35,6 @@ function Navbar() </a> </div> </div> - <div id="list-post"> - </div> EOT; return $html; diff --git a/src/public/css/shared.css b/src/public/css/shared.css index 00d611affaaa6c2cc967751c3553c7d5a9f7ccd5..2596d2e99efa53fa1d1c36b60ce76f0cbdf449cf 100644 --- a/src/public/css/shared.css +++ b/src/public/css/shared.css @@ -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; */ }