mirror of
				https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
				synced 2025-10-30 19:46:49 +00:00 
			
		
		
		
	fix homepage structal issues,
TODO: clean css Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
		| @@ -15,38 +15,40 @@ | ||||
| 	<!-- <link rel="stylesheet" href="/static/reset.css" /> --> | ||||
| 	<link rel="stylesheet" href="./static/homepage.css" /> | ||||
| 	<script src="assets/scripts/main.js" type="module"></script> | ||||
|  | ||||
| </head> | ||||
| <body> | ||||
|   <div class ="Top-Bar"> | ||||
|     <img src ="./assets/images/icons/Logo.png" alt="logo" /> | ||||
|     <h1 style="font-family:'Lucida Sans'"> Food Journal </h1> | ||||
|     <form id="form"> | ||||
|         <input type='search' id="seaching" name="searchBar" placeholder="Search journal..."> | ||||
|         <button class="click" type="search"> | ||||
|             Search | ||||
|         </button> | ||||
|     </form> | ||||
| <main> | ||||
| 	<header> | ||||
| 		<div class="Top-Bar" style="display: flex; justify-content: center;"> | ||||
| 			<img src ="./assets/images/icons/Logo.png" style="align-self: center;" alt="logo" /> | ||||
| 			<h1 style="font-family:'Lucida Sans';"> Food Journal </h1> | ||||
| 			<img src ="./assets/images/icons/Logo.png" style="align-self: center;" alt="logo" /> | ||||
| 		</div> | ||||
|     <!-- | ||||
|     <form id="form"> | ||||
|         <input type='search' id="seaching" name="searchBar" placeholder="Search journal..."> | ||||
|         <button class="click" type="search"> | ||||
|             Search | ||||
|         </button> | ||||
|     </form> | ||||
|     ---> | ||||
|   <main> | ||||
|     <!-- Add Food Entries Here --> | ||||
|     <div class="Review-boxes"> | ||||
|       <h2> Recent Reviews </h2> | ||||
|       <img src ="./assets/images/icons/Grouppink.png" alt="CREATE" id="create-btn" onclick="window.location.assign('./CreatePage.html')"></img> | ||||
| 	</header> | ||||
|   	<body> | ||||
| 		 | ||||
| 		<div style="display: flex; max-height: 100%;"> | ||||
| 			<div style="width: 20%;"></div> | ||||
|  | ||||
| 			<div style="width: 60%;"> | ||||
| 				<div style="display: flex; flex-direction: row; justify-content: center;">		 | ||||
| 					<img src ="./assets/images/icons/Grouppink.png" alt="CREATE" style="align-self: center;" id="create-btn" onclick="window.location.assign('./CreatePage.html')"></img> | ||||
| 					<h2 id="recent-reviews-text"> Recent Reviews </h2> | ||||
| 					<img src ="./assets/images/icons/Grouppink.png" alt="" style="align-self: center; opacity:0;"></img> | ||||
| 				</div> | ||||
|       <div class="Filter-box"> | ||||
|     </div> | ||||
|  | ||||
| 				<div class="review-container" id="review-container"></div> | ||||
|   </main> | ||||
|   <!--<button type="button" id="create-btn"><a href='./CreatePage.html'></a>CREATE</button>--> | ||||
| </body> | ||||
| 			</div> | ||||
|  | ||||
| 			<div style="width: 20%;"> | ||||
| 				<form id="form" style="display: none;"> | ||||
| 					<input type='search' id="seaching" name="searchBar" placeholder="Search journal..."> | ||||
| 					<button class="click" type="search"> | ||||
| 						Search | ||||
| 					</button> | ||||
| 					<div class="Filter-box"></div> | ||||
| 				</form> | ||||
| 			</div> | ||||
| 		</div> | ||||
|   	</body> | ||||
| </main> | ||||
| </html> | ||||
|   | ||||
| @@ -6,65 +6,48 @@ body{ | ||||
| .Top-Bar{ | ||||
| } | ||||
| .Top-Bar > img{ | ||||
|     position: absolute; | ||||
|     position: relative; | ||||
| } | ||||
| .Top-Bar > h1{ | ||||
|     position: relative; | ||||
|     text-align: center; | ||||
|     font-size: 5rem; | ||||
|     color: #E4C3D2; | ||||
|     font-size: 100px; | ||||
|     font-family: 'Lucida Sans'; | ||||
|     padding: 25px 0px 0px 0px; | ||||
|     font-weight: 900; | ||||
|     margin: 0px | ||||
| } | ||||
| .Top-Bar > form{ | ||||
|     position: relative; | ||||
|     float: right; | ||||
|     margin-right: 12%; | ||||
| } | ||||
| .Review-boxes { | ||||
|     position: relative; | ||||
| } | ||||
|  | ||||
| .Review-boxes > h2 { | ||||
| #recent-reviews-text { | ||||
|     font-family: 'Lucida Sans'; | ||||
|     display: block; | ||||
|     text-align: center; | ||||
|     font-size: 2.7rem; | ||||
|     font-size: 80px; | ||||
|     color: #E4C3D2; | ||||
|     margin-top: 2.5em; | ||||
| } | ||||
| .Review-boxes > input { | ||||
|     position: relative; | ||||
|     left: 20.34cm; | ||||
|     top: -3.5cm; | ||||
| } | ||||
|  | ||||
| img#create-btn { | ||||
|     position: absolute; | ||||
|     left: 12%; | ||||
|     position: relative; | ||||
| } | ||||
|  | ||||
| .Filter-box{ | ||||
|     width: 200px; | ||||
|     height: 400px; | ||||
|     background: #e4d9e9; | ||||
|     position: absolute; | ||||
|     border: 5px solid #99a2c2; | ||||
|     right: 12%; | ||||
| } | ||||
| .review-container{ | ||||
|     display: flex; | ||||
|     position: relative; | ||||
|     margin-left: 25%; | ||||
|     flex-wrap: wrap; | ||||
| } | ||||
| .review-container > div { | ||||
|     background-color: #f1f1f1; | ||||
|     width: 200px; | ||||
|     height: 200px; | ||||
|     margin: 10px; | ||||
|     text-align: center; | ||||
|     line-height: 75px; | ||||
|     font-size: 30px; | ||||
|   } | ||||
		Reference in New Issue
	
	Block a user