Skip to content

Commit

Permalink
feat(products/shop): add coming soon tips
Browse files Browse the repository at this point in the history
  • Loading branch information
runjuu committed Jun 5, 2023
1 parent 203c849 commit 16ba7ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentProps, PropsWithChildren } from "react";
import React, { ComponentProps, PropsWithChildren } from "react";
import { m, useTime, useTransform } from "framer-motion";
import { Text, Title, UnstyledButton } from "@mantine/core";
import BaseSection from "./BaseSection";
Expand All @@ -15,6 +15,7 @@ export default function ParallaxSection({
btnText,
btnHoverClassName,
link,
onClick,
image,
children,
}: PropsWithChildren<{
Expand All @@ -24,6 +25,7 @@ export default function ParallaxSection({
btnText: string;
btnHoverClassName?: string;
link: string;
onClick?: (event: React.MouseEvent) => void;
image: ComponentProps<typeof Image>["src"];
}>) {
// image animation
Expand Down Expand Up @@ -66,6 +68,7 @@ export default function ParallaxSection({
<UnstyledButton
component={Link}
href={link}
onClick={onClick}
target={link.startsWith("/") ? "_self" : "_blank"}
className={classNames(
"mt-50px relative flex flex-row items-center justify-center space-x-10px w-300px h-60px rounded-md bg-black transition-colors group",
Expand Down
6 changes: 6 additions & 0 deletions sites/crossbell.io/components/pages/products/lazy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { m, useMotionTemplate, useTime, useTransform } from "framer-motion";
import { useMediaQuery } from "@mantine/hooks";
import { showNotification } from "@mantine/notifications";

import { Image } from "~/shared/components/image";
import config from "~/shared/config";
Expand Down Expand Up @@ -97,6 +98,11 @@ export default function LazyIndex() {
btnText="Shop now"
btnHoverClassName="hover:bg-[#E65040]"
link="/shop"
onClick={(event) => {
event.stopPropagation();
event.preventDefault();
showNotification({ message: "Coming Soon", color: "blue" });
}}
image={shopImage}
/>

Expand Down

1 comment on commit 16ba7ab

@vercel
Copy link

@vercel vercel bot commented on 16ba7ab Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

crossbell-io – ./

crossbell-io-crossbell-old.vercel.app
crossbell.vercel.app
crossbell-io-git-main-crossbell-old.vercel.app

Please sign in to comment.