-

-
-
{rs.name}
-
branches{rs.branches}
-
{rs.description}
-
+ } catch (error) {
+ console.log(error);
+ }
+ };
+ render() {
+ const { isChild, isParent, isLoaded } = this.state;
+ if (isParent && isLoaded) {
+ return (
+
- );
- }else if(isChild && isLoaded){
- return(
-
-
-
- )
- }
- else if(!isLoaded){
- return(
-
-
-
Your restaurant data will load here.
+
+
+
+ {this.state.restaurantData.map((rs) => (
+
+
+
+
+

+
+
+
+
+
+ ))}
+
-
-

+ );
+ } else if (isChild && isLoaded) {
+ return (
+
+
-
- )
- }
-
+ );
+ } else if (!isLoaded) {
+ return (
+
+
+
+ Your restaurant data will load here.
+
+
+
+

+
+
+ );
+ }
}
}
export default Rest;
diff --git a/MernApp/client/src/css/restaurantlistshow.css b/MernApp/client/src/css/restaurantlistshow.css
index 0b90a52..243c6e6 100644
--- a/MernApp/client/src/css/restaurantlistshow.css
+++ b/MernApp/client/src/css/restaurantlistshow.css
@@ -1,6 +1,88 @@
-.res-name-hover:hover{
-color:aqua
+.restaurant-list-holder {
+ overflow: hidden;
+}
+.single-restaurant-list {
+ background-color: #26272b;
+ width: 80vw;
+ overflow: hidden;
+ margin-left: auto;
+ margin-right: auto;
+}
+.single-restaurant-list:hover {
+ transform: scale(1.01);
+ /* opacity: 0.85; */
+}
+
+.restaurant-image-box {
+ position: relative;
+ background-color: white;
+ width: 100%;
+ height: auto;
+}
+.restaurant-list-img {
+ position: relative;
+ height: 150px;
+ width: 150px;
+ border: 0.001rem solid white;
+}
+.restaurant-list-para {
+ font-size: 15px;
+ font-family: Arial, Helvetica, sans-serif;
+}
+.restaurant-list-details div {
+ color: white;
+ font-size: 15px;
+}
+.name {
+ font-family: Arial, Helvetica, sans-serif;
+ font-weight: bold;
+ letter-spacing: 0.3vw;
+}
+.p2 h2 {
+ color: rgb(27, 184, 184);
+ text-decoration: none;
+}
+.single-restaurant-list:hover {
+ cursor: pointer;
+}
+
+button {
+ font-family: "Times New Roman", Times, serif;
+ letter-spacing: 3px;
+}
+
+.wrapper {
+ width: 100%;
+ max-width: 25.25rem;
+ margin: 1rem auto;
+}
+
+.searchBar {
+ width: 100%;
+ display: flex;
+ align-items: center;
+}
+
+#searchQueryInput {
+ width: 100%;
+ height: 2.8rem;
+ background: #f5f5f5;
+ outline: none;
+ border: none;
+ border-radius: 1.625rem;
+ padding: 0 3.5rem 0 1.5rem;
+ font-size: 1rem;
+}
+
+#searchQuerySubmit {
+ width: 3.5rem;
+ height: 2.8rem;
+ margin-left: -3.5rem;
+ background: none;
+ border: none;
+ outline: none;
+}
+
+#searchQuerySubmit:hover {
+ cursor: pointer;
}
-.res-name-hover{
- color:bisque;
-}
\ No newline at end of file