sentimind / src /app /icon.tsx
anggars's picture
Sync from GitHub Actions: e01f9df8b054a5718601dd513fd3516293f9eac8
0630ed4 verified
// src/app/icon.tsx
import { ImageResponse } from 'next/og';
// Route segment config
export const runtime = 'edge';
// Image metadata
export const size = {
width: 32,
height: 32,
};
export const contentType = 'image/png';
// Image generation
export default function Icon() {
return new ImageResponse(
(
// Container Background
<div
style={{
fontSize: 24,
background: '#ea580c', // Warna orange-600 (Sesuai Navbar)
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
color: 'white',
borderRadius: '8px', // Rounded biar tidak kaku
}}
>
{/* SVG BrainCircuit (Official Lucide Paths) */}
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
{/* Path 1: Bagian Kiri Otak */}
<path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" />
{/* Path 2: Bagian Kanan Otak */}
<path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" />
{/* Path 3: Koneksi Tengah */}
<path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
{/* Path 4-9: Sirkuit / Nodes Kecil */}
<path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
<path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
<path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
<path d="M19.938 10.5a4 4 0 0 1 .585.396" />
<path d="M6 18a4 4 0 0 1-1.97-1.364" />
<path d="M17.97 16.636A4 4 0 0 1 16 18" />
</svg>
</div>
),
// Options
{
...size,
}
);
}