Skip to content

Commit

Permalink
Merge pull request #36 from illacloud/feat/solution-mdx
Browse files Browse the repository at this point in the history
feat: update translation
  • Loading branch information
Wangtaofeng authored Jan 3, 2024
2 parents 27d8445 + c794226 commit a00186b
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/ILLATheme/SolutionLayout/FirstScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const FirstScreen: FC<IFirstScreenProps> = ({
}}
>
<Translate id="website_4.solution.use_this_template">
Try demo now!
Try now
</Translate>
</LinkButton>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/Content/CardContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CLOUD_URL } from "@site/src/constants/url"
const CARD_CONTENT = {
title: translate({
id: "how_to_use.title.3_steps_to_customize",
message: "steps to customize your AI tools",
message: "steps to customize your business apps",
}),
desc: translate({
id: "how_to_use.description.build_tools_through",
Expand Down
16 changes: 12 additions & 4 deletions src/components/home/Index/Mobile/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,26 @@
@apply flex flex-col items-center gap-[8px];
}

.colorDescLeftStyle {
@apply font-[700];
.colorDescAgentStyle {
@apply font-[600];
background: linear-gradient(90deg, #ff33ba 0.77%, #ffb7e7 100.77%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.colorDescRightStyle {
@apply font-[700];
.colorDescAppStyle {
@apply font-[600];
background: linear-gradient(90deg, #1effff 0%, #c9ffff 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.colorDescFlowStyle {
@apply font-[600];
background: linear-gradient(90deg, #8d33ff 0%, #d1adff 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
17 changes: 11 additions & 6 deletions src/components/home/Index/Mobile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const BannerMobile: FC<IBannerPCProps> = (props) => {
const description = translate({
id: "description",
message:
"Empower your team with {AIAgent} and advanced low-code tools to create {businessApp}",
"Build { businessApp } with low code, make automated { flow }, create { AIAgent } easily",
})

useEffect(() => {
Expand All @@ -35,20 +35,25 @@ const BannerMobile: FC<IBannerPCProps> = (props) => {
<span className={style.descStyle}>
<Interpolate
values={{
businessApp: (
<span className={style.colorDescLeftStyle}>
AIAgent: (
<span className={style.colorDescAgentStyle}>
<Translate id="website_4.description.ai_agent">
AI Agent
</Translate>
</span>
),
AIAgent: (
<span className={style.colorDescRightStyle}>
businessApp: (
<span className={style.colorDescAppStyle}>
<Translate id="website_4.description.business_app">
business app
website&app
</Translate>
</span>
),
flow: (
<span className={style.colorDescFlowStyle}>
<Translate id="website_4.description.flow">flow</Translate>
</span>
),
}}
>
{description}
Expand Down
12 changes: 10 additions & 2 deletions src/components/home/Index/PC/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,26 @@
@apply w-full flex items-center justify-center pt-[64px];
}

.colorDescLeftStyle {
.colorDescAgentStyle {
@apply font-[600];
background: linear-gradient(90deg, #ff33ba 0.77%, #ffb7e7 100.77%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.colorDescRightStyle {
.colorDescAppStyle {
@apply font-[600];
background: linear-gradient(90deg, #1effff 0%, #c9ffff 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.colorDescFlowStyle {
@apply font-[600];
background: linear-gradient(90deg, #8d33ff 0%, #d1adff 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
15 changes: 11 additions & 4 deletions src/components/home/Index/PC/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Interpolate from "@docusaurus/Interpolate"
const description = translate({
id: "description",
message:
"Empower your team with {AIAgent} and advanced low-code tools to create {businessApp}",
"Build { businessApp } with low code, make automated { flow }, create { AIAgent } easily",
})

const BannerPC: FC<IBannerPCProps> = (props) => {
Expand Down Expand Up @@ -48,16 +48,23 @@ const BannerPC: FC<IBannerPCProps> = (props) => {
<Interpolate
values={{
AIAgent: (
<span className={style.colorDescLeftStyle}>
<span className={style.colorDescAgentStyle}>
<Translate id="website_4.description.ai_agent">
AI Agent
</Translate>
</span>
),
businessApp: (
<span className={style.colorDescRightStyle}>
<span className={style.colorDescAppStyle}>
<Translate id="website_4.description.business_app">
business app
website&app
</Translate>
</span>
),
flow: (
<span className={style.colorDescFlowStyle}>
<Translate id="website_4.description.flow">
flow
</Translate>
</span>
),
Expand Down
20 changes: 9 additions & 11 deletions src/components/home/Index/components/Solutions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,14 @@ const Solutions: FC = () => {
>
{item.contentBg}
</div>
{item.content && (
<div
className={clsx(
style.solutionBaseImageStyle,
selectIndex === item.value && style.solutionSelectImageStyle,
)}
>
{item.content}
</div>
)}
<div
className={clsx(
style.solutionBaseImageStyle,
selectIndex === item.value && style.solutionSelectImageStyle,
)}
>
{item.content}
</div>

<div className={style.linkButtonStyle}>
<LinkButton
Expand All @@ -122,7 +120,7 @@ const Solutions: FC = () => {
}}
>
<Translate id="website_4.solution.use_this_template">
Try demo now
Try now
</Translate>
</LinkButton>
</div>
Expand Down

0 comments on commit a00186b

Please sign in to comment.