placeholder check

This commit is contained in:
rngsurrounded
2025-03-02 20:54:12 +09:00
parent 8dd0b51471
commit 74d0c9ac4a
3 changed files with 15 additions and 8 deletions
@@ -22,7 +22,7 @@ export function CompetitionCard({
<div className="relative h-full overflow-hidden">
{competition.image_url && (
<img
src={competition.image_url}
src={competition.image_url ? competition.image_url : '/DANO.png'}
alt={competition.title}
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>;
};
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;
@@ -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",
}