search implementation
This commit is contained in:
parent
7139910b7f
commit
9b1742880b
@ -56,19 +56,19 @@ const MiniChallenge = (props) => {
|
|||||||
</Body>
|
</Body>
|
||||||
<IconsGrid>
|
<IconsGrid>
|
||||||
<IconLabel size='24px' gap='8px' type={'metric'}>
|
<IconLabel size='24px' gap='8px' type={'metric'}>
|
||||||
Haversine
|
{props.metric}
|
||||||
</IconLabel>
|
</IconLabel>
|
||||||
<IconLabel size='24px' gap='8px' type={'bestScore'}>
|
<IconLabel size='24px' gap='8px' type={'bestScore'}>
|
||||||
79%
|
{props.bestScore}
|
||||||
</IconLabel>
|
</IconLabel>
|
||||||
<IconLabel size='24px' gap='8px' type={'timeLeft'}>
|
<IconLabel size='24px' gap='8px' type={'timeLeft'}>
|
||||||
6 days
|
{props.timeLeft}
|
||||||
</IconLabel>
|
</IconLabel>
|
||||||
<IconLabel size='24px' gap='8px' type={'baseline'}>
|
<IconLabel size='24px' gap='8px' type={'baseline'}>
|
||||||
55%
|
{props.baseline}
|
||||||
</IconLabel>
|
</IconLabel>
|
||||||
<IconLabel size='24px' gap='8px' type={'prize'}>
|
<IconLabel size='24px' gap='8px' type={'prize'}>
|
||||||
150000 PLN
|
{props.prize}
|
||||||
</IconLabel>
|
</IconLabel>
|
||||||
</IconsGrid>
|
</IconsGrid>
|
||||||
</ChallengeStyle>
|
</ChallengeStyle>
|
||||||
|
@ -31,11 +31,11 @@ const SearchStyle = styled(FlexRow)`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Search = () => {
|
const Search = (props) => {
|
||||||
return (
|
return (
|
||||||
<SearchStyle>
|
<SearchStyle>
|
||||||
<Svg src={loopIco}/>
|
<Svg src={loopIco}/>
|
||||||
<Body as='input'/>
|
<Body as='input' onChange={(event) => props.searchQueryHandler(event)}/>
|
||||||
<Svg as='button' src={filtersIco}/>
|
<Svg as='button' src={filtersIco}/>
|
||||||
</SearchStyle>
|
</SearchStyle>
|
||||||
);
|
);
|
||||||
|
@ -4,15 +4,36 @@ import {FlexColumn, Grid} from "../utils/containers";
|
|||||||
import Search from "../components/elements/Search";
|
import Search from "../components/elements/Search";
|
||||||
import MiniChallenge from "../components/elements/MiniChallenge";
|
import MiniChallenge from "../components/elements/MiniChallenge";
|
||||||
import Pager from "../components/elements/Pager";
|
import Pager from "../components/elements/Pager";
|
||||||
import challenges from "../prototypeData/challenges";
|
import challengesResp from "../prototypeData/challenges";
|
||||||
import {ELEMENTS_PER_PAGE} from "../utils/globals";
|
import {ELEMENTS_PER_PAGE} from "../utils/globals";
|
||||||
|
|
||||||
const Challenges = () => {
|
const Challenges = () => {
|
||||||
|
const calcPages = (challenges) => {
|
||||||
|
return Math.ceil(challenges.length / ELEMENTS_PER_PAGE);
|
||||||
|
}
|
||||||
|
|
||||||
const [pageNr, setPageNr] = React.useState(1);
|
const [pageNr, setPageNr] = React.useState(1);
|
||||||
const pages = Math.ceil(challenges.length / ELEMENTS_PER_PAGE);
|
const [challenges, setChallenges] = React.useState(challengesResp);
|
||||||
|
|
||||||
|
const searchQueryHandler = (event) => {
|
||||||
|
let searchQuery = event.target.value;
|
||||||
|
let challengesToRender = [];
|
||||||
|
setPageNr(1);
|
||||||
|
if (searchQuery === '')
|
||||||
|
setChallenges(challengesResp)
|
||||||
|
else {
|
||||||
|
for (let challenge of challengesResp) {
|
||||||
|
let str = `${challenge.title} ${challenge.describe} ${challenge.type} ${challenge.metric}
|
||||||
|
${challenge.bestScore} ${challenge.timeLeft} ${challenge.baseline} ${challenge.prize}`;
|
||||||
|
if (str.toLowerCase().includes(searchQuery.toLowerCase()))
|
||||||
|
challengesToRender.push(challenge);
|
||||||
|
}
|
||||||
|
setChallenges(challengesToRender);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const nextPage = () => {
|
const nextPage = () => {
|
||||||
if (pageNr !== pages) {
|
if (pageNr !== calcPages(challenges)) {
|
||||||
let newPage = pageNr + 1;
|
let newPage = pageNr + 1;
|
||||||
setPageNr(newPage);
|
setPageNr(newPage);
|
||||||
}
|
}
|
||||||
@ -26,12 +47,15 @@ const Challenges = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const renderChallenges = () => {
|
const renderChallenges = () => {
|
||||||
|
|
||||||
const n = (pageNr - 1) * ELEMENTS_PER_PAGE;
|
const n = (pageNr - 1) * ELEMENTS_PER_PAGE;
|
||||||
return (
|
return (
|
||||||
challenges.slice(n, n + ELEMENTS_PER_PAGE).map((challenge, index) => {
|
challenges.slice(n, n + ELEMENTS_PER_PAGE).map((challenge, index) => {
|
||||||
return (
|
return (
|
||||||
<MiniChallenge key={index} title={challenge.title} type={challenge.type}
|
<MiniChallenge key={index} title={challenge.title} type={challenge.type}
|
||||||
describe={challenge.describe}/>
|
describe={challenge.describe} metric={challenge.metric}
|
||||||
|
bestScore={challenge.bestScore} baseline={challenge.baseline}
|
||||||
|
prize={challenge.prize} timeLeft={challenge.timeLeft}/>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
@ -44,14 +68,14 @@ const Challenges = () => {
|
|||||||
<H1 as='h1' margin='0 0 20px 0'>
|
<H1 as='h1' margin='0 0 20px 0'>
|
||||||
Challenges
|
Challenges
|
||||||
</H1>
|
</H1>
|
||||||
<Search/>
|
<Search searchQueryHandler={searchQueryHandler}/>
|
||||||
<FlexColumn width='100%'>
|
<FlexColumn width='100%'>
|
||||||
<Grid margin='32px 0' gridGap='32px 0'>
|
<Grid margin='32px 0' gridGap='32px 0'>
|
||||||
{renderChallenges()}
|
{renderChallenges()}
|
||||||
</Grid>
|
</Grid>
|
||||||
</FlexColumn>
|
</FlexColumn>
|
||||||
</FlexColumn>
|
</FlexColumn>
|
||||||
<Pager pageNr={pageNr} pages={pages}
|
<Pager pageNr={pageNr} pages={calcPages(challenges)}
|
||||||
nextPage={nextPage} previousPage={previousPage}/>
|
nextPage={nextPage} previousPage={previousPage}/>
|
||||||
</FlexColumn>
|
</FlexColumn>
|
||||||
);
|
);
|
||||||
|
210
src/prototypeData/challenges.js
vendored
210
src/prototypeData/challenges.js
vendored
@ -3,238 +3,448 @@ const challenges = [
|
|||||||
title: 'Challenging America geo prediction',
|
title: 'Challenging America geo prediction',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Challenging America geo prediction',
|
title: 'Challenging America geo prediction',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Challenging America geo prediction',
|
title: 'Challenging America geo prediction',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 1',
|
title: 'Example 1',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 2',
|
title: 'Example 2',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 3',
|
title: 'Example 3',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 4',
|
title: 'Example 4',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 5',
|
title: 'Example 5',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 6',
|
title: 'Example 6',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 7',
|
title: 'Example 7',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 8',
|
title: 'Example 8',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 9',
|
title: 'Example 9',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 10',
|
title: 'Example 10',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 11',
|
title: 'Example 11',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Challenging America geo prediction',
|
title: 'Challenging America geo prediction',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Challenging America geo prediction',
|
title: 'Challenging America geo prediction',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Challenging America geo prediction',
|
title: 'Challenging America geo prediction',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 1',
|
title: 'Example 1',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 2',
|
title: 'Example 2',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 3',
|
title: 'Example 3',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 4',
|
title: 'Example 4',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 5',
|
title: 'Example 5',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 6',
|
title: 'Example 6',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 7',
|
title: 'Example 7',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 8',
|
title: 'Example 8',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 9',
|
title: 'Example 9',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 10',
|
title: 'Example 10',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 11',
|
title: 'Example 11',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Challenging America geo prediction',
|
title: 'Challenging America geo prediction',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Challenging America geo prediction',
|
title: 'Challenging America geo prediction',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Challenging America geo prediction',
|
title: 'Challenging America geo prediction',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 1',
|
title: 'Example 1',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 2',
|
title: 'Example 2',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 3',
|
title: 'Example 3',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 4',
|
title: 'Example 4',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 5',
|
title: 'Example 5',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 6',
|
title: 'Example 6',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 7',
|
title: 'Example 7',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '2 hours',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 8',
|
title: 'Example 8',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '5000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 9',
|
title: 'Example 9',
|
||||||
describe: 'Guess publication location for a piece of text',
|
describe: 'Guess publication location for a piece of text',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '60%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 10',
|
title: 'Example 10',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
metric: 'Haversine',
|
||||||
|
bestScore: '90%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Example 11',
|
title: 'Example 11',
|
||||||
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
describe: `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla lobortis nunc odio,
|
||||||
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
ut lacinia mi vestibulum eget. Donec non tellus lorem. Aliquam maximus semper accumsan.`,
|
||||||
type: 'tabular',
|
type: 'tabular',
|
||||||
|
metric: 'RMSE',
|
||||||
|
bestScore: '79%',
|
||||||
|
baseline: '55%',
|
||||||
|
prize: '150000 PLN',
|
||||||
|
timeLeft: '6 days',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user