chore: add a sticky header with CTAs

This commit is contained in:
Abhishek Kumar 2026-04-11 16:29:19 +05:30
parent c06c457505
commit 1a7eb08aea
6 changed files with 49 additions and 64 deletions

View file

@ -1,8 +1,8 @@
"use client";
import { Star } from 'lucide-react';
import Link from 'next/link';
import { GitHubStarBadge } from '@/components/layout/GitHubStarBadge';
import { Button } from '@/components/ui/button';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import { useAuth } from '@/lib/auth';
@ -36,17 +36,9 @@ export default function OverviewPage() {
</CardHeader>
<CardContent>
{isOSSMode && (
<Button asChild className="mb-6">
<a
href="https://github.com/dograh-hq/dograh"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center"
>
<Star className="h-4 w-4 fill-yellow-400 text-yellow-400" />
Star us on GitHub
</a>
</Button>
<div className="mb-6">
<GitHubStarBadge label="Star us on GitHub" showCount source="overview_page" />
</div>
)}
</CardContent>
</Card>

View file

@ -385,7 +385,7 @@ export const WorkflowEditorHeader = ({
{/* GitHub star badge - desktop only */}
<div className="hidden md:block">
<GitHubStarBadge className="border-[#3a3a3a] text-white" />
<GitHubStarBadge className="border-[#3a3a3a] text-white" source="workflow_editor_header" />
</div>
</div>
</div>