mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-13 00:50:06 +08:00
Add locale to leaderboard and organize locale json
This commit is contained in:
@@ -6,7 +6,7 @@ import { AnimatedCircles } from "./AnimatedCircles";
|
||||
import { Container } from "./Container";
|
||||
|
||||
export function Hero() {
|
||||
const { t } = useTranslation("index");
|
||||
const { t } = useTranslation(["index", "common"]);
|
||||
const { colorMode } = useColorMode();
|
||||
const pTextColor = colorMode === "light" ? "text-gray-600" : "text-white";
|
||||
const fancyTextGradientClasses =
|
||||
@@ -17,7 +17,7 @@ export function Hero() {
|
||||
<Box className="lg:grid lg:grid-cols-12 lg:gap-x-8 lg:gap-y-20">
|
||||
<Box className="relative mx-auto max-w-2xl lg:col-span-7 lg:max-w-none lg:pt-6 xl:col-span-6">
|
||||
<Text as="h1" className="text-5xl mb-6 font-bold tracking-tight">
|
||||
{t("title")}
|
||||
{t("common:title")}
|
||||
</Text>
|
||||
<Text
|
||||
as="h2"
|
||||
|
||||
@@ -85,4 +85,4 @@ const LeaderboardGridCell = ({ timeFrame }: { timeFrame: LeaderboardTimeFrame })
|
||||
);
|
||||
};
|
||||
|
||||
export { LeaderboardGridCell };
|
||||
export { LeaderboardGridCell };
|
||||
Reference in New Issue
Block a user