Caleb Fahlgren commited on
Commit
1f7d2c6
·
1 Parent(s): d438e7a
Files changed (2) hide show
  1. app/page.tsx +5 -1
  2. components/cta.tsx +35 -0
app/page.tsx CHANGED
@@ -11,6 +11,7 @@ import { CustomPieChart } from "@/components/pie-chart"
11
  import { SimpleArea } from "@/components/simple-area"
12
  import { Button } from "@/components/ui/button"
13
  import { GenericTable } from "@/components/simple-table"
 
14
 
15
  export default function IndexPage() {
16
  const [conn, setConn] = useState<duckdb.AsyncDuckDBConnection | null>(null)
@@ -215,7 +216,10 @@ export default function IndexPage() {
215
  />
216
  </div>
217
  )}
218
-
 
 
219
  </section>
 
220
  )
221
  }
 
11
  import { SimpleArea } from "@/components/simple-area"
12
  import { Button } from "@/components/ui/button"
13
  import { GenericTable } from "@/components/simple-table"
14
+ import { CTABanner } from "@/components/cta"
15
 
16
  export default function IndexPage() {
17
  const [conn, setConn] = useState<duckdb.AsyncDuckDBConnection | null>(null)
 
216
  />
217
  </div>
218
  )}
219
+ <div className="my-48">
220
+ <CTABanner />
221
+ </div>
222
  </section>
223
+
224
  )
225
  }
components/cta.tsx ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Link from 'next/link'
2
+ import { Button } from "@/components/ui/button"
3
+ import { Card, CardContent } from "@/components/ui/card"
4
+
5
+ export function CTABanner() {
6
+ return (
7
+ <div className="space-y-6">
8
+ <Card className="rounded-lg bg-primary text-primary-foreground">
9
+ <CardContent className="flex flex-col items-center justify-between p-6 sm:flex-row">
10
+ <div className="mb-4 sm:mb-0">
11
+ <h3 className="text-2xl font-bold">Explore Data Further</h3>
12
+ <p className="mt-2">Find more interesting insights with the Hugging Face Data Explorer Chrome Extension</p>
13
+ </div>
14
+ <Button asChild variant="secondary" size="lg">
15
+ <Link href="https://chromewebstore.google.com/detail/hugging-face-data-explore/algkmpgdgbindfpddilldlogcbhpkhhd" target="_blank" rel="noopener noreferrer">
16
+ Get Chrome Extension
17
+ </Link>
18
+ </Button>
19
+ </CardContent>
20
+ </Card>
21
+
22
+ <Card>
23
+ <CardContent className="p-0">
24
+ <iframe
25
+ src="https://huggingface.co/datasets/cfahlgren1/hub-stats/embed/viewer/datasets/train"
26
+ frameBorder="0"
27
+ width="100%"
28
+ height="560px"
29
+ title="Hugging Face Dataset Viewer"
30
+ />
31
+ </CardContent>
32
+ </Card>
33
+ </div>
34
+ )
35
+ }