Skip to content

Commit 2f3bf15

Browse files
committed
feat: update HyperView links to Hugging Face and add icon support
1 parent 30c8124 commit 2f3bf15

File tree

7 files changed

+38
-30
lines changed

7 files changed

+38
-30
lines changed

app/collapse/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function ExplainerContent() {
360360
{/* CTA */}
361361
<div className="flex flex-col sm:flex-row gap-3">
362362
<a
363-
href="https://hyper3labs.github.io/HyperView/"
363+
href="https://huggingface.co/spaces/Hyper3Labs/HyperView"
364364
target="_blank"
365365
rel="noopener noreferrer"
366366
className="inline-flex items-center justify-center gap-2 px-5 py-2.5 bg-white text-gray-900 text-sm font-medium rounded-md transition-all hover:bg-gray-200"

app/index-resonance/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function ContentSection() {
247247

248248
<div className="flex flex-col sm:flex-row gap-4 justify-center pt-4">
249249
<a
250-
href="https://hyper3labs.github.io/HyperView/"
250+
href="https://huggingface.co/spaces/Hyper3Labs/HyperView"
251251
target="_blank"
252252
rel="noopener noreferrer"
253253
className="inline-flex items-center justify-center gap-2 px-6 py-3 bg-emerald-600 hover:bg-emerald-500 text-white font-medium rounded-xl transition-all hover:scale-105"
@@ -296,4 +296,4 @@ export default function ResonanceConcept() {
296296
</main>
297297
</>
298298
);
299-
}
299+
}

app/warp/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ function ExplainerContent() {
309309
{/* CTA */}
310310
<div className="flex flex-col sm:flex-row gap-3">
311311
<a
312-
href="https://hyper3labs.github.io/HyperView/"
312+
href="https://huggingface.co/spaces/Hyper3Labs/HyperView"
313313
target="_blank"
314314
rel="noopener noreferrer"
315315
className="inline-flex items-center justify-center gap-2 px-5 py-2.5 bg-white text-gray-900 text-sm font-medium rounded-md transition-all hover:bg-gray-200"

components/Hero.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Github, Play, ArrowDown } from 'lucide-react';
1+
import { Github, ArrowDown } from 'lucide-react';
2+
import { SiHuggingface } from '@icons-pack/react-simple-icons';
23

34
export default function Hero() {
45
return (
@@ -37,12 +38,12 @@ export default function Hero() {
3738
View on GitHub
3839
</a>
3940
<a
40-
href="https://hyper3labs.github.io/HyperView/"
41+
href="https://huggingface.co/spaces/Hyper3Labs/HyperView"
4142
target="_blank"
4243
rel="noopener noreferrer"
4344
className="inline-flex items-center justify-center gap-2 px-5 py-2.5 bg-transparent text-gray-300 text-sm font-medium rounded-md border border-white/15 transition-all hover:bg-white/5"
4445
>
45-
<Play className="w-4 h-4" />
46+
<SiHuggingface className="w-4 h-4" />
4647
Try demo
4748
</a>
4849
</div>

components/Projects.tsx

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
import { Github, ExternalLink } from 'lucide-react';
2-
3-
// PyPI icon (clean cube/package style)
4-
function PyPIIcon({ className }: { className?: string }) {
5-
return (
6-
<svg className={className} viewBox="0 0 24 24" fill="currentColor">
7-
<path d="M23.922 13.58v3.912L20.55 19.5v-3.912zm-7.72 7.22L12.59 22.5v-3.863l3.611-1.701zm7.72-7.75L20.55 11.4v3.658l3.372 1.654zM12.83 14.772l3.372 1.654v3.863l-3.372-1.654zm7.48-3.658L16.68 9.46v3.863l3.63 1.749zM12.59 14.538V10.83l3.851 1.797-3.851 1.91zM8.478 6.595L12.11 4.89v3.862L8.478 10.46zm-4.09 5.704l3.61 1.701v3.912l-3.61-1.75zm0-.53V7.857L.777 9.51v3.912zm4.09-1.414V6.542L12.09 4.64v3.912zm7.72-.24L12.59 8.464V4.6l3.611 1.75zM8.24 14.12l3.61-1.702v3.912L8.24 18.08zm-3.85 1.94l3.61 1.654v3.912l-3.61-1.654zM.537 17.492v-3.863l3.612 1.702v3.863z"/>
8-
</svg>
9-
);
10-
}
11-
12-
// npm icon (clean block letters)
13-
function NpmIcon({ className }: { className?: string }) {
14-
return (
15-
<svg className={className} viewBox="0 0 24 24" fill="currentColor">
16-
<path d="M0 7.334v8h6.666v1.332H12v-1.332h12v-8H0zm6.666 6.664H5.334v-4H3.999v4H1.335V8.667h5.331v5.331zm4 0v1.336H8.001V8.667h5.334v5.332h-2.669v-.001zm12.001 0h-1.33v-4h-1.336v4h-1.335v-4h-1.33v4h-2.671V8.667h8.002v5.331zM10.665 10H12v2.667h-1.335V10z"/>
17-
</svg>
18-
);
19-
}
2+
import { SiPypi, SiNpm, SiHuggingface } from '@icons-pack/react-simple-icons';
203

214
const projects = [
225
{
@@ -30,7 +13,8 @@ const projects = [
3013
'HuggingFace integration',
3114
],
3215
repo: 'https://github.com/Hyper3Labs/HyperView',
33-
demo: 'https://hyper3labs.github.io/HyperView/',
16+
demo: 'https://huggingface.co/spaces/Hyper3Labs/HyperView',
17+
hfSpaces: 'https://huggingface.co/spaces/Hyper3Labs/HyperView',
3418
pypi: 'https://pypi.org/project/hyperview/',
3519
install: 'pip install hyperview',
3620
language: 'Python',
@@ -63,6 +47,7 @@ const projects = [
6347
],
6448
repo: 'https://github.com/Hyper3Labs/hyper-models',
6549
demo: 'https://huggingface.co/collections/hyperview-org/hyper-models-67900e48542fa2ea29a26684',
50+
hfCollection: 'https://huggingface.co/collections/hyperview-org/hyper-models-67900e48542fa2ea29a26684',
6651
pypi: 'https://pypi.org/project/hyper-models/',
6752
install: 'pip install hyper-models',
6853
language: 'Python',
@@ -114,7 +99,7 @@ function ProjectCard({ project }: { project: typeof projects[0] }) {
11499
className="p-1.5 text-gray-500 hover:text-yellow-500 hover:bg-white/[0.08] rounded-lg transition-all"
115100
title="PyPI"
116101
>
117-
<PyPIIcon className="w-4 h-4" />
102+
<SiPypi className="w-4 h-4" />
118103
</a>
119104
)}
120105
{project.npm && (
@@ -125,7 +110,18 @@ function ProjectCard({ project }: { project: typeof projects[0] }) {
125110
className="p-1.5 text-gray-500 hover:text-red-400 hover:bg-white/[0.08] rounded-lg transition-all"
126111
title="npm"
127112
>
128-
<NpmIcon className="w-4 h-4" />
113+
<SiNpm className="w-4 h-4" />
114+
</a>
115+
)}
116+
{(project.hfSpaces || project.hfCollection) && (
117+
<a
118+
href={project.hfSpaces || project.hfCollection}
119+
target="_blank"
120+
rel="noopener noreferrer"
121+
className="p-1.5 text-gray-500 hover:text-yellow-400 hover:bg-white/[0.08] rounded-lg transition-all"
122+
title={project.hfSpaces ? 'Hugging Face Spaces' : 'Hugging Face Collection'}
123+
>
124+
<SiHuggingface className="w-4 h-4" />
129125
</a>
130126
)}
131127
</div>

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
"export": "next build"
1111
},
1212
"dependencies": {
13+
"@icons-pack/react-simple-icons": "^13.8.0",
14+
"lucide-react": "^0.400.0",
1315
"next": "^14.2.0",
1416
"react": "^18.3.0",
15-
"react-dom": "^18.3.0",
16-
"lucide-react": "^0.400.0"
17+
"react-dom": "^18.3.0"
1718
},
1819
"devDependencies": {
1920
"@types/node": "^20.0.0",

0 commit comments

Comments
 (0)