-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: laixingyou <[email protected]>
- Loading branch information
1 parent
22f8410
commit 4f3c2b2
Showing
17 changed files
with
235 additions
and
67 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,55 @@ | ||
import React, { useState } from 'react'; | ||
import { useTranslation } from 'next-i18next'; | ||
import Dialog, { Transition } from '@common/components/Dialog'; | ||
import classnames from 'classnames'; | ||
import { MdEmail } from 'react-icons/md'; | ||
|
||
const Coutact = () => { | ||
const { t } = useTranslation(); | ||
const [open, setOpen] = useState(false); | ||
|
||
return ( | ||
<> | ||
<Dialog | ||
TransitionComponent={Transition} | ||
open={open} | ||
classes={{ | ||
paper: classnames( | ||
'border-2 border-black w-[640px] !max-w-[640px] !rounded-none !m-0 md:w-full md:h-full md:!m-0 md:!min-h-full md:border-none' | ||
), | ||
}} | ||
dialogContent={ | ||
<> | ||
<div className="flex items-center justify-center text-base"> | ||
<MdEmail /> | ||
Email: | ||
<a | ||
className="ml-2 mb-0.5 text-[#002fa7]" | ||
href="mailto:[email protected]" | ||
> | ||
[email protected] | ||
</a> | ||
</div> | ||
</> | ||
} | ||
handleClose={() => { | ||
setOpen(false); | ||
}} | ||
/> | ||
<div | ||
className="h-10 cursor-pointer bg-gradient-to-r from-[#72D74F] to-[#27AE65] px-4 text-center text-sm leading-10 text-[#fff]" | ||
onClick={() => { | ||
setOpen(true); | ||
}} | ||
> | ||
<a | ||
// href="mailto:[email protected]" | ||
title="[email protected]" | ||
> | ||
{t('academe:submit_your_application_now')} | ||
</a> | ||
</div> | ||
</> | ||
); | ||
}; | ||
export default Coutact; |
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,6 +1,7 @@ | ||
import React, { useState } from 'react'; | ||
import { useTranslation } from 'next-i18next'; | ||
import classnames from 'classnames'; | ||
import Coutact from './Coutact'; | ||
|
||
const SubmitApplication = () => { | ||
const { t } = useTranslation(); | ||
|
@@ -19,16 +20,7 @@ const SubmitApplication = () => { | |
<div className="mb-8 flex justify-center bg-gradient-to-r from-[#49B821] to-[#27AEAB] bg-clip-text text-center text-2xl font-semibold text-transparent"> | ||
{t('academe:discuss_the_evolution')} | ||
</div> | ||
<div | ||
className="h-10 cursor-pointer bg-gradient-to-r from-[#72D74F] to-[#27AE65] px-4 text-center text-sm leading-10 text-[#fff]" | ||
onClick={() => { | ||
// router.push('/lab/model/create'); | ||
}} | ||
> | ||
<a href="mailto:[email protected]"> | ||
{t('academe:submit_your_application_now')} | ||
</a> | ||
</div> | ||
<Coutact /> | ||
</div> | ||
</> | ||
); | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ import React from 'react'; | |
import { useRouter } from 'next/router'; | ||
import classnames from 'classnames'; | ||
import { useTranslation } from 'next-i18next'; | ||
|
||
import Coutact from '../../Coutact'; | ||
import style from './index.module.css'; | ||
|
||
const Banner = () => { | ||
|
@@ -38,11 +38,7 @@ const Banner = () => { | |
{t('academe:academic_research_desc')} | ||
</div> | ||
<div className="flex"> | ||
<div className="h-8 cursor-pointer bg-gradient-to-r from-[#72D74F] to-[#27AE65] px-4 text-center leading-8 text-[#fff]"> | ||
<a href="mailto:[email protected]"> | ||
{t('academe:submit_your_application_now')} | ||
</a> | ||
</div> | ||
<Coutact /> | ||
</div> | ||
</div> | ||
</div> | ||
|
Oops, something went wrong.
4f3c2b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
compass-web – ./
compass-web-preview.vercel.app
compass-web-compass-team.vercel.app
compass-web-git-main-compass-team.vercel.app
4f3c2b2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
storybook – ./
storybook-git-main-compass-team.vercel.app
storybook-compass-team.vercel.app
compass-web-2l68.vercel.app