Skip to content
Snippets Groups Projects
Commit f17f0bd7 authored by Habibi's avatar Habibi
Browse files

Finish browse and search result prototype

parent 0f62a133
1 merge request!1Habibi book
<?php <?php
include __STATIC__.'/html/header.html'; include __STATIC__.'/html/header.html';
include __STATIC__.'/html/browse.html';
// Include content here; // Include content here;
include __STATIC__.'/html/footer.html'; include __STATIC__.'/html/footer.html';
// echo $_COOKIE["user"]; // echo $_COOKIE["user"];
......
<?php
include __STATIC__.'/html/header.html';
include __STATIC__.'/html/search_result.html';
// Include content here;
include __STATIC__.'/html/footer.html';
// echo $_COOKIE["user"];
?>
\ No newline at end of file
<?php <?php
$APP_CONFIG = array( return array(
"db" => array( "db" => array(
"host" => "localhost", "host" => "localhost",
"user" => "root", "user" => "root",
......
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
// TODO: Add Book Routes // TODO: Add Book Routes
$router = addUserRoutes($router, $userUsecase); $router = addUserRoutes($router, $userUsecase);
$router->add("/browse/", "GET", 'render', $authMiddleware, 'browse.php'); $router->add("/browse/", "GET", 'render', null, 'browse.php');
$router->add("/results/", "GET", "render", null, "result.php");
$router->add("/login/", "GET", 'render', null, 'login.php'); $router->add("/login/", "GET", 'render', null, 'login.php');
$router->add("/register/", "GET", 'render', null, 'register.php'); $router->add("/register/", "GET", 'render', null, 'register.php');
$router->add("/history/", "GET", 'render', $authMiddleware, 'history.php'); $router->add("/history/", "GET", 'render', $authMiddleware, 'history.php');
......
...@@ -5,9 +5,12 @@ body { ...@@ -5,9 +5,12 @@ body {
} }
.title { .title {
font-size: 80px; font-size: 55px;
color: #f26600; color: #f26600;
}
.title h1 {
margin-top: 0px;
margin-bottom: 30px; margin-bottom: 30px;
} }
......
.search-book input { .search-book {
display: block; height: 40px;
height: 38px;
width: 100%; width: 100%;
border: 2px solid; border: 3px solid;
border-color: #898989; border-color: #898989;
border-radius: 5px; border-radius: 6px;
margin-bottom: 20px; margin-bottom: 30px;
padding-left: 10px; padding: 10px;
} }
.search-book button { .button-search-book {
width: 120px; width: 150px;
height: 35px; height: 40px;
background-color: #00aeef; background-color: #00aeef;
border-color: #00aeef; border-color: #00aeef;
border-radius: 5px;
} }
.search-book button span { .button-search-book span {
color: white; color: white;
font-size: 18px; font-size: 20px;
} }
\ No newline at end of file
...@@ -8,8 +8,14 @@ ...@@ -8,8 +8,14 @@
align-self: flex-end; align-self: flex-end;
} }
.search-result-title h2 { .search-result-title h1 {
font-size: 110px;
margin-bottom: 45px; margin-bottom: 45px;
margin-top: 10px;
}
.search-result-title h2 {
margin-bottom: 65px;
font-size: 30px; font-size: 30px;
color: #4c4c4c; color: #4c4c4c;
} }
......
<link rel="stylesheet" href="../css/browse.css"> <link rel="stylesheet" href="/static/css/base.css">
<link rel="stylesheet" href="../css/base.css"> <link rel="stylesheet" href="/static/css/browse.css">
<div class="content search-book"> <div class="content">
<h1 class="title">Search Book</h1> <div class="title">
<h1>
Search Book
</h1>
</div>
<form> <form>
<input <input
type="text" type="text"
name='search-book' class="search-book"
id='search-book' name="search-book"
placeholder="Input search terms..." placeholder="Input search terms..."
/> />
<div class="justify-content-end"> <div class="justify-content-end">
<button type='submit' id='search-book-button'><span>Search</span></button> <button type="Submit" class="button-search-book"><span>Search</span></button>
</div> </div>
</form> </form>
</div> </div>
\ No newline at end of file
<link rel="stylesheet" href="../css/base.css"> <link rel="stylesheet" href="/static/css/base.css">
<link rel="stylesheet" href="../css/search_result.css"> <link rel="stylesheet" href="/static/css/search_result.css">
<div class="content search-result"> <div class="content search-result">
<div class="search-result-title"> <div class="search-result-title">
<h1 class="title">Search Result</h1> <h1 class="title">Search Result</h1>
......
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