-
Notifications
You must be signed in to change notification settings - Fork 815
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Refactor svgs to accept props. Add hero image in landing
- Loading branch information
1 parent
415d225
commit dd4be05
Showing
18 changed files
with
260 additions
and
163 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
pruebas/02-bazar-universal/fernandochaza/simple-shop/src/app/cart.svg
This file was deleted.
Oops, something went wrong.
13 changes: 7 additions & 6 deletions
13
pruebas/02-bazar-universal/fernandochaza/simple-shop/src/app/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
.../02-bazar-universal/fernandochaza/simple-shop/src/components/buttons/DisplaySearchBar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import SearchIcon from "@/icons/Search" | ||
import { type ComponentPropsWithoutRef } from "react" | ||
|
||
type ButtonProps = ComponentPropsWithoutRef<"button"> | ||
|
||
const DisplaySearchBar = ({ ...props }: ButtonProps) => { | ||
return ( | ||
<button {...props} aria-label="Display search bar"> | ||
<SearchIcon /> | ||
</button> | ||
) | ||
} | ||
|
||
export default DisplaySearchBar |
14 changes: 14 additions & 0 deletions
14
...bas/02-bazar-universal/fernandochaza/simple-shop/src/components/buttons/HideSearchBar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { type ComponentPropsWithoutRef } from "react" | ||
import DownChevron from "@/icons/DownChevron" | ||
|
||
type ButtonProps = ComponentPropsWithoutRef<"button"> | ||
|
||
const HideSearchBar = (props: ButtonProps) => { | ||
return ( | ||
<button {...props} aria-label="Hide search bar"> | ||
<DownChevron /> | ||
</button> | ||
) | ||
} | ||
|
||
export default HideSearchBar |
6 changes: 3 additions & 3 deletions
6
pruebas/02-bazar-universal/fernandochaza/simple-shop/src/components/header/Header.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
pruebas/02-bazar-universal/fernandochaza/simple-shop/src/icons/DownChevron.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { type SVGProps } from "react" | ||
|
||
const DownChevron = (props: SVGProps<SVGSVGElement>) => { | ||
return ( | ||
<svg fill="none" viewBox="0 0 24 24" {...props}> | ||
<path | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="1.6" | ||
d="m6 10 6 6 6-6" | ||
/> | ||
</svg> | ||
) | ||
} | ||
|
||
export default DownChevron |
21 changes: 0 additions & 21 deletions
21
pruebas/02-bazar-universal/fernandochaza/simple-shop/src/icons/DownChevronIcon.tsx
This file was deleted.
Oops, something went wrong.
4 changes: 3 additions & 1 deletion
4
pruebas/02-bazar-universal/fernandochaza/simple-shop/src/icons/NextChevron.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
pruebas/02-bazar-universal/fernandochaza/simple-shop/src/icons/PreviousChevron.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 0 additions & 73 deletions
73
pruebas/02-bazar-universal/fernandochaza/simple-shop/src/icons/ShoppingBag.tsx
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
pruebas/02-bazar-universal/fernandochaza/simple-shop/src/icons/ToggleSearchIcon.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.