Skip to content

Commit

Permalink
Merge branch 'feat/screen_update_with_typing_in_search_bar' of https:…
Browse files Browse the repository at this point in the history
…//github.com/anwesha2002/Devlabs into fix/Attached_proper_Netlify_devtol_link

# Conflicts:
#	.idea/modules.xml
  • Loading branch information
anwesha authored and anwesha committed May 18, 2024
2 parents 80c5c65 + 888fdad commit 3bec31c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 16 deletions.
12 changes: 12 additions & 0 deletions .idea/Devlabs.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 15 additions & 8 deletions frontend/src/Component/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,25 @@ useEffect(()=>{
}

// In case `searchQuery` string is available, filter the data, if not then show all data
// const filteredData = !!props.searchQuery
// ? allvalue.filter((datalist) => {
// return (
// datalist.productName
// .toLowerCase()
// .includes(props.searchQuery.toLowerCase())
// );
// })
// : allvalue;

const filteredData = !!props.searchQuery
? allvalue.filter((datalist) => {
? allvalue.filter((datalist) => {
return (
datalist.productName
.toLowerCase()
.includes(props.searchQuery.toLowerCase()) ||
datalist.description
.toLowerCase()
.includes(props.searchQuery.toLowerCase())
datalist.productName
.toLowerCase()
.includes(props.searchQuery.toLowerCase())
);
})
: allvalue;
: allvalue;

const currentPost =
filteredData.length > 16
Expand Down
10 changes: 3 additions & 7 deletions frontend/src/style/About.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
max-width: 600px;
height: fit-content;
animation:fade-in;
animation-timeline: view();


}

Expand All @@ -42,7 +40,7 @@
width: 80%;
max-height: 500px;
animation:fade-in;
animation-timeline: view();


}

Expand Down Expand Up @@ -115,7 +113,7 @@

@media screen and (max-width: 375px) {
.repo-btn{
font: 16px;
font-size: 16px;
}
}

Expand All @@ -127,7 +125,6 @@
max-width: 20vw;
transition: 0.5s;
animation:fade-in;
animation-timeline: view();

}

Expand Down Expand Up @@ -259,6 +256,5 @@

}
}
box-shadow: 0 0 7px #8b5cf6;
}


2 changes: 2 additions & 0 deletions frontend/src/style/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

.ft-2 {
margin-top: 3.4375rem;
}

/* Footer */
footer {
Expand Down Expand Up @@ -125,6 +126,7 @@ footer {
background: #A3094E;
color: #fff;
cursor: pointer;
}

.card-link:hover {
color: whitesmoke;
Expand Down

0 comments on commit 3bec31c

Please sign in to comment.