feat: add 'Made with Roo Code' badge to footer with dark/light mode support

This commit is contained in:
thill2323 2025-07-22 14:06:34 -04:00 • committed by Daniel Riccio
parent 00ef2db997
commit 77687895c0
No known key found for this signature in database
GPG key ID: FFD5FD825F8E8209
4 changed files with 6223 additions and 0 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.5 KiB

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 470 KiB

View file

@ -0,0 +1,25 @@
"use client"
import { useTheme } from "next-themes"
import { Footer } from "@/components/chromes"
import { Button } from "@/components/ui/button"
export default function TestFooterPage() {
const { theme, setTheme } = useTheme()
return (
<div className="min-h-screen flex flex-col">
<div className="flex-1 p-8">
<h1 className="text-2xl font-bold mb-4">Footer Test Page</h1>
<p className="mb-4">Use the button below to toggle between light and dark themes:</p>
<Button onClick={() => setTheme(theme === "dark" ? "light" : "dark")} variant="outline">
Toggle Theme (Current: {theme})
</Button>
<p className="mt-8 text-sm text-muted-foreground">
Scroll down to see the footer with the &quot;Made with Roo Code&quot; logo.
</p>
</div>
<Footer />
</div>
)
}

View file

@ -5,6 +5,7 @@ import Link from "next/link"
import Image from "next/image"
import { ChevronDown } from "lucide-react"
import { FaBluesky, FaDiscord, FaGithub, FaLinkedin, FaReddit, FaTiktok, FaXTwitter, FaYoutube } from "react-icons/fa6"
import { useTheme } from "next-themes"
import { EXTERNAL_LINKS, INTERNAL_LINKS } from "@/lib/constants"
import { useLogoSrc } from "@/lib/hooks/use-logo-src"
@ -14,6 +15,7 @@ export function Footer() {
const [privacyDropdownOpen, setPrivacyDropdownOpen] = useState(false)
const dropdownRef = useRef<HTMLDivElement>(null)
const logoSrc = useLogoSrc()
const { resolvedTheme } = useTheme()
// Close dropdown when clicking outside
useEffect(() => {
@ -105,6 +107,21 @@ export function Footer() {
<span className="sr-only">YouTube</span>
</a>
</div>
{/* Made with Roo Code */}
<a
href="https://roocode.com"
target="_blank"
rel="noopener noreferrer"
className="mt-8 inline-flex items-center space-x-2 group">
<Image
src={resolvedTheme === "light" ? "/RooCode-Badge-blk.svg" : "/RooCode-Badge-white.svg"}
alt="Made with Roo Code"
width={120}
height={40}
className="h-8 w-auto opacity-70 transition-opacity group-hover:opacity-100"
/>
</a>
</div>
<div className="mt-16 grid grid-cols-2 gap-8 xl:col-span-2 xl:mt-0">