mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
placeholder check
This commit is contained in:
@@ -22,7 +22,7 @@ export function CompetitionCard({
|
|||||||
<div className="relative h-full overflow-hidden">
|
<div className="relative h-full overflow-hidden">
|
||||||
{competition.image_url && (
|
{competition.image_url && (
|
||||||
<img
|
<img
|
||||||
src={competition.image_url}
|
src={competition.image_url ? competition.image_url : '/DANO.png'}
|
||||||
alt={competition.title}
|
alt={competition.title}
|
||||||
className="h-full w-full object-cover object-center"
|
className="h-full w-full object-cover object-center"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -112,12 +112,5 @@ const SectionTitle = ({ children }: { children: React.ReactNode }) => {
|
|||||||
return <h1 className="w-full text-3xl font-semibold">{children}</h1>;
|
return <h1 className="w-full text-3xl font-semibold">{children}</h1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
const EmptyState = ({ message }: { message: string }) => {
|
|
||||||
return (
|
|
||||||
<div className="flex justify-center items-center p-12 bg-gray-50 rounded-lg">
|
|
||||||
<p className="font-hse-sans text-gray-500">{message}</p>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default CompetitionsPage;
|
export default CompetitionsPage;
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
export interface Task {
|
||||||
|
id: string;
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
type: 'input' | 'file' | 'code';
|
||||||
|
in_competition_position: number;
|
||||||
|
points: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum TaskType {
|
||||||
|
INPUT = "input",
|
||||||
|
FILE = "file",
|
||||||
|
CODE = "code",
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user