Skip to content

Commit

Permalink
fix: tailwind misses generating styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
jxlpzqc committed Mar 6, 2024
1 parent ad38e15 commit 9906f74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pages/src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function Card({ href, frontmatter, secHeading = true, body }: Pro
function Status({ status }: { status: string }) {
const getStyle = (status: string) => {
var s = STATUS_LIST.find(s => s.status === status);
if (s) return "bg-" + s.color;
if (s) return s.color;
else return "bg-gray-200";
}

Expand Down
12 changes: 6 additions & 6 deletions pages/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export const STATUS_LIST: {
color?: string;
}[] = [
{ status: "all", text: "全部" },
{ status: "published", text: "已发布", hideInTab: true, color: "green-500" },
{ status: "proofread", text: "已校对", tabText: "待发布", color: "purple-500" },
{ status: "proofreading", text: "校对中", hideInTab: true, color: "blue-500" },
{ status: "collected", text: "已收集", tabText: "待翻译", color: "gray-500" },
{ status: "translated", text: "已翻译", tabText: "待校对", color: "orange-500" },
{ status: "translating", text: "翻译中", hideInTab: true, color: "yellow-300" },
{ status: "published", text: "已发布", hideInTab: true, color: "bg-green-500" },
{ status: "proofread", text: "已校对", tabText: "待发布", color: "bg-purple-500" },
{ status: "proofreading", text: "校对中", hideInTab: true, color: "bg-blue-500" },
{ status: "collected", text: "已收集", tabText: "待翻译", color: "bg-gray-500" },
{ status: "translated", text: "已翻译", tabText: "待校对", color: "bg-orange-500" },
{ status: "translating", text: "翻译中", hideInTab: true, color: "bg-yellow-300" },
];

export const SOCIALS: SocialObjects = [
Expand Down

0 comments on commit 9906f74

Please sign in to comment.