Skip to content

Commit

Permalink
frontend: update github campaign page content
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Sep 12, 2024
1 parent 320a928 commit e27ba2f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion web/src/pages/open-source-heroes/_components/ClaimForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function Eligible ({ tenants, check, onClaim }: { tenants: Tenant[], check: Chec
function ShareButton () {
return (
<Button component="a" sx={{ position: [undefined, undefined, 'absolute'], left: [undefined, undefined, '100%'], whiteSpace: 'nowrap', color: 'white !important' }} target="_blank" href={twitterLink(location.href, {
title: 'Open Source Heroes, we ❤️ you! To show our appreciation, claim up to $1000 in FREE TiDB Serverless Credits to fuel your next big idea. Build with a powerful, scalable serverless database. \nStart today!',
title: 'Open Source Heroes, we ❤️ you! To show our appreciation, claim up to $2000 in FREE TiDB Serverless Credits to fuel your next big idea. Build with a powerful, scalable serverless database. \nStart today!',
hashtags: ['opensource', 'database', 'cloud', 'developer', 'tidbserverless'],
})}>
{'Share via '}
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/open-source-heroes/_sections/0-heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function PrimaryHeading ({ loading, onClickAction }: { loading: boolean, onClick
<HeadingDescription>
TiDB loves open-source. We contribute code, sponsor projects and deeply appreciate developers who actively contribute to the community.
<br />
As a token of our appreciation, we&#39;re offering up to $1000 in free TiDB Serverless credits to fuel open-source hero&#39;s next big idea.
As a token of our appreciation, we&#39;re offering up to $2000 in free TiDB Serverless credits to fuel open-source hero&#39;s next big idea.
</HeadingDescription>
</div>
</HeadingLeft>
Expand Down Expand Up @@ -83,7 +83,7 @@ function PrimaryHeading ({ loading, onClickAction }: { loading: boolean, onClick
<p>
TiDB loves open-source. We contribute code, sponsor projects, and appreciate developers who do so.
<br />
As a token of our appreciation, we&#39;re offering up to $1000 free TiDB Serverless credits to fuel open-source hero&#39;s next big idea.
As a token of our appreciation, we&#39;re offering up to $2000 free TiDB Serverless credits to fuel open-source hero&#39;s next big idea.
</p>
<p className="action-prompt">
Log in with GitHub account to claim your credits.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const tabs: Array<{ value: string, title: ReactNode, content: ReactNode }> = [
},
{
value: '$300',
title: '$300-1000',
title: '$300-2000',
content: <Content4 />,
},
];
Expand Down
13 changes: 8 additions & 5 deletions web/src/pages/open-source-heroes/_sections/4-contributions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function ContributionsSection () {
TiDB ❤️ Open Source
</SectionTitle>
<SectionDescription>
We take pride in our <strong><a href='https://github.com/pingcap/tidb' target='_blank' rel='noreferrer'>open-source</a></strong> roots.
We take pride in our <strong>open-source</strong> roots.
<br />
With the developer community, we align our product, to make sure it perfectly fits modern application developer&#39;s needs.
</SectionDescription>
Expand All @@ -53,6 +53,10 @@ export function ContributionsSection () {
))}
</Items>
</Content>

<SectionDescription sx={{ mt: 4 }}>
<a href="https://github.com/pingcap/ossinsight" target="_blank" rel='noreferrer'>Discover TiDB on GitHub -&gt;</a>
</SectionDescription>
</SectionContent>
</Section>
);
Expand All @@ -61,13 +65,12 @@ export function ContributionsSection () {
const Icon = styled('div')`
display: block;
margin-top: 120px;
${({ theme }) => ({
[theme.breakpoints.up('md')]: css`
display: none;
`,
})}
> svg {
display: block;
margin: auto;
Expand Down Expand Up @@ -123,7 +126,7 @@ const ItemTitle = styled('div')`
[theme.breakpoints.up('md')]: css`
font-size: 36px;
line-height: 48px;
`,
`,
})}
`;

Expand All @@ -138,7 +141,7 @@ const ItemDescription = styled('div')`
[theme.breakpoints.up('md')]: css`
font-size: 24px;
line-height: 36px;
`,
`,
})}
`;

Expand Down

0 comments on commit e27ba2f

Please sign in to comment.