File size: 1,347 Bytes
f46336a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

import { CalendarDays, Globe, Tag } from "lucide-react";

interface ConferenceCardProps {
  name: string;
  date: string;
  location: string;
  deadline: string;
  daysLeft: number;
  tags: string[];
}

const ConferenceCard = ({
  name,
  date,
  location,
  deadline,
  daysLeft,
  tags,
}: ConferenceCardProps) => {
  return (
    <div className="conference-card animate-fade-in">
      <div className="flex justify-between items-start mb-4">
        <h3 className="text-xl font-semibold">{name}</h3>
        <div className="countdown">{daysLeft}d</div>
      </div>
      
      <div className="space-y-2 mb-4">
        <div className="flex items-center text-neutral">
          <CalendarDays className="h-4 w-4 mr-2" />
          <span className="text-sm">{date}</span>
        </div>
        <div className="flex items-center text-neutral">
          <Globe className="h-4 w-4 mr-2" />
          <span className="text-sm">{location}</span>
        </div>
      </div>

      <div className="flex flex-wrap gap-2 mb-4">
        {tags.map((tag) => (
          <span key={tag} className="tag">
            <Tag className="h-3 w-3 mr-1" />
            {tag}
          </span>
        ))}
      </div>

      <div className="text-sm text-neutral-dark">
        Deadline: {deadline}
      </div>
    </div>
  );
};

export default ConferenceCard;