Skip to content

Commit bc7f956

Browse files
committed
feat: showcase and global safari admonition
1 parent 246c576 commit bc7f956

13 files changed

+113
-8
lines changed
File renamed without changes.

docusaurus.config.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ const config: Config = {
7777
position: 'left',
7878
label: 'Docs',
7979
},
80-
{href: 'https://provenancewidgets.github.io/showcase/', label: 'Showcase', position: 'left'},
80+
{
81+
to: 'docs/showcase/',
82+
label: 'Showcase',
83+
position: 'left'
84+
},
8185
{
8286
href: `https://github.com/ProvenanceWidgets/ProvenanceWidgets`,
8387
label: 'GitHub',
@@ -134,6 +138,14 @@ const config: Config = {
134138
theme: prismThemes.oneLight,
135139
darkTheme: prismThemes.oceanicNext
136140
},
141+
colorMode: {
142+
respectPrefersColorScheme: true,
143+
},
144+
announcementBar: {
145+
content: '⚠️ ProvenanceWidgets is not yet fully compatible with Safari. We recommend using a chromium-based browser or Firefox for the best experience.',
146+
backgroundColor: 'var(--ifm-color-danger-darker)',
147+
textColor: 'white'
148+
}
137149
} satisfies Preset.ThemeConfig,
138150

139151
clientModules: [

src/pages/docs/showcase.module.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.linkReset {
2+
color: inherit;
3+
}
4+
5+
.linkReset:hover {
6+
color: inherit;
7+
text-decoration: none;
8+
transform: scale(1.01);
9+
transition: transform 0.2s ease-in-out;
10+
}
11+
12+
.titleOverride {
13+
color: var(--ifm-link-color);
14+
}
15+
16+
.paragraphReset {
17+
text-decoration: none;
18+
}

src/pages/docs/showcase.tsx

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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+
}

src/pages/markdown-page.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

static/img/data-distribution.png

62.5 KB
Loading
77.6 KB
Loading

static/img/phosphor-objects.png

61.6 KB
Loading

static/img/playground.png

65.1 KB
Loading

static/img/scented-widgets.png

55.1 KB
Loading

static/img/vega-example.png

190 KB
Loading

static/img/vis-to-widgets-one-way.png

77.7 KB
Loading

static/img/widgets-to-vis-one-way.png

97.4 KB
Loading

0 commit comments

Comments
 (0)