Skip to content

Commit

Permalink
add not found message
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Jul 1, 2024
1 parent 1b061b1 commit 9ae1add
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ code {
width: calc(100% - 2rem);
}

.not-found {
display: flex;
flex-direction: column-reverse;
justify-content: center;
align-items: center;
}

@keyframes logo-spin {
from {
transform: rotate(0deg);
Expand Down
19 changes: 19 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,25 @@ function App() {
placeholder="Search logo name..."
/>
<ReactTechsLogos list={filteredArray} />
{!filteredArray.length && (
<div className="not-found">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
width={100}
height={100}
viewBox="-20 0 190 190"
>
<path
fill="var(--vtl-background-svg"
fill-rule="evenodd"
d="m38.155 140.475 10.833-78.364 43.881 4.946 18.568 23.955-8.041 57.109-65.241-7.646Zm45.858-46.473 4.814-22.195-34.781-3.5-9.854 67.15 54.143 6.627 6.542-45.275-20.864-2.807Zm-24.242 29.593c-.377-.496-3.721-3.296-4.35-4.162 8.899-9.911 30.629-9.788 36.664 3.324-1.005.371-5.495 2.315-6.375 2.81-2.518-7.317-17.265-9.625-25.939-1.972Zm16.732-27.096-3.666 2.76-5.515-6.642-7.507 4.03-3.029-5.07 6.829-3.426-4.526-5.452 5.5-3.68 4.39 6.439 7.819-3.925 2.356 4.73-7.047 3.784 4.396 6.452Z"
clip-rule="evenodd"
/>
</svg>
<p>No logos found matching your search.</p>
</div>
)}
</div>
<Footer />
</div>
Expand Down

0 comments on commit 9ae1add

Please sign in to comment.