mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-09 03:17:58 +00:00
feat: add 'Made with Roo Code' badge to footer with dark/light mode support
This commit is contained in:
parent
00ef2db997
commit
77687895c0
4 changed files with 6223 additions and 0 deletions
1
apps/web-roo-code/public/RooCode-Badge-blk.svg
Normal file
1
apps/web-roo-code/public/RooCode-Badge-blk.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 7.5 KiB |
6180
apps/web-roo-code/public/RooCode-Badge-white.svg
Normal file
6180
apps/web-roo-code/public/RooCode-Badge-white.svg
Normal file
File diff suppressed because it is too large
Load diff
|
After Width: | Height: | Size: 470 KiB |
25
apps/web-roo-code/src/app/test-footer/page.tsx
Normal file
25
apps/web-roo-code/src/app/test-footer/page.tsx
Normal 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 "Made with Roo Code" logo.
|
||||
</p>
|
||||
</div>
|
||||
<Footer />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue