diff --git a/website/src/components/gallery/ShowcaseCard/index.tsx b/website/src/components/gallery/ShowcaseCard/index.tsx index c08c5d9b..cd205859 100644 --- a/website/src/components/gallery/ShowcaseCard/index.tsx +++ b/website/src/components/gallery/ShowcaseCard/index.tsx @@ -22,6 +22,10 @@ import { CardPreview, Link as FluentUILink, ToggleButton, + Input, + Popover, + PopoverTrigger, + PopoverSurface, } from "@fluentui/react-components"; import { useBoolean } from "@fluentui/react-hooks"; import { @@ -50,9 +54,8 @@ const TagComp = React.forwardRef( style={{ alignContent: "center", borderColor: "#E0E0E0", - fontSize: "10px", color: "#616161", - margin: "2px", + fontSize: "10px", }} > {label} @@ -74,20 +77,24 @@ function ShowcaseCardTag({ TagList.indexOf(tagObject.tag) ); + const checkAzureTag = tagObjectsSorted.filter((tag) => + tag.label.includes("Azure") + ); + const length = tagObjectsSorted.length; - const rest = length - 8; + let number = 11; + if (checkAzureTag.length > 5) { + number = 9; + } + const rest = length - number; if (moreTag) { - if (length > 8) { + if (length > number) { return ( <> - {tagObjectsSorted.slice(0, 8).map((tagObject, index) => { + {tagObjectsSorted.slice(0, number).map((tagObject, index) => { const id = `showcase_card_tag_${tagObject.tag}`; - return ( -
- -
- ); + return ; })} + {rest} more @@ -110,11 +116,7 @@ function ShowcaseCardTag({ {tagObjectsSorted.map((tagObject, index) => { const id = `showcase_card_tag_${tagObject.tag}`; - return ( -
- -
- ); + return ; })} ); @@ -126,8 +128,23 @@ function ShowcaseCardTag({ const id = `showcase_card_tag_${tagObject.tag}`; return ( -
- +
+ {tagObject.label}
); })} @@ -208,7 +225,7 @@ const useStyles = makeStyles({ card: { ...shorthands.margin("auto"), width: "350px", - height: "368px", + height: "353px", maxWidth: "100%", maxHeight: "100%", minWidth: "300px", @@ -321,8 +338,9 @@ function ShowcaseCard({ user }: { user: User }) { key={user.title} className={styles.card} style={{ - background: "linear-gradient(#FAFAFA 0 0)bottom/100% 45px no-repeat", + background: "linear-gradient(#FAFAFA 0 0)bottom/100% 52px no-repeat", borderRadius: "8px", + padding: "16px", }} > - - - + /> + + + + + + +
Copied!
+
+
); @@ -509,7 +526,11 @@ export function ShowcaseContributionCard(): React.ReactElement { return null; } return ( - + closeCard("contributionCard")} size="small" @@ -533,7 +554,7 @@ export function ShowcaseContributionCard(): React.ReactElement {

-
+ -
+
); } @@ -681,9 +703,8 @@ function ShowcaseCardPanel({ user }: { user: User }) { style={{ display: "flex", overflow: "hidden", - columnGap: "5px", + gap: "4px", flexFlow: "wrap", - padding: "5px 0", }} > diff --git a/website/src/data/tags.tsx b/website/src/data/tags.tsx index 240758cc..496763df 100644 --- a/website/src/data/tags.tsx +++ b/website/src/data/tags.tsx @@ -397,7 +397,7 @@ export const Tags: { [type in TagType]: Tag } = { type: "Database", }, "azuredb-postgreSQL": { - label: "Azure Database for PostgreSQL", + label: "Azure PostgreSQL", description: "Template architecture uses Azure Database for PostgreSQL", azureIcon: "./img/Azure-Application-Insights.svg", //TODO url: "https://azure.microsoft.com/products/postgresql",