diff --git a/.changeset/slimy-trainers-joke.md b/.changeset/slimy-trainers-joke.md new file mode 100644 index 000000000..9679c676e --- /dev/null +++ b/.changeset/slimy-trainers-joke.md @@ -0,0 +1,5 @@ +--- +"@theguild/components": patch +--- + +Tweak ProductCard styles on mobile diff --git a/packages/components/src/components/index.ts b/packages/components/src/components/index.ts index baeae6b47..4c6a43fff 100644 --- a/packages/components/src/components/index.ts +++ b/packages/components/src/components/index.ts @@ -29,5 +29,6 @@ export * from './explore-main-product-cards'; export * from './text-link'; export * from './contact-us'; export { Giscus } from './giscus'; +export * from './product-card'; export * from './version-dropdown'; export * from './dropdown'; diff --git a/packages/components/src/components/product-card/index.tsx b/packages/components/src/components/product-card/index.tsx index aac3ed6cc..96d06c819 100644 --- a/packages/components/src/components/product-card/index.tsx +++ b/packages/components/src/components/product-card/index.tsx @@ -1,7 +1,7 @@ import { useId } from 'react'; import { cn } from '../../cn'; import { FOUR_MAIN_PRODUCTS, ProductInfo, PRODUCTS } from '../../products'; -import { HighlightDecoration } from '../decorations'; +import { DecorationIsolation, HighlightDecoration } from '../decorations'; import { ArrowIcon } from '../icons'; import { ReactComponent as HiveDecoration } from './hive-decoration.svg'; import { ReactComponent as HiveGatewayDecoration } from './hive-gateway-decoration.svg'; @@ -25,7 +25,7 @@ export function MainProductCard({ as: Root, product, className, ...rest }: Produ return ( {product.name}

- - - - - - {isHive ? ( - <> - - - - ) : ( - <> - - - + + - - - + fill={`url(#${id})`} + /> + + + + {isHive ? ( + <> + + + + ) : ( + <> + + + + )} + + + + + +
); } diff --git a/packages/components/src/components/product-card/product-card.stories.tsx b/packages/components/src/components/product-card/product-card.stories.tsx index 5fba57c0e..ce3470cb3 100644 --- a/packages/components/src/components/product-card/product-card.stories.tsx +++ b/packages/components/src/components/product-card/product-card.stories.tsx @@ -21,7 +21,7 @@ export const Default: StoryObj = { name: 'ProductCard', render() { return ( -