huggingface/ai-deadlines
781
1import { useState } from "react";2import {3 Dialog,4 DialogContent,5 DialogDescription,6 DialogFooter,7 DialogHeader,8 DialogTitle,9} from "@/components/ui/dialog";10import { Button } from "@/components/ui/button";11 12const MIGRATION_URL = "https://paperswithcode.co/ai-deadlines";13const CONFERENCES_URL = "https://paperswithcode.co/conferences";14const FEEDBACK_ISSUES_URL = "https://github.com/huggingface/paperswithcode-feedback/issues";15 16const MigrationDialog = () => {17 const [open, setOpen] = useState(true);18 19 return (20 <Dialog open={open} onOpenChange={setOpen}>21 <DialogContent className="gap-6 p-8 sm:max-w-2xl">22 <DialogHeader className="space-y-3">23 <DialogTitle className="text-2xl">This app has moved</DialogTitle>24 <DialogDescription className="text-lg">25 This app has been migrated to{" "}26 <a27 href={MIGRATION_URL}28 target="_blank"29 rel="noopener noreferrer"30 className="text-primary hover:underline"31 >32 paperswithcode.co/ai-deadlines33 </a>34 .35 </DialogDescription>36 </DialogHeader>37 <div className="space-y-5 text-base leading-relaxed text-muted-foreground">38 <p>The new website includes:</p>39 <ul className="list-disc space-y-2 pl-6">40 <li>Save deadlines to your Apple or Google Calendar</li>41 <li>42 Browse conference papers by domain at{" "}43 <a44 href={CONFERENCES_URL}45 target="_blank"46 rel="noopener noreferrer"47 className="text-primary hover:underline"48 >49 paperswithcode.co/conferences50 </a>51 </li>52 <li>Sign in with your Hugging Face account and save your favorite papers (optional)</li>53 </ul>54 <p>55 To submit new conference data, or raise any feedback, please open an issue at{" "}56 <a57 href={FEEDBACK_ISSUES_URL}58 target="_blank"59 rel="noopener noreferrer"60 className="text-primary hover:underline"61 >62 github.com/huggingface/paperswithcode-feedback/issues63 </a>64 .65 </p>66 </div>67 <DialogFooter className="sm:justify-start">68 <Button asChild size="lg" className="text-base">69 <a href={MIGRATION_URL} target="_blank" rel="noopener noreferrer">70 Visit the new site71 </a>72 </Button>73 </DialogFooter>74 </DialogContent>75 </Dialog>76 );77};78 79export default MigrationDialog;80 