xingyuanzhao Cursor commited on
Commit
f60b440
·
1 Parent(s): cfa9d04

landing page: add GitHub+Cite buttons, rename codebook

Browse files
codebooks/{news-topics.json → demo_codebook.json} RENAMED
@@ -11,5 +11,5 @@
11
  "options": ["Local", "State", "National", "Global"],
12
  "context_definition": "Judge by where the event's effects are felt, not where the article was published."
13
  },
14
- "_name": "News Topics"
15
  }
 
11
  "options": ["Local", "State", "National", "Global"],
12
  "context_definition": "Judge by where the event's effects are felt, not where the article was published."
13
  },
14
+ "_name": "demo_codebook"
15
  }
gui/src/pages/LandingPage.tsx CHANGED
@@ -3,9 +3,26 @@
3
  * Rendered when the user clicks the "Academic Pipeline" title in the NavBar.
4
  */
5
 
 
6
  import { NavLink } from "react-router-dom";
7
 
 
 
 
 
 
 
 
8
  export default function LandingPage(): JSX.Element {
 
 
 
 
 
 
 
 
 
9
  return (
10
  <div className="mx-auto max-w-3xl px-6 py-10">
11
  <h1 className="mb-2 text-3xl font-bold tracking-tight">
@@ -16,7 +33,7 @@ export default function LandingPage(): JSX.Element {
16
  processing.
17
  </p>
18
 
19
- <div className="mb-8 flex gap-3">
20
  <NavLink
21
  to="/flows"
22
  className="rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90"
@@ -31,6 +48,20 @@ export default function LandingPage(): JSX.Element {
31
  >
32
  Documentation
33
  </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  </div>
35
 
36
  <hr className="my-6" />
 
3
  * Rendered when the user clicks the "Academic Pipeline" title in the NavBar.
4
  */
5
 
6
+ import { useState } from "react";
7
  import { NavLink } from "react-router-dom";
8
 
9
+ const CITATION_BIBTEX = `@software{zhao2026academicpipeline,
10
+ author = {Xingyuan Zhao},
11
+ title = {Academic Pipeline: A No-Code Application for LLM-Powered Structured Text Processing},
12
+ year = {2026},
13
+ url = {https://github.com/xingyuanzhao-project/academic-pipeline-public}
14
+ }`;
15
+
16
  export default function LandingPage(): JSX.Element {
17
+ const [copied, setCopied] = useState(false);
18
+
19
+ function handleCite() {
20
+ navigator.clipboard.writeText(CITATION_BIBTEX).then(() => {
21
+ setCopied(true);
22
+ setTimeout(() => setCopied(false), 2000);
23
+ });
24
+ }
25
+
26
  return (
27
  <div className="mx-auto max-w-3xl px-6 py-10">
28
  <h1 className="mb-2 text-3xl font-bold tracking-tight">
 
33
  processing.
34
  </p>
35
 
36
+ <div className="mb-8 flex flex-wrap gap-3">
37
  <NavLink
38
  to="/flows"
39
  className="rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90"
 
48
  >
49
  Documentation
50
  </a>
51
+ <a
52
+ href="https://github.com/xingyuanzhao-project/academic-pipeline-public"
53
+ target="_blank"
54
+ rel="noopener noreferrer"
55
+ className="rounded-md border px-4 py-2 text-sm font-medium transition-colors hover:bg-accent"
56
+ >
57
+ GitHub
58
+ </a>
59
+ <button
60
+ onClick={handleCite}
61
+ className="rounded-md border px-4 py-2 text-sm font-medium transition-colors hover:bg-accent"
62
+ >
63
+ {copied ? "Copied!" : "Cite this work"}
64
+ </button>
65
  </div>
66
 
67
  <hr className="my-6" />
workflows/demo_codebook_guided_classification.yml CHANGED
@@ -40,7 +40,7 @@ flow:
40
  - id: codebook_1
41
  type: codebook
42
  config:
43
- codebook_id: news-topics
44
 
45
  - id: output_1
46
  type: csv_output
 
40
  - id: codebook_1
41
  type: codebook
42
  config:
43
+ codebook_id: demo_codebook
44
 
45
  - id: output_1
46
  type: csv_output