-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cart): Add cart button component (#95)
- Loading branch information
1 parent
68dd27e
commit a43a14c
Showing
5 changed files
with
65 additions
and
54 deletions.
There are no files selected for viewing
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,43 @@ | ||
import Link from "next/link" | ||
import { Icon } from "@chakra-ui/react"; | ||
import routes from "../../../../apps/web/features/merch/constants/routes"; | ||
|
||
const CartButton = () => { | ||
return( | ||
<Icon viewBox="0 0 24 24" boxSize={7}> | ||
<path fill="none" stroke-width="1.5" stroke="white" | ||
d="M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z" /> | ||
</Icon> | ||
) | ||
} | ||
|
||
/* | ||
const CartButton = () => { | ||
return( | ||
<Link href={routes.CART} | ||
style={{ | ||
textDecoration: "none", | ||
background: "black", | ||
width: "2.8em", | ||
height: "2.8em", | ||
padding: 0, | ||
borderRadius: "50%", | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center" | ||
}}> | ||
<Icon p="0.3em" | ||
bg="brand.red.medium" | ||
borderRadius="50%" _hover={{ | ||
background: "brand.red.dark" | ||
}} | ||
viewBox="0 0 24 24" boxSize={10}> | ||
<path fill="none" stroke-width="1.5" stroke="white" | ||
d="M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z" /> | ||
</Icon> | ||
</Link> | ||
) | ||
} | ||
*/ | ||
|
||
export default CartButton; |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
export * from "./Card" | ||
export * from "./CartHeader" | ||
export * from "./EmptyProductView" | ||
export * from "./MerchCarousel" | ||
export * from "./Page" | ||
export * from "./SizeChartDialog" | ||
export * from "./SizeOption" | ||
export * from "./skeleton" | ||
export * from "./skeleton" |
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