From 77c9eb4a32fad0009bd5f3cf8e9ea5c3e9355cb8 Mon Sep 17 00:00:00 2001 From: hemarina Date: Wed, 20 Sep 2023 17:02:57 -0700 Subject: [PATCH] update change due to discussion --- .../components/gallery/ShowcaseCard/index.tsx | 89 +++++++++---------- 1 file changed, 43 insertions(+), 46 deletions(-) diff --git a/website/src/components/gallery/ShowcaseCard/index.tsx b/website/src/components/gallery/ShowcaseCard/index.tsx index aacebbca..c6cef3be 100644 --- a/website/src/components/gallery/ShowcaseCard/index.tsx +++ b/website/src/components/gallery/ShowcaseCard/index.tsx @@ -6,7 +6,7 @@ */ import React from "react"; -import styles from "./styles.module.css"; +import inputStyle from "./styles.module.css"; import { Tag, Tags, type User, type TagType } from "../../../data/tags"; import { TagList } from "../../../data/users"; import { sortBy } from "@site/src/utils/jsUtils"; @@ -20,6 +20,7 @@ import { Button, Badge, CardPreview, + Popup, Link as FluentUILink, ToggleButton, Input, @@ -38,10 +39,9 @@ import { Panel, PanelType, IPanelProps, - FontWeights, - Popup, Separator, IPivotStyles, + IInputProps, } from "@fluentui/react"; import { title } from "process"; @@ -81,9 +81,9 @@ function ShowcaseCardTag({ ); const length = tagObjectsSorted.length; - let number = 9; + let number = 10; if (checkAzureTag.length > 5) { - number = 9; + number = 7; } const rest = length - number; @@ -158,11 +158,11 @@ function ShowcaseMultipleWebsites( length: number, i: number ) { - const styles = useStyles(); + const customStyles = useStyles(); if (i != length - 1) { return ( @@ -172,7 +172,7 @@ function ShowcaseMultipleWebsites( } else { return ( @@ -185,7 +185,7 @@ function ShowcaseMultipleWebsites( function ShowcaseMultipleAuthors({ user }: { user: User }) { const authors = user.author; const websites = user.website; - const styles = useStyles(); + const customStyles = useStyles(); let i = 0; if (authors.includes(", ")) { @@ -214,7 +214,11 @@ function ShowcaseMultipleAuthors({ user }: { user: User }) { } return ( - + {authors} ); @@ -254,15 +258,10 @@ const useStyles = makeStyles({ fontSize: "10px", color: "#606060", }, - cardFooterAzdCommand: { - fontSize: "11px", - fontFamily: "consolas", - color: "#606060", - }, }); function ShowcaseCard({ user }: { user: User }) { - const styles = useStyles(); + const customStyles = useStyles(); const author = user.author; const source = user.source; const star = useBaseUrl("/img/sparkle.svg"); @@ -298,7 +297,7 @@ function ShowcaseCard({ user }: { user: User }) { style={{ margin: "5px 0px", fontWeight: "550" }} />
{headerText} @@ -309,7 +308,7 @@ function ShowcaseCard({ user }: { user: User }) { height={16} style={{ paddingLeft: "10px" }} /> -
+
NEW
-
+
POPULAR
@@ -335,9 +334,9 @@ function ShowcaseCard({ user }: { user: User }) { return (
{headerText}
Star
{user.title} @@ -417,13 +417,13 @@ function ShowcaseCard({ user }: { user: User }) { columnGap: "3px", }} > -
by
+
by