feat(ui): add SecBrief logo and browser favicon
Browse filesSVG mark (amber-to-emerald shield) in public/icon.svg for tab icon; reusable SecBriefLogo in header, landing, and signup.
Co-authored-by: Cursor <cursoragent@cursor.com>
Files changed (6)
4 unmodified lines56789104 unmodified linestitle: "SecBrief — Explain the risk, enforce the fix",description:"OWASP-mapped security briefings, code audits, and ArmorIQ-verified remediation plans.",};export default function RootLayout({4 unmodified lines5678910111213144 unmodified linestitle: "SecBrief — Explain the risk, enforce the fix",description:"OWASP-mapped security briefings, code audits, and ArmorIQ-verified remediation plans.",icons: {icon: [{ url: "/icon.svg", type: "image/svg+xml" }],apple: [{ url: "/icon.svg", type: "image/svg+xml" }],},};export default function RootLayout({
1 unmodified line23456748 unmodified lines565758596061626364656667686963 unmodified lines1331341351361371381391401411421431441451461 unmodified lineimport { useState } from "react";import Link from "next/link";import { authSignup } from "@/lib/api";function CopyButton({ text, label }: { text: string; label: string }) {48 unmodified lines<div className="max-w-7xl mx-auto px-4 sm:px-6 py-4"><div className="flex items-center justify-between"><Link href="/" className="flex items-center gap-3"><div className="w-10 h-10 rounded-xl bg-gradient-to-br from-amber-500 to-emerald-600 flex items-center justify-center text-sm font-bold shadow-lg shadow-emerald-500/20">SB</div><div><h1 className="text-xl font-bold tracking-tight">Sec<span className="text-emerald-400">Brief</span></h1></div></Link></div></div>63 unmodified lines<div className="max-w-7xl mx-auto px-4 sm:px-6 py-4"><div className="flex items-center justify-between"><Link href="/" className="flex items-center gap-3"><div className="w-10 h-10 rounded-xl bg-gradient-to-br from-amber-500 to-emerald-600 flex items-center justify-center text-sm font-bold shadow-lg shadow-emerald-500/20">SB</div><div><h1 className="text-xl font-bold tracking-tight">Sec<span className="text-emerald-400">Brief</span></h1></div></Link></div></div>1 unmodified line234567848 unmodified lines5758596061626363 unmodified lines1271281291301311321331 unmodified lineimport { useState } from "react";import Link from "next/link";import { SecBriefLogo } from "@/components/SecBriefLogo";import { authSignup } from "@/lib/api";function CopyButton({ text, label }: { text: string; label: string }) {48 unmodified lines<div className="max-w-7xl mx-auto px-4 sm:px-6 py-4"><div className="flex items-center justify-between"><Link href="/" className="flex items-center gap-3"><SecBriefLogo size="md" showText /></Link></div></div>63 unmodified lines<div className="max-w-7xl mx-auto px-4 sm:px-6 py-4"><div className="flex items-center justify-between"><Link href="/" className="flex items-center gap-3"><SecBriefLogo size="md" showText /></Link></div></div>
1234567891011121314151617181920212223"use client";import Link from "next/link";export function Header() {return (<header className="border-b border-slate-800/80 glass sticky top-0 z-50"><div className="max-w-7xl mx-auto px-4 sm:px-6 py-4"><div className="flex items-center justify-between"><div className="flex items-center gap-3"><div className="w-10 h-10 rounded-xl bg-gradient-to-br from-amber-500 to-emerald-600 flex items-center justify-center text-sm font-bold shadow-lg shadow-emerald-500/20">SB</div><div><h1 className="text-xl font-bold tracking-tight">Sec<span className="text-emerald-400">Brief</span></h1><p className="text-xs text-slate-500">Explain the risk · Enforce the fix</p></div></div><Linkhref="/signup"className="text-sm px-4 py-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 transition-colors"1234567891011121314"use client";import Link from "next/link";import { SecBriefLogo } from "@/components/SecBriefLogo";export function Header() {return (<header className="border-b border-slate-800/80 glass sticky top-0 z-50"><div className="max-w-7xl mx-auto px-4 sm:px-6 py-4"><div className="flex items-center justify-between"><SecBriefLogo size="md" showText tagline="Explain the risk · Enforce the fix" /><Linkhref="/signup"className="text-sm px-4 py-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 transition-colors"
12347 unmodified lines12131415161718import React from "react";export function LandingPage({ onStart }: { onStart: () => void }) {return (7 unmodified lines<div className="relative z-10 max-w-4xl w-full flex flex-col items-center">{/* Logo/Badge */}<div className="mb-8 flex items-center gap-3 px-4 py-2 rounded-full bg-slate-900/80 border border-slate-800 backdrop-blur-md animate-in fade-in slide-in-from-top-4 duration-1000"><div className="w-6 h-6 rounded bg-gradient-to-br from-emerald-400 to-teal-600 flex items-center justify-center text-[10px] font-black text-white">SB</div><span className="text-xs font-bold text-slate-300 tracking-widest uppercase">SecBrief — AI Safety Agent</span></div>123457 unmodified lines13141516171819import React from "react";import { SecBriefLogo } from "@/components/SecBriefLogo";export function LandingPage({ onStart }: { onStart: () => void }) {return (7 unmodified lines<div className="relative z-10 max-w-4xl w-full flex flex-col items-center">{/* Logo/Badge */}<div className="mb-8 flex items-center gap-3 px-4 py-2 rounded-full bg-slate-900/80 border border-slate-800 backdrop-blur-md animate-in fade-in slide-in-from-top-4 duration-1000"><SecBriefLogo size="sm" /><span className="text-xs font-bold text-slate-300 tracking-widest uppercase">SecBrief — AI Safety Agent</span></div>
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576import type { SVGProps } from "react";
const sizes = { sm: 24, md: 40, lg: 56,} as const;
type LogoSize = keyof typeof sizes;
type SecBriefLogoProps = { size?: LogoSize; className?: string; showText?: boolean; tagline?: string;};
function LogoMark({ size, className, ...props }: SVGProps<SVGSVGElement> & { size: number }) { return ( <svg width={size} height={size} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" className={className} aria-hidden {...props} > <defs> <linearGradient id="sb-logo" x1="4" y1="2" x2="28" y2="30" gradientUnits="userSpaceOnUse"> <stop stopColor="#f59e0b" /> <stop offset="1" stopColor="#10b981" /> </linearGradient> </defs> <rect width="32" height="32" rx="8" fill="url(#sb-logo)" /> <path d="M16 7.5c-4.2 2.4-7 4.2-7 8.2 0 3.1 2.1 5.8 5.2 7.1-.9-1.4-1.4-3-1.4-4.6 0-4.8 3.2-7.2 3.2-10.7 0-1.1-.3-2.1-.8-3zm0 17c4.2-2.4 7-4.2 7-8.2 0-3.1-2.1-5.8-5.2-7.1.9 1.4 1.4 3 1.4 4.6 0 4.8-3.2 7.2-3.2 10.7 0 1.1.3 2.1.8 3z" fill="#fff" fillOpacity={0.95} /> <path d="M11.5 12.5h9M11.5 16h7.5M11.5 19.5h9" stroke="#fff" strokeWidth="1.6" strokeLinecap="round" strokeOpacity={0.35} /> </svg> );}
export function SecBriefLogo({ size = "md", className = "", showText = false, tagline }: SecBriefLogoProps) { const px = sizes[size];
if (!showText) { return ( <LogoMark size={px} className={`shrink-0 shadow-lg shadow-emerald-500/20 ${className}`} /> ); }
return ( <div className={`flex items-center gap-3 ${className}`}> <LogoMark size={px} className="shrink-0 shadow-lg shadow-emerald-500/20" /> <div> <h1 className="text-xl font-bold tracking-tight"> Sec<span className="text-emerald-400">Brief</span> </h1> {tagline && <p className="text-xs text-slate-500">{tagline}</p>} </div> </div> );}frontend/public/icon.svgAdded
frontend/src/app/layout.tsx+4
frontend/src/app/signup/page.tsx+3-16
frontend/src/components/Header.tsx+2-11
frontend/src/components/LandingPage.tsx+2-1
frontend/src/components/SecBriefLogo.tsxAdded+76