nielsr HF staff commited on
Commit
6eb5e90
·
1 Parent(s): 6c614e3

Remove note from main view

Browse files
Files changed (1) hide show
  1. src/components/ConferenceCard.tsx +8 -15
src/components/ConferenceCard.tsx CHANGED
@@ -1,4 +1,3 @@
1
-
2
  import { CalendarDays, Globe, Tag, Clock, AlarmClock } from "lucide-react";
3
  import { Conference } from "@/types/conference";
4
  import { formatDistanceToNow, parseISO, isValid } from "date-fns";
@@ -40,9 +39,13 @@ const ConferenceCard = ({
40
 
41
  return (
42
  <>
43
- <div className="conference-card cursor-pointer" onClick={handleCardClick}>
44
- <div className="mb-3">
45
- {link ? (
 
 
 
 
46
  <a
47
  href={link}
48
  target="_blank"
@@ -50,12 +53,9 @@ const ConferenceCard = ({
50
  className="hover:underline"
51
  onClick={(e) => e.stopPropagation()}
52
  >
53
- <h3 className="text-lg font-semibold text-primary">{title}</h3>
54
  </a>
55
- ) : (
56
- <h3 className="text-lg font-semibold">{title}</h3>
57
  )}
58
- {full_name && <p className="text-xs text-neutral-600 truncate">{full_name}</p>}
59
  </div>
60
 
61
  <div className="flex flex-col gap-2 mb-3">
@@ -91,13 +91,6 @@ const ConferenceCard = ({
91
  ))}
92
  </div>
93
  )}
94
-
95
- {note && (
96
- <div
97
- className="text-xs text-neutral-600 mt-2"
98
- dangerouslySetInnerHTML={{ __html: note }}
99
- />
100
- )}
101
  </div>
102
 
103
  <ConferenceDialog
 
 
1
  import { CalendarDays, Globe, Tag, Clock, AlarmClock } from "lucide-react";
2
  import { Conference } from "@/types/conference";
3
  import { formatDistanceToNow, parseISO, isValid } from "date-fns";
 
39
 
40
  return (
41
  <>
42
+ <div
43
+ onClick={handleCardClick}
44
+ className="bg-white rounded-lg shadow-sm hover:shadow-md transition-shadow p-4 flex flex-col cursor-pointer"
45
+ >
46
+ <div className="flex justify-between items-start mb-2">
47
+ <h3 className="text-lg font-semibold text-primary">{title}</h3>
48
+ {link && (
49
  <a
50
  href={link}
51
  target="_blank"
 
53
  className="hover:underline"
54
  onClick={(e) => e.stopPropagation()}
55
  >
56
+ <Globe className="h-4 w-4 mr-2 flex-shrink-0" />
57
  </a>
 
 
58
  )}
 
59
  </div>
60
 
61
  <div className="flex flex-col gap-2 mb-3">
 
91
  ))}
92
  </div>
93
  )}
 
 
 
 
 
 
 
94
  </div>
95
 
96
  <ConferenceDialog