Skip to content

Commit 02a24b8

Browse files
committed
add some effect
1 parent 5586446 commit 02a24b8

2 files changed

Lines changed: 58 additions & 10 deletions

File tree

app/(dashboard)/layout.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { Github, BookOpen, FileText } from "lucide-react";
3+
import { Github, BookOpen, FileText, NotebookPen } from "lucide-react";
44

55
import Link from 'next/link';
66
import { use, useState, Suspense } from 'react';
@@ -48,12 +48,25 @@ function UserMenu() {
4848
</Link>
4949
</Button>
5050
<Button asChild className="rounded-full">
51-
{/* <Link href="#blog" className="flex items-center gap-2"> */}
51+
<Link href="https://x.com/YOUR_X_THREAD_URL" className="flex items-center gap-2">
52+
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
53+
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/>
54+
</svg>
55+
X Thread
56+
</Link>
57+
</Button>
58+
<Button asChild className="rounded-full">
5259
<Link href="https://www.verbalized-sampling.com/#blog" className="flex items-center gap-2" target="_blank" rel="noopener noreferrer">
5360
<BookOpen size={16} />
5461
Blog
5562
</Link>
5663
</Button>
64+
<Button asChild className="rounded-full">
65+
<Link href="https://colab.research.google.com/YOUR_NOTEBOOK_URL" className="flex items-center gap-2">
66+
<NotebookPen size={16} />
67+
Notebook
68+
</Link>
69+
</Button>
5770
</>
5871
);
5972
}

app/(dashboard)/page.tsx

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,41 @@ const ViewerSystem = () => {
539539
);
540540
};
541541

542+
const RollingText = () => {
543+
const [currentIndex, setCurrentIndex] = useState(0);
544+
const texts = ["Creative Writing", "Social Simulation", "Synthetic Data", "Your Task!"];
545+
546+
useEffect(() => {
547+
const interval = setInterval(() => {
548+
setCurrentIndex((prev) => (prev + 1) % texts.length);
549+
}, 5000); // Change every 5 seconds
550+
551+
return () => clearInterval(interval);
552+
}, []);
553+
554+
return (
555+
<span className="block overflow-hidden relative" style={{ height: '48px' }}>
556+
<span
557+
className="transition-transform duration-500 ease-in-out"
558+
style={{
559+
transform: `translateY(-${currentIndex * 48}px)`,
560+
display: 'block'
561+
}}
562+
>
563+
{texts.map((text, index) => (
564+
<span
565+
key={index}
566+
className="block text-orange-500"
567+
style={{ height: '48px', lineHeight: '48px' }}
568+
>
569+
{text}
570+
</span>
571+
))}
572+
</span>
573+
</span>
574+
);
575+
};
576+
542577
export default function HomePage() {
543578
return (
544579
<main>
@@ -585,7 +620,7 @@ export default function HomePage() {
585620
alt="Verbalized Sampling Introduction"
586621
className="w-full max-w-5xl mx-auto rounded-lg shadow-lg"
587622
/>
588-
<div className="text-sm text-gray-500 mt-2">
623+
<div className="text-base text-gray-500 mt-2">
589624
<strong>Figure 1:</strong> Overview of Verbalized Sampling (VS) for unlocking LLM diversity.
590625
</div>
591626
</div>
@@ -642,7 +677,7 @@ export default function HomePage() {
642677
alt="Cognitive Bias and Typicality in Preference Data"
643678
className="w-full rounded-lg shadow-lg"
644679
/>
645-
<p className="text-sm text-gray-500 mt-3 text-center italic">
680+
<p className="text-base text-gray-500 mt-3 text-center italic">
646681
<strong>Figure 2:</strong> How often the human-preferred response in a preference pair is assigned a higher log likelihood by a base model.
647682
</p>
648683
</div>
@@ -659,7 +694,7 @@ export default function HomePage() {
659694
alt="Prompting Methods Comparison"
660695
className="w-full rounded-lg shadow-lg"
661696
/>
662-
<p className="text-sm text-gray-500 mt-3 text-center italic">
697+
<p className="text-base text-gray-500 mt-3 text-center italic">
663698
<strong>Figure 3:</strong> Three types of prompting methods: instance-level, list-level, and distribution-level, given the same computation budget of N total responses.
664699
</p>
665700
</div>
@@ -696,15 +731,15 @@ export default function HomePage() {
696731
<div className="max-w-5xl mx-auto text-center">
697732
<h2 className="text-3xl font-bold text-gray-700 tracking-tight sm:text-4xl mb-6">
698733
Verbalized Sampling Works On
699-
<span className="block text-orange-500">Multiple Tasks</span>
734+
<RollingText />
700735
</h2>
701736
<div className="text-center mb-8">
702737
<img
703738
src="/images/qualitative_examples.png"
704739
alt="Qualitative Examples Across Multiple Tasks"
705740
className="w-full max-w-6xl mx-auto rounded-lg shadow-lg"
706741
/>
707-
<p className="text-sm text-gray-500 mt-3 text-center italic">
742+
<p className="text-base text-gray-500 mt-3 text-center italic">
708743
<strong>Figure 4:</strong> Qualitative and quantitative examples of Verbalized Sampling on creative writing, dialogue simulation, and enumerative open-ended QA.
709744
</p>
710745
</div>
@@ -733,7 +768,7 @@ export default function HomePage() {
733768
alt="Emergent Trend: Larger Models Benefit More from VS"
734769
className="w-full rounded-lg shadow-lg"
735770
/>
736-
<p className="text-sm text-gray-500 mt-3 text-center italic">
771+
<p className="text-base text-gray-500 mt-3 text-center italic">
737772
<strong>Figure 5:</strong> Emergent trend where larger models benefit more from VS. We show differences in
738773
diversity (e) and quality (f) over Direct across small and large models.
739774
</p>
@@ -767,8 +802,8 @@ export default function HomePage() {
767802
alt="Probability Tuning for Maximum Diversity"
768803
className="w-full rounded-lg shadow-lg"
769804
/>
770-
<p className="text-sm text-gray-500 mt-3 text-center italic">
771-
<strong>Figure 6:</strong> Tunable Diversity shows the diversity tuning results on Gemini-2.5-Flash across tasks.
805+
<p className="text-base text-gray-500 mt-3 text-center italic">
806+
<strong>Figure 6:</strong> Tunable Diversity shows the diversity tuning results on Gemini-2.5-Flash across tasks.
772807
</p>
773808
</div>
774809
</div>

0 commit comments

Comments
 (0)