From 7c45a64b4facb1b361f89150b46edef9dd4aca76 Mon Sep 17 00:00:00 2001
From: mattyl006
+ siema +
+ ); +} + +export default Challenge; \ No newline at end of file diff --git a/src/prototypeData/challenges.js b/src/prototypeData/challenges.js deleted file mode 100644 index 5207043..0000000 --- a/src/prototypeData/challenges.js +++ /dev/null @@ -1,451 +0,0 @@ -const challenges = [ - { - title: 'Challenging America geo prediction', - describe: 'Guess publication location for a piece of text', - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Challenging America geo prediction', - describe: 'Guess publication location for a piece of text', - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Challenging America geo prediction', - describe: 'Guess publication location for a piece of text', - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 1', - 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.`, - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 2', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 3', - 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.`, - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 4', - describe: 'Guess publication location for a piece of text', - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 5', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 6', - 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.`, - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 7', - 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.`, - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 8', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 9', - describe: 'Guess publication location for a piece of text', - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 10', - 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.`, - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 11', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Challenging America geo prediction', - describe: 'Guess publication location for a piece of text', - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Challenging America geo prediction', - describe: 'Guess publication location for a piece of text', - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Challenging America geo prediction', - describe: 'Guess publication location for a piece of text', - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 1', - 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.`, - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 2', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 3', - 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.`, - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 4', - describe: 'Guess publication location for a piece of text', - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 5', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 6', - 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.`, - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 7', - 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.`, - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 8', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 9', - describe: 'Guess publication location for a piece of text', - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 10', - 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.`, - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 11', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Challenging America geo prediction', - describe: 'Guess publication location for a piece of text', - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Challenging America geo prediction', - describe: 'Guess publication location for a piece of text', - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Challenging America geo prediction', - describe: 'Guess publication location for a piece of text', - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 1', - 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.`, - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 2', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 3', - 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.`, - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 4', - describe: 'Guess publication location for a piece of text', - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 5', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 6', - 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.`, - type: 'image', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 7', - 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.`, - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '2 hours', - }, - { - title: 'Example 8', - 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.`, - type: 'tabular', - metric: 'Haversine', - bestScore: '79%', - baseline: '55%', - prize: '5000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 9', - describe: 'Guess publication location for a piece of text', - type: 'text', - metric: 'Haversine', - bestScore: '79%', - baseline: '60%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 10', - 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.`, - type: 'image', - metric: 'Haversine', - bestScore: '90%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - }, - { - title: 'Example 11', - 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.`, - type: 'tabular', - metric: 'RMSE', - bestScore: '79%', - baseline: '55%', - prize: '150000 PLN', - timeLeft: '6 days', - } -] - -export default challenges; \ No newline at end of file diff --git a/src/utils/globals.js b/src/utils/globals.js index 14d573d..b9668f1 100644 --- a/src/utils/globals.js +++ b/src/utils/globals.js @@ -1,4 +1,6 @@ const ELEMENTS_PER_PAGE = 12; const API = 'https://gonito.net/api'; +const CHALLENGES_PAGE = '/challenges'; +const CHALLENGE_PAGE = '/challenge'; -export {ELEMENTS_PER_PAGE, API}; \ No newline at end of file +export {ELEMENTS_PER_PAGE, API, CHALLENGES_PAGE, CHALLENGE_PAGE}; \ No newline at end of file