-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: business support page * feat: business support page * update page size * update * fix
- Loading branch information
Showing
15 changed files
with
369 additions
and
44 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import client from '../client'; | ||
|
||
export const sendPhoneCode = ({ phone }: { phone: string }) => | ||
client.post('/api/official/contact-us/sms-code', { | ||
phone, | ||
}); | ||
|
||
export const submitSupportForm = (data: { | ||
name: string; | ||
phone?: string; | ||
phone_code?: string; | ||
company: string; | ||
consult_detail: string; | ||
}) => client.post('/api/community-contact-us', data); |
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
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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import styled from 'styled-components'; | ||
import { colors } from '@tidb-community/ui'; | ||
|
||
export const SupportContainer = styled.div` | ||
margin-top: 24px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
max-width: 759px; | ||
background: #ffffff; | ||
border: 1px solid #ececec; | ||
border-radius: 12px; | ||
padding: 48px 76px; | ||
position: relative; | ||
`; | ||
|
||
export const SupportForm = styled('form')` | ||
margin-top: 24px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
max-width: 759px; | ||
background: #ffffff; | ||
border: 1px solid #ececec; | ||
border-radius: 12px; | ||
padding: 48px 76px; | ||
position: relative; | ||
`; | ||
|
||
export const SupportFormDescription = styled('p')` | ||
font-size: 16px; | ||
line-height: 22.4px; | ||
text-align: center; | ||
`; | ||
|
||
export const SupportFormRequiredLabel = styled('span')` | ||
&:before { | ||
display: inline-block; | ||
margin-right: 4px; | ||
color: ${colors.AntD.error}; | ||
font-size: 14px; | ||
font-family: 'SimSun,sans-serif'; | ||
line-height: 1; | ||
content: '*'; | ||
} | ||
`; |
Oops, something went wrong.