Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Sep 4, 2024
1 parent da800ae commit 1142b85
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
SENTRY_DSN: https://ea6017f8ee534468b308a2a6c949895a@o226447.ingest.sentry.io/6588620
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
GIFT_APP_API_BASE: ${{ secrets.GIFT_APP_API_BASE }}
OSSINSIGHT_PREVIEW: true
TIDBCLOUD_HOST: staging.tidbcloud.com
run: npm run build
Expand Down
26 changes: 20 additions & 6 deletions web/src/pages/github-campaign/_components/Section.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
import { styled } from '@mui/material';

export const Section = styled('section')<{ dark?: boolean }>`
background-color: ${({ dark }) => dark ? '#141414' : '#212122'};
padding: 120px 12px;
`;
export const SectionContent = styled('div')`
max-width: 1400px;
margin: 0 auto;
`;

export const SectionTitle = styled('h2')`
font-weight: 700;
font-size: 48px;
line-height: 58.09px;
text-align: center;
`;

export const Section = styled('section')<{ dark?: boolean }>`
background-color: ${({ dark }) => dark ? '#141414' : '#212122'};
padding: 120px 12px;
`;
export const SectionContent = styled('div')`
max-width: 1400px;
export const SectionDescription = styled('p')`
font-weight: 700;
font-size: 24px;
line-height: 38px;
color: #B1B1B1;
text-align: center;
max-width: 1200px;
margin: 0 auto;
strong {
color: #73D9B4;
}
`;
19 changes: 19 additions & 0 deletions web/src/pages/github-campaign/_sections/4-contributions.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Section, SectionContent, SectionDescription, SectionTitle } from '@site/src/pages/github-campaign/_components/Section';
import React from 'react';

export function ContributionsSection () {
return (
<Section>
<SectionContent>
<SectionTitle>
TiDB ❤️ Open Source
</SectionTitle>
<SectionDescription>
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>
</SectionContent>
</Section>
);
}
2 changes: 2 additions & 0 deletions web/src/pages/github-campaign/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { HeadingSection } from '@site/src/pages/github-campaign/_sections/0-head
import { HowItWorks } from '@site/src/pages/github-campaign/_sections/1-how-it-works';
import { IntroductionsSection } from '@site/src/pages/github-campaign/_sections/2-introduction';
import { ReviewsSection } from '@site/src/pages/github-campaign/_sections/3-reviews';
import { ContributionsSection } from '@site/src/pages/github-campaign/_sections/4-contributions';
import { FaqSection } from '@site/src/pages/github-campaign/_sections/5-faq';
import { LegalSection } from '@site/src/pages/github-campaign/_sections/6-legal';
import CustomPage from '@site/src/theme/CustomPage';
Expand All @@ -18,6 +19,7 @@ export default function Page () {
<HowItWorks />
<IntroductionsSection />
<ReviewsSection />
<ContributionsSection />
<FaqSection />
<LegalSection />
</CustomPage>
Expand Down

0 comments on commit 1142b85

Please sign in to comment.