Skip to content

Commit 04a6dce

Browse files
committed
Update content and pre-dismiss welcome popup if user lands on homepage
1 parent 911d108 commit 04a6dce

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/components/Home/Home.tsx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { OAuthResult } from '@huggingface/hub'
2-
import { FormEvent } from 'react'
2+
import { FormEvent, useEffect } from 'react'
33
import HFLoginIcon from '../../assets/sign-in-with-huggingface-lg.svg'
44
import { login, logout } from '../../lib/auth.js'
55
import { changeQueryString } from '../../lib/huggingfaceSource.js'
@@ -20,13 +20,21 @@ export default function Home({ auth }: { auth: OAuthResult | undefined }) {
2020
changeQueryString(`?url=${url}`)
2121
}
2222

23+
// pre-dismiss the welcome popup since user landed on the home page
24+
useEffect(() => {
25+
localStorage.setItem('welcome:dismissed', 'true')
26+
}, [])
27+
2328
return (
2429
<div className={styles.home}>
25-
<h1>Hyperparam</h1>
26-
<h2>Advanced Dataset Viewer Space</h2>
30+
<h1>Hyperparam Space</h1>
31+
<h2>Hyperparam Space</h2>
32+
<p>
33+
This is the <a href="https://hyperparam.app">hyperparam.app</a> interactive dataset viewer, embedded in a Hugging Face Space.
34+
</p>
2735
<p>
28-
Hyperparam is a high performance dataset viewer for parquet files.
29-
It leverages the power of parquet files and http ranged get requests to provide a fast and efficient way to view large datasets in the browser.
36+
Hyperparam aims to be the best tool for exploring huge unstructured text datasets in the browser.
37+
You can rapidly scroll through datasets and double-click cells to see full text content.
3038
</p>
3139

3240
<section>
@@ -39,7 +47,7 @@ export default function Home({ auth }: { auth: OAuthResult | undefined }) {
3947
</p>
4048
}
4149
{!auth && <>
42-
<p>Log in to search your private and gated datasets</p>
50+
<p>Sign in with HF to access your private and gated datasets.</p>
4351
<p>
4452
<a onClick={() => {
4553
void login()

0 commit comments

Comments
 (0)