mirror of
				https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
				synced 2025-10-31 03:46:50 +00:00 
			
		
		
		
	cleanup css in homepage.css and index.html
This commit is contained in:
		| @@ -18,10 +18,10 @@ | |||||||
| </head> | </head> | ||||||
| <main> | <main> | ||||||
| 	<header> | 	<header> | ||||||
| 		<div class="Top-Bar" style="display: flex; justify-content: center;"> | 		<div class="top-bar"> | ||||||
| 			<img src ="./assets/images/icons/Logo.png" style="align-self: center; padding-left: 2.5%; padding-right: 2.5%;" alt="logo" /> | 			<img src ="./assets/images/icons/Logo.png" alt="logo" /> | ||||||
| 			<h1 style="font-family:'Lucida Sans';"> Food Journal </h1> | 			<h1> Food Journal </h1> | ||||||
| 			<img src ="./assets/images/icons/Logo.png" style="align-self: center; padding-left: 2.5%; padding-right: 2.5%;" alt="logo" /> | 			<img src ="./assets/images/icons/Logo.png" alt="logo" /> | ||||||
| 		</div> | 		</div> | ||||||
| 	</header> | 	</header> | ||||||
|   	<body> |   	<body> | ||||||
| @@ -30,21 +30,21 @@ | |||||||
| 			For mobile: + flex-direction: column-reverse;" | 			For mobile: + flex-direction: column-reverse;" | ||||||
| 						~ width: 100% for all divs | 						~ width: 100% for all divs | ||||||
| 		--> | 		--> | ||||||
| 		<div style="display: flex; max-height: 100%; "> | 		<div class="body-container"> | ||||||
| 			<div style="width: 20%;"></div> | 			<div style="width: 20%;"></div> | ||||||
|  |  | ||||||
| 			<div style="width: 60%;"> | 			<div style="width: 60%;"> | ||||||
| 				<div style="display: flex; flex-direction: row; justify-content: center; align-items: center;">		 | 				<div class="center-display">		 | ||||||
| 					<img src ="./assets/images/icons/Grouppink.png" alt="CREATE" style="align-self: center; opacity:100; padding-left: 2.5%; padding-right: 2.5%;" id="create-btn" onclick="window.location.assign('./CreatePage.html')"></img> | 					<img src ="./assets/images/icons/Grouppink.png" alt="CREATE" style="opacity: 100%;" id="create-btn" onclick="window.location.assign('./CreatePage.html')"></img> | ||||||
| 					<h2 id="recent-reviews-text"> Recent Reviews </h2> | 					<h2 id="recent-reviews-text"> Recent Reviews </h2> | ||||||
| 					<img src ="./assets/images/icons/Grouppink.png" alt="CREATE" style="align-self: center; opacity:0;"></img> | 					<img src ="./assets/images/icons/Grouppink.png" style="opacity:0;"></img> | ||||||
| 				</div> | 				</div> | ||||||
|  |  | ||||||
| 				<div class="review-container" id="review-container"></div> | 				<div class="review-container" id="review-container"></div> | ||||||
| 			</div> | 			</div> | ||||||
|  |  | ||||||
| 			<div style="width: 20%;"> | 			<div style="width: 20%;"> | ||||||
| 				<form id="form" style=""> | 				<form id="form"> | ||||||
| 					<input type='search' id="seaching" name="searchBar" placeholder="Search journal..."> | 					<input type='search' id="seaching" name="searchBar" placeholder="Search journal..."> | ||||||
| 					<button class="click" type="search"> | 					<button class="click" type="search"> | ||||||
| 						Search | 						Search | ||||||
|   | |||||||
| @@ -3,45 +3,51 @@ | |||||||
| body{ | body{ | ||||||
|     background-color: #97a5bd; |     background-color: #97a5bd; | ||||||
| } | } | ||||||
| .Top-Bar{ |  | ||||||
|  | .top-bar{ | ||||||
|  |     display: flex;  | ||||||
|  |     justify-content: center; | ||||||
| } | } | ||||||
| .Top-Bar > img{ | .top-bar > img{ | ||||||
|     position: relative; |     position: relative; | ||||||
|  |     align-self: center;  | ||||||
|  |     padding-left: 2.5%;  | ||||||
|  |     padding-right: 2.5%; | ||||||
| } | } | ||||||
| .Top-Bar > h1{ | .top-bar > h1{ | ||||||
|     position: relative; |     position: relative; | ||||||
|     text-align: center; |     text-align: center; | ||||||
|     color: #E4C3D2; |     color: #E4C3D2; | ||||||
|     font-size: 100px; |     font-size: 6rem; | ||||||
|     font-family: 'Lucida Sans'; |     font-family: 'Lucida Sans'; | ||||||
| } | } | ||||||
| .Top-Bar > form{ |  | ||||||
|     position: relative; | .body-container { | ||||||
|     float: right; |     display: flex;  | ||||||
|  |     max-height: 100%;  | ||||||
| } | } | ||||||
| .Review-boxes { |  | ||||||
|     position: relative; | .center-display { | ||||||
|  |     display: flex;  | ||||||
|  |     flex-direction: row;  | ||||||
|  |     justify-content: center;  | ||||||
|  |     align-items: center; | ||||||
| } | } | ||||||
|  |  | ||||||
| #recent-reviews-text { | #recent-reviews-text { | ||||||
|     font-family: 'Lucida Sans'; |     font-family: 'Lucida Sans'; | ||||||
|     text-align: center; |     text-align: center; | ||||||
|     font-size: 80px; |     font-size: 4rem; | ||||||
|     color: #E4C3D2; |     color: #E4C3D2; | ||||||
| } | } | ||||||
| .Review-boxes > input { |  | ||||||
|     position: relative; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| img#create-btn { | img#create-btn { | ||||||
|     position: relative; |     position: relative; | ||||||
|  |     align-self: center;  | ||||||
|  |     padding-left: 2.5%;  | ||||||
|  |     padding-right: 2.5%; | ||||||
| } | } | ||||||
|  |  | ||||||
| .Filter-box{ |  | ||||||
|     background: #e4d9e9; |  | ||||||
|     position: absolute; |  | ||||||
|     border: 5px solid #99a2c2; |  | ||||||
| } |  | ||||||
| .review-container{ | .review-container{ | ||||||
|     display: flex; |     display: flex; | ||||||
|     position: relative; |     position: relative; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user