Skip to content

Commit

Permalink
update sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Oct 24, 2024
1 parent 6dafc25 commit a8b3207
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
6 changes: 5 additions & 1 deletion src/components/frontend/page/style/sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link } from "@/lib/i18n";
import { styleFonts, StyleKey } from "@/slugs";
import { ALargeSmallIcon, BoldIcon, CircleDot, FeatherIcon, ItalicIcon, Pencil, SquareDot, StarsIcon, UnderlineIcon } from "lucide-react";
import { ALargeSmallIcon, BoldIcon, CircleDot, FeatherIcon, ItalicIcon, Ligature, Pencil, SquareDot, StarsIcon, UnderlineIcon } from "lucide-react";
import { useTranslations } from "next-intl";
import { usePathname, useSearchParams } from "next/navigation";
import { ClassNameValue } from "tailwind-merge";
Expand Down Expand Up @@ -38,6 +38,8 @@ export const Sidebar =( )=>{
return t("frontend.slug.menu.bubble-text");
case "square-text":
return t("frontend.slug.menu.square-text");
case "alternating":
return t("frontend.slug.menu.alternating");
default:
return null;
}
Expand Down Expand Up @@ -65,6 +67,8 @@ export const Sidebar =( )=>{
return <SquareDot size={18} />;
case "cursive-font":
return <Pencil size={18} />;
case "alternating":
return <Ligature size={18} />;
default:
return null;
}
Expand Down
20 changes: 10 additions & 10 deletions src/slugs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ export const styleFonts: Record<StyleKey, FontKey[]> = {
"square-text": [
"squared", "squaredNegative"
],
"alternating": [
"alternatingSerifBold",
"alternatingSansBold",
"alternatingCircled",
"alternatingSquared",
"alternatingBoldScript",
"alternatingBoldFraktur",
"alternatingSansBoldItalic",
"alternatingSerifBoldItalic"
],
"sans-serif": [
"sansSerif",
"sansBold",
Expand All @@ -92,16 +102,6 @@ export const styleFonts: Record<StyleKey, FontKey[]> = {
"serifBold",
"serifItalic",
"serifBoldItalic"
],
"alternating": [
"alternatingSerifBold",
"alternatingSansBold",
"alternatingCircled",
"alternatingSquared",
"alternatingBoldScript",
"alternatingBoldFraktur",
"alternatingSansBoldItalic",
"alternatingSerifBoldItalic"
]
};

Expand Down

0 comments on commit a8b3207

Please sign in to comment.