-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a browsing mechanism similar to the original's Wikipedia one
- Loading branch information
Showing
4 changed files
with
111 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<link rel="stylesheet" href="css/style.css"> | ||
<link rel="icon" href="img/wikipedia_freepik.png" type="image/png"> | ||
<title>miniWikipedia - <%= title %> </title> | ||
</head> | ||
<body> | ||
<!-- NAVBAR --> | ||
<nav class="w-screen h-16 flex pt-2 pl-1 fixed top-0 z-10 bg-[#F9F9F9] grid grid-rows-2 grid-flow-col gap-4"> | ||
<!-- TOP-LEFT LOGO --> | ||
<p class="flex justify-start items-end row-start-2 row-span-2"> | ||
<a class="ml-2 hover:text-gray-500" href="/"> | ||
<img src="img/miniWikipedia_horizontal.svg" class="h-12 mb-2"> | ||
</a> | ||
</p> | ||
|
||
<!-- input bar --> | ||
<div class="inputBar w-full h-1/5 flex justify-center items-center mt-12 row-start-1 row-end-4"> | ||
<form action="/result" method="GET" class="w-full flex justify-end "> | ||
<input type="text" name="search" id="search" | ||
class="w-7/12 h-10 pl-5 text-left text-xl helvetica font-thin outline-0 border-b border-l border-black bg-[#F9F9F9]" | ||
placeholder="Search..." required autocomplete="off"> | ||
<div class="suggestions"> | ||
<ul></ul> | ||
</div> | ||
<button id="submit" class="w-12 h-24 hover:opacity-70"> | ||
<img src="img/search_catalinfertu.png" class="h-8 hover:opacity-70 mb-16 ml-2"> | ||
</button> | ||
</form> | ||
</div> | ||
</nav> | ||
|
||
|
||
<!-- Result --> | ||
<div class="mt-40 h-screen"> | ||
<p class="ml-24 georgia font-extrabold text-3xl"> <%= title %> </p> | ||
<p class="ml-24 helvetica font-thin text-s text-gray-400"><i> <%= description %> </i></p> | ||
<br> | ||
<!-- bulleted list of titles --> | ||
<!-- TODO: Make the lines below prettier --> | ||
<div class="ml-24 georgia font-thin text-xl text-gray-800 w-7/12"> • <u><a href="<%= links[1] %>"> <%= search_results[1].title %> </a></u> </div> | ||
<div class="ml-24 georgia font-thin text-xl text-gray-800 w-7/12"> • <u><a href="<%= links[2] %>"> <%= search_results[2].title %> </a></u> </div> | ||
<div class="ml-24 georgia font-thin text-xl text-gray-800 w-7/12"> • <u><a href="<%= links[3] %>"> <%= search_results[3].title %> </a></u> </div> | ||
<div class="ml-24 georgia font-thin text-xl text-gray-800 w-7/12"> • <u><a href="<%= links[4] %>"> <%= search_results[4].title %> </a></u> </div> | ||
<div class="ml-24 georgia font-thin text-xl text-gray-800 w-7/12"> • <u><a href="<%= links[5] %>"> <%= search_results[5].title %> </a></u> </div> | ||
<div class="ml-24 georgia font-thin text-xl text-gray-800 w-7/12"> • <u><a href="<%= links[6] %>"> <%= search_results[6].title %> </a></u> </div> | ||
<div class="ml-24 georgia font-thin text-xl text-gray-800 w-7/12"> • <u><a href="<%= links[7] %>"> <%= search_results[7].title %> </a></u> </div> | ||
<div class="ml-24 georgia font-thin text-xl text-gray-800 w-7/12"> • <u><a href="<%= links[8] %>"> <%= search_results[8].title %> </a></u> </div> | ||
<div class="ml-24 georgia font-thin text-xl text-gray-800 w-7/12"> • <u><a href="<%= links[9] %>"> <%= search_results[9].title %> </a></u> </div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters