-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ML challenge launch copy updates (#1318)
#1287 --------- Co-authored-by: Jeremy <jeremyasuncion808@gmail.com>
- Loading branch information
1 parent
58e36ea
commit 7ceff67
Showing
40 changed files
with
743 additions
and
215 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
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
31 changes: 25 additions & 6 deletions
31
frontend/packages/data-portal/app/components/MLChallenge/MLChallengeHeader.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,34 +1,53 @@ | ||
import { Button } from '@czi-sds/components' | ||
|
||
import { Link } from 'app/components/Link' | ||
import { useI18n } from 'app/hooks/useI18n' | ||
|
||
function ChallengeInfo({ title, content }: { title: string; content: string }) { | ||
return ( | ||
<div className="font-semibold"> | ||
<p className="text-sds-header-xxxs leading-sds-header-xxxs text-sds-color-primitive-gray-600"> | ||
<p className="text-sds-caps-xxxs leading-sds-caps-xxxs tracking-sds-caps-xxxs uppercase text-sds-color-primitive-gray-600"> | ||
{title} | ||
</p> | ||
<p className="text-sds-body-l leading-sds-body-l">{content}</p> | ||
<p className="text-sds-header-l leading-sds-header-l font-semibold"> | ||
{content} | ||
</p> | ||
</div> | ||
) | ||
} | ||
|
||
export function MLChallengeHeader() { | ||
const { t } = useI18n() | ||
|
||
const divider = ( | ||
<div className="hidden screen-716:block h-full w-px bg-sds-color-primitive-gray-400" /> | ||
) | ||
|
||
return ( | ||
<div className="bg-sds-color-primitive-blue-200 flex flex-col justify-center p-sds-xl screen-716:py-sds-xxl text-center"> | ||
<h1 className="text-sds-header-xxl leading-sds-header-xxl font-semibold"> | ||
{t('cryoetDataAnnotationMLComp')} | ||
</h1> | ||
|
||
<h2 className="text-sds-header-m leading-sds-header-m mt-sds-xs"> | ||
<h2 className="text-sds-header-m leading-sds-header-m mt-sds-xl screen-716:mt-sds-xs"> | ||
{t('developAMLModel')} | ||
</h2> | ||
|
||
<div className="flex items-center mt-sds-xl justify-center"> | ||
<ChallengeInfo title={t('starts')} content={t('fall2024')} /> | ||
<div className="h-full w-px bg-sds-color-primitive-gray-400 mx-sds-xl" /> | ||
<div className="flex flex-col screen-716:flex-row items-center my-sds-xl gap-sds-xl justify-center"> | ||
<ChallengeInfo | ||
title={t('started')} | ||
content={t('mlChallengeStartDate')} | ||
/> | ||
{divider} | ||
<ChallengeInfo title={t('ends')} content={t('mlChallengeEndDate')} /> | ||
{divider} | ||
<ChallengeInfo title={t('prizes')} content={t('prizeTotal')} /> | ||
</div> | ||
<Link to="https://www.kaggle.com/competitions/czii-cryo-et-object-identification/"> | ||
<Button sdsStyle="rounded" sdsType="primary"> | ||
{t('seeOnKaggle')} | ||
</Button> | ||
</Link> | ||
</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
Oops, something went wrong.