Skip to content

Commit 47f05ce

Browse files
committed
feat: move graph toggle button to bottom-right corner with clean white styling
1 parent 8fefb33 commit 47f05ce

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

src/app/page.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,22 +94,24 @@ export default function Page() {
9494
</section>
9595

9696
<BlurFade delay={BLUR_FADE_DELAY * 7}>
97-
<div className="mb-4 flex justify-center">
97+
<div className="relative">
98+
{showUnifiedGraph ? (
99+
<UnifiedGraph showBlogPosts={true} />
100+
) : (
101+
<HomeGraph />
102+
)}
98103
<button
99104
onClick={() => setShowUnifiedGraph(!showUnifiedGraph)}
100-
className="flex items-center gap-2 px-4 py-2 text-sm font-medium text-foreground bg-gradient-to-r from-violet-500/10 to-pink-500/10 hover:from-violet-500/20 hover:to-pink-500/20 border border-violet-500/30 rounded-full transition-all duration-200 shadow-sm hover:shadow-md"
105+
className="absolute bottom-4 right-4 z-30 flex items-center gap-2 px-3 py-2 text-xs font-medium text-gray-700 dark:text-gray-200 bg-white dark:bg-white/95 hover:bg-gray-50 dark:hover:bg-white border border-gray-200 dark:border-white/20 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg backdrop-blur-sm"
101106
>
102-
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
107+
<svg className="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
103108
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
104109
</svg>
105-
{showUnifiedGraph ? "Hide Blog Integration" : "Integrate with Blog Posts"}
110+
<span className="whitespace-nowrap">
111+
{showUnifiedGraph ? "Sections Only" : "With Blog Posts"}
112+
</span>
106113
</button>
107114
</div>
108-
{showUnifiedGraph ? (
109-
<UnifiedGraph showBlogPosts={true} />
110-
) : (
111-
<HomeGraph />
112-
)}
113115
</BlurFade>
114116

115117
<section id="about" className="mb-section-lg">

0 commit comments

Comments
 (0)