1
+ import Layout from "@theme/Layout"
2
+ import Heading from '@theme/Heading' ;
3
+ import Link from "@docusaurus/Link" ;
4
+ import styles from './showcase.module.css'
5
+ import clsx from "clsx" ;
6
+
7
+ const projects = [
8
+ {
9
+ title : 'Playground' ,
10
+ description : 'A playground to test out all widgets available in the library.' ,
11
+ link : 'playground'
12
+ } ,
13
+ {
14
+ title : 'Scented Widgets' ,
15
+ description : 'A showcase to replicate Scented Widgets for facilitating navigation in information spaces.' ,
16
+ link : 'scented-widgets'
17
+ } ,
18
+ {
19
+ title : 'Phosphor Objects' ,
20
+ description : 'A showcase to replicate Phosphor objects in a web environment by limiting the provenance to the last two interactions.' ,
21
+ link : 'phosphor-objects'
22
+ } ,
23
+ {
24
+ title : 'Data Distribution' ,
25
+ description : 'A showcase to visualize the data distribution of different attributes in a dataset using different widgets in the library.' ,
26
+ link : 'data-distribution'
27
+ } ,
28
+ {
29
+ title : 'Vega Integration' ,
30
+ description : 'A showcase to demonstrate the integrability of ProvenanceWidgets with Vega signals.' ,
31
+ link : 'vega-example'
32
+ } ,
33
+ {
34
+ title : 'Dynamic Query Widgets' ,
35
+ description : 'A showcase to replicate the dynamic query widgets for the homefinder application.' ,
36
+ link : 'dynamic-query-widgets-homefinder'
37
+ } ,
38
+ {
39
+ title : 'Widgets to Visualization Interaction' ,
40
+ description : 'A showcase to demonstrate the use of ProvenanceWidgets to interact with a visualization.' ,
41
+ link : 'widgets-to-vis-one-way'
42
+ } ,
43
+ {
44
+ title : 'Visualization to Widgets Interaction' ,
45
+ description : 'A showcase to demonstrate how the widgets can be updated by interacting with a visualization.' ,
46
+ link : 'vis-to-widgets-one-way'
47
+ }
48
+ ]
49
+
50
+ const title = 'Showcase'
51
+ const description = 'Demonstrations of the ProvenanceWidgets library in action.'
52
+
53
+ export default function Showcase ( ) {
54
+ return (
55
+ < Layout { ...{ title, description } } >
56
+ < div className = "container padding-top--md padding-bottom--lg" >
57
+ < Heading as = "h1" className = "hero__title" >
58
+ { title }
59
+ </ Heading >
60
+ < p className = "hero__subtitle" > { description } </ p >
61
+ < div className = "grid" >
62
+ { projects . map ( ( project , i ) => (
63
+ < div className = "col-12 md:col-6 lg:col-3" key = { i } >
64
+ < Link
65
+ className = { clsx ( 'card h-full' , styles . linkReset ) }
66
+ to = { `https://provenancewidgets.github.io/showcase/#/${ project . link } ` }
67
+ >
68
+ < div className = "card__image" >
69
+ < img src = { `/img/${ project . link } .png` } alt = { project . title } />
70
+ </ div >
71
+ < div className = "card__body" >
72
+ < h4 className = { styles . titleOverride } > { project . title } </ h4 >
73
+ < small className = { styles . paragraphReset } > { project . description } </ small >
74
+ </ div >
75
+ </ Link >
76
+ </ div >
77
+ ) ) }
78
+ </ div >
79
+ </ div >
80
+ </ Layout >
81
+ )
82
+ }
0 commit comments