File size: 2,694 Bytes
6fd509c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import { useState } from "react";
import {
  Dialog,
  DialogContent,
  DialogDescription,
  DialogFooter,
  DialogHeader,
  DialogTitle,
} from "@/components/ui/dialog";
import { Button } from "@/components/ui/button";

const MIGRATION_URL = "https://paperswithcode.co/ai-deadlines";
const CONFERENCES_URL = "https://paperswithcode.co/conferences";
const FEEDBACK_ISSUES_URL = "https://github.com/huggingface/paperswithcode-feedback/issues";

const MigrationDialog = () => {
  const [open, setOpen] = useState(true);

  return (
    <Dialog open={open} onOpenChange={setOpen}>
      <DialogContent className="gap-6 p-8 sm:max-w-2xl">
        <DialogHeader className="space-y-3">
          <DialogTitle className="text-2xl">This app has moved</DialogTitle>
          <DialogDescription className="text-lg">
            This app has been migrated to{" "}
            <a
              href={MIGRATION_URL}
              target="_blank"
              rel="noopener noreferrer"
              className="text-primary hover:underline"
            >
              paperswithcode.co/ai-deadlines
            </a>
            .
          </DialogDescription>
        </DialogHeader>
        <div className="space-y-5 text-base leading-relaxed text-muted-foreground">
          <p>The new website includes:</p>
          <ul className="list-disc space-y-2 pl-6">
            <li>Save deadlines to your Apple or Google Calendar</li>
            <li>
              Browse conference papers by domain at{" "}
              <a
                href={CONFERENCES_URL}
                target="_blank"
                rel="noopener noreferrer"
                className="text-primary hover:underline"
              >
                paperswithcode.co/conferences
              </a>
            </li>
            <li>Sign in with your Hugging Face account and save your favorite papers (optional)</li>
          </ul>
          <p>
            To submit new conference data, or raise any feedback, please open an issue at{" "}
            <a
              href={FEEDBACK_ISSUES_URL}
              target="_blank"
              rel="noopener noreferrer"
              className="text-primary hover:underline"
            >
              github.com/huggingface/paperswithcode-feedback/issues
            </a>
            .
          </p>
        </div>
        <DialogFooter className="sm:justify-start">
          <Button asChild size="lg" className="text-base">
            <a href={MIGRATION_URL} target="_blank" rel="noopener noreferrer">
              Visit the new site
            </a>
          </Button>
        </DialogFooter>
      </DialogContent>
    </Dialog>
  );
};

export default MigrationDialog;