nielsr HF staff commited on
Commit
0edd5f0
·
1 Parent(s): 57acb5a

Add disclaimer

Browse files
Files changed (2) hide show
  1. src/components/Header.tsx +9 -1
  2. src/pages/Index.tsx +4 -1
src/components/Header.tsx CHANGED
@@ -5,9 +5,10 @@ import { CalendarDays } from "lucide-react";
5
 
6
  interface HeaderProps {
7
  onSearch: (query: string) => void;
 
8
  }
9
 
10
- const Header = ({ onSearch }: HeaderProps) => {
11
  return (
12
  <header className="bg-white border-b border-neutral-200">
13
  <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
@@ -47,6 +48,13 @@ const Header = ({ onSearch }: HeaderProps) => {
47
  </div>
48
  </div>
49
  </div>
 
 
 
 
 
 
 
50
  <div className="max-w-4xl mx-auto text-center">
51
  <p className="text-sm text-neutral-600 py-4">
52
  Countdowns to top CV/NLP/ML/Robotics/AI conference deadlines. To add/edit a conference, send in a{' '}
 
5
 
6
  interface HeaderProps {
7
  onSearch: (query: string) => void;
8
+ showEmptyMessage?: boolean;
9
  }
10
 
11
+ const Header = ({ onSearch, showEmptyMessage = false }: HeaderProps) => {
12
  return (
13
  <header className="bg-white border-b border-neutral-200">
14
  <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
 
48
  </div>
49
  </div>
50
  </div>
51
+ {showEmptyMessage && (
52
+ <div className="max-w-4xl mx-auto mt-2 mb-0 text-center">
53
+ <p className="text-sm bg-amber-50 text-amber-800 py-2 px-4 rounded-md inline-block">
54
+ There are no upcoming conferences for the selected categories - enable "Show past conferences" to see previous ones
55
+ </p>
56
+ </div>
57
+ )}
58
  <div className="max-w-4xl mx-auto text-center">
59
  <p className="text-sm text-neutral-600 py-4">
60
  Countdowns to top CV/NLP/ML/Robotics/AI conference deadlines. To add/edit a conference, send in a{' '}
src/pages/Index.tsx CHANGED
@@ -87,7 +87,10 @@ const Index = () => {
87
 
88
  return (
89
  <div className="min-h-screen bg-neutral-light">
90
- <Header onSearch={setSearchQuery} />
 
 
 
91
  <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
92
  <div className="space-y-4 py-4">
93
  <FilterBar
 
87
 
88
  return (
89
  <div className="min-h-screen bg-neutral-light">
90
+ <Header
91
+ onSearch={setSearchQuery}
92
+ showEmptyMessage={selectedTags.size > 0 && filteredConferences.length === 0 && !showPastConferences}
93
+ />
94
  <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
95
  <div className="space-y-4 py-4">
96
  <FilterBar