Skip to content

Commit

Permalink
perf(website): optimize transition effect and update Chinese translation
Browse files Browse the repository at this point in the history
- Update transition effect on runtime-types component for smoother animation
- Refine Chinese translation on home page for better readability
  • Loading branch information
xcfox committed Feb 18, 2025
1 parent 165846a commit cb61d57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/app/[lang]/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function Hero({ lang, className }: LangProps) {
</h1>
{lang === "zh" ? (
<div className="text-lg sm:mt-4">
{<RuntimeTypes />}编织成 GraphQL Schema
编织{<RuntimeTypes />} GraphQL Schema
</div>
) : (
<div className="text-lg sm:mt-4">
Expand Down
2 changes: 1 addition & 1 deletion website/components/runtime-types/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const RuntimeTypes = memo(() => {
className="relative inline-block h-[1.5em] mx-[0.1em]"
style={{
width: widths[currentItem],
transition: "width 233ms ease-in-out",
transition: "width 233ms ease-out",
}}
>
{items.map((Item, i) => (
Expand Down

0 comments on commit cb61d57

Please sign in to comment.