Skip to content

Commit d86fb9c

Browse files
committed
feat(UI): show brand logo & primary color in header, dynamic PDF button color
1 parent af8ab62 commit d86fb9c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

web/src/App.jsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,13 @@ function App() {
8787
)}
8888
{data && (
8989
<div>
90-
<h2 className="text-2xl font-semibold mb-3">Generated Prompts</h2>
90+
{/* Brand header with logo and primary color */}
91+
<div className="flex items-center mb-4" style={{ color: data.palette[0] }}>
92+
{data.logo_url && (
93+
<img src={data.logo_url} alt="logo" className="h-12 mr-3" />
94+
)}
95+
<h2 className="text-2xl font-semibold">AI Prompt Pack</h2>
96+
</div>
9197
<ol className="list-decimal list-inside space-y-4 mb-4">
9298
{data.prompts.map((p, i) => (
9399
<li key={i}>
@@ -115,7 +121,8 @@ function App() {
115121
alert('Failed to download PDF.');
116122
}
117123
}}
118-
className="bg-green-600 text-white p-2 rounded"
124+
className="text-white p-2 rounded"
125+
style={{ backgroundColor: data.palette[1] || '#10B981' }}
119126
>
120127
Download PDF
121128
</button>

0 commit comments

Comments
 (0)