-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: update github campaign page entry
- Loading branch information
Showing
3 changed files
with
30 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 25 additions & 9 deletions
34
web/src/pages/home/_sections/0-summary/left/FooterLine.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
import Link from '@docusaurus/Link'; | ||
import { Button, styled } from '@mui/material'; | ||
import React from 'react'; | ||
import { aligns, Body } from '../../../_components/typography'; | ||
import { styled } from '@mui/material'; | ||
|
||
const Logo = styled('img')(({ theme }) => ({ | ||
verticalAlign: 'text-bottom', | ||
marginLeft: theme.spacing(1), | ||
})); | ||
|
||
const FooterLine = () => { | ||
return ( | ||
<Body sx={aligns.heading}> | ||
<a href="https://www.pingcap.com/tidb-serverless/?utm_source=ossinsight&utm_medium=referral" target="_blank" rel="noreferrer"> | ||
<Logo src='/img/tidb-cloud-logo-o.png' height={20} alt='TiDB' /> | ||
</a> | ||
<TidbLogo href="https://www.pingcap.com/tidb-serverless/?utm_source=ossinsight&utm_medium=referral" target="_blank" rel="noreferrer"> | ||
<img src="/img/tidb-logo.svg" height={40} alt="TiDB" /> | ||
TiDB | ||
</TidbLogo> | ||
<Button sx={{ color: 'black !important', verticalAlign: 'text-bottom', textTransform: 'none' }} variant="contained" component={Link} to="/open-source-heroes/?utm_source=ossinsight&utm_medium=referral&utm_campaign=plg_OSScontribution_credit_05"> | ||
Claim credits for open-source heroes! -> | ||
</Button> | ||
</Body> | ||
); | ||
}; | ||
|
||
const TidbLogo = styled('a')` | ||
height: 40px; | ||
display: inline-flex; | ||
align-items: center; | ||
gap: 8px; | ||
vertical-align: text-bottom; | ||
font-weight: 900; | ||
font-size: 20px; | ||
color: white !important; | ||
text-decoration: none !important; | ||
margin-right: 16px; | ||
`; | ||
|
||
export default FooterLine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters