Skip to content

Commit

Permalink
fix: tweak the style for the multi-language (#414)
Browse files Browse the repository at this point in the history
* style: fix style of the bot config

* style: fix the style of homepage
  • Loading branch information
xingwanying authored Sep 25, 2024
1 parent b53678f commit 8e7d7e0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions client/app/factory/edit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,18 +364,18 @@ export default function Edit() {
setActiveTab(`${key}` as ConfigTypeEnum)
}
classNames={{
base: 'w-[230px] h-[36px]',
tab: 'shadow-none w-[108px] h-[36px] px-0 py-0',
base: 'min-w-[230px] h-[36px]',
tab: 'shadow-none h-[36px] px-0 py-0',
tabContent:
'group-data-[selected=true]:bg-[#FAE4CB] rounded-full px-3 py-2 w-[108px] h-[36px]',
cursor: 'shadow-none rounded-full w-[108px]',
'group-data-[selected=true]:bg-[#FAE4CB] rounded-full px-3 py-2 h-[36px]',
cursor: 'shadow-none rounded-full ',
}}
>
<Tab
key={ConfigTypeEnum.CHAT_CONFIG}
title={
<div className="flex items-center space-x-2 text-[#000] group-data-[selected=true]:text-[#000]">
<ChatIcon />{' '}
<ChatIcon />
<span className="ml-2">
{I18N.edit.page.duiHuaTiaoShi}
</span>
Expand Down
20 changes: 10 additions & 10 deletions client/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export default function Homepage() {
</div>
<div className="section min-w-[900px] bg-black group">
<div className="h-screen border-box border-[20px] border-solid border-black bg-[#FEF4E1] rounded-[48px]">
<div className="relative h-full flex flex-col justify-center max-w-[1600px] mx-auto py-8 p-16 pt-10 xl:pt-[110px] opacity-0 transition-opacity group-[.active]:opacity-100">
<div className="relative h-full flex flex-col justify-center max-w-[1600px] mx-auto py-8 p-16 pt-10 2xl:pt-[110px] opacity-0 transition-opacity group-[.active]:opacity-100">
<Image
width={475}
height={95}
Expand All @@ -318,38 +318,38 @@ export default function Homepage() {
src="/images/create.svg"
alt="create"
/>
<h3 className="mt-6 mb-3 font-medium text-2xl xl:text-4xl text-black leading-[1.4]">
<h3 className="mt-6 mb-3 font-medium text-2xl 2xl:text-4xl text-black leading-[1.4]">
{I18N.app.page.duiHuaJiChuangZao}
</h3>
<p className="text-base xl:text-xl text-zinc-800">
<p className="text-base 2xl:text-xl text-zinc-800">
{I18N.app.page.jinXuYaoGaoZhi}
</p>
</td>
<td className="relative px-5 xl:px-10 py-5 xl:py-[51.5px] w-[calc(100%/3)] translate-y-8 opacity-0 transition-all group-[.fp-completely]:delay-500 group-[.fp-completely]:translate-y-0 group-[.fp-completely]:opacity-100">
<td className="relative px-5 2xl:px-10 py-5 2xl:py-[51.5px] w-[calc(100%/3)] translate-y-8 opacity-0 transition-all group-[.fp-completely]:delay-500 group-[.fp-completely]:translate-y-0 group-[.fp-completely]:opacity-100">
<Image
width={72}
height={73}
src="/images/knowledge.svg"
alt="knowledge"
/>
<h3 className="mt-6 mb-3 font-medium text-2xl xl:text-4xl text-black leading-[1.4]">
<h3 className="mt-6 mb-3 font-medium text-2xl 2xl:text-4xl text-black leading-[1.4]">
{I18N.app.page.zhiShiZiDongRu}
</h3>
<p className="text-base xl:text-xl text-zinc-800">
<p className="text-base 2xl:text-xl text-zinc-800">
{I18N.app.page.jiQiRenChuangJian}
</p>
</td>
<td className="relative px-5 xl:px-10 py-5 xl:py-[51.5px] w-[calc(100%/3)] translate-y-8 opacity-0 transition-all group-[.fp-completely]:delay-700 group-[.fp-completely]:translate-y-0 group-[.fp-completely]:opacity-100">
<td className="relative px-5 2xl:px-10 py-5 2xl:py-[51.5px] w-[calc(100%/3)] translate-y-8 opacity-0 transition-all group-[.fp-completely]:delay-700 group-[.fp-completely]:translate-y-0 group-[.fp-completely]:opacity-100">
<Image
width={72}
height={73}
src="/images/integrated.svg"
alt="integrated"
/>
<h3 className="mt-6 mb-3 font-medium text-2xl xl:text-4xl text-black leading-[1.4]">
<h3 className="mt-6 mb-3 font-medium text-2xl 2xl:text-4xl text-black leading-[1.4]">
{I18N.app.page.duoPingTaiJiCheng}
</h3>
<p className="text-base xl:text-xl text-zinc-800">
<p className="text-base 2xl:text-xl text-zinc-800">
{I18N.app.page.duoZhongJiChengFang}
</p>
</td>
Expand Down Expand Up @@ -600,7 +600,7 @@ export default function Homepage() {
</div>
</td>
<td
className="border border-r-0 border-[#7F7A71] px-10 py-[51.5px] xl:bg-[url('/images/footer-contribution.png')] bg-contain bg-no-repeat pl-20 xl:pl-[335px]"
className="border border-r-0 border-[#7F7A71] px-10 py-[51.5px] 2xl:bg-[url('/images/footer-contribution.png')] bg-contain bg-no-repeat pl-20 2xl:pl-[335px]"
rowSpan={2}
>
<img
Expand Down

0 comments on commit 8e7d7e0

Please sign in to comment.