diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-10-26 00:57:10 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-10-26 01:18:33 +0200 |
commit | 8e6d60a9492c97b78ba8a021b4e3360bd977fccf (patch) | |
tree | e6b7ad75358d51712ab0337e0922ffb9974d94c8 | |
parent | Frontend: Update index.html to include boostrap (diff) | |
download | OSSE-8e6d60a9492c97b78ba8a021b4e3360bd977fccf.tar.gz OSSE-8e6d60a9492c97b78ba8a021b4e3360bd977fccf.tar.bz2 OSSE-8e6d60a9492c97b78ba8a021b4e3360bd977fccf.zip |
Frontend: Add basic layout
-rw-r--r-- | frontend/index.html | 6 | ||||
-rw-r--r-- | frontend/src/main.rs | 38 |
2 files changed, 43 insertions, 1 deletions
diff --git a/frontend/index.html b/frontend/index.html index 27b8dc2..8d92606 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -7,6 +7,12 @@ <title>OSSE</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous"> + <style> + body, + html { + height: 100%; + } + </style> </head> <body> diff --git a/frontend/src/main.rs b/frontend/src/main.rs index 22b1599..860e028 100644 --- a/frontend/src/main.rs +++ b/frontend/src/main.rs @@ -3,10 +3,46 @@ use yew::prelude::*; #[function_component(App)] fn app() -> Html { html! { - <h1>{ "Hello World" }</h1> + <> + <nav class="navbar bg-light sticky-top"> + <div class="container-fluid"> + <div> + <a href="https://github.com/Baitinq/OSSE" class="navbar-brand mb-0 h1 mx-2">{"OSSE"}</a> + <span class="navbar-text mb-0">{"| Your favorite independent search engine."}</span> + </div> + <a href="https://github.com/Baitinq" class="navbar-text mb-0">{"Made by Baitinq"}</a> + </div> + </nav> + <div class="container d-flex h-100"> + <div class="row align-self-center w-100"> + <div class="col"> + <b class="display-4 text-truncate">{"OSSE"}</b> + <p>{"Your favorite independent search engine."}</p> + <form> + <div class="input-group input-group-lg my-2"> + <input type="text" class="form-control" placeholder="Search with OSSE" /> + <button class="btn btn-primary" type="button" >{"Search"}</button> + </div> + </form> + </div> + </div> + </div> + <nav class="navbar bg-light bottom"> + <div class="container-fluid"> + <div> + <a href="https://github.com/Baitinq/OSSE" class="navbar-brand mb-0 h1 mx-2">{"OSSE"}</a> + <span class="navbar-text mb-0">{"| Your favorite independent search engine."}</span> + </div> + <a href="https://github.com/Baitinq" class="navbar-text mb-0">{"Made by Baitinq"}</a> + </div> + </nav> + </> } } +//Your favorite search engine in navbar +//Search in middle + fn main() { yew::start_app::<App>(); } |