Skip to content

Commit e22c5ce

Browse files
committed
fix style
1 parent 470fd23 commit e22c5ce

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

examples/agents-researcher/app/components/agent-block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const AgentBlock = ({
1717
return (
1818
<button
1919
className={cx(
20-
'aspect-[3] w-1/3 bg-white border-2 flex items-center justify-center text-opacity-60 rounded-xl',
20+
' bg-white border-2 size-14 flex items-center justify-center text-opacity-60 rounded-xl',
2121
agentInfoDisplay === name ? 'border-purple-400' : 'border-gray-300'
2222
)}
2323
onClick={() => setAgentInfoDisplay(name)}

examples/agents-researcher/app/components/agent-info.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export const AgentInfo = ({
6666
displayCode && 'rotate-180'
6767
)}
6868
/>
69-
<label className="text-sm font-semibold">{name} Agent Code</label>
69+
<label className="">{name} Agent Code</label>
7070
</button>
7171
{displayCode && (
72-
<CodeBlock className="bg-zinc-800 p-3 rounded-xl language-javascript">
72+
<CodeBlock className="bg-zinc-800 p-3 rounded-xl !text-sm language-javascript">
7373
{code}
7474
</CodeBlock>
7575
)}

examples/agents-researcher/app/page.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const Page = () => {
4343
const [agentInfoDisplay, setAgentInfoDisplay] = useState<AgentName | false>(
4444
false
4545
);
46-
const [currentStep, setCurrentStep] = useState(0);
46+
const [currentStep, setCurrentStep] = useState(4);
4747

4848
// form submit handler
4949
const handleSend = async (e: FormEvent<HTMLFormElement>) => {
@@ -195,9 +195,9 @@ const Page = () => {
195195
{/* header */}
196196
<header className="bg-zinc-50 text-center">
197197
<div className="mx-auto max-w-screen-sm px-6 py-12">
198-
<h1 className="text-3xl font-bold">Cross Reference Agent</h1>
198+
<h1 className="text-2xl font-bold">Cross Reference Agent</h1>
199199

200-
<div className="mt-2 text-lg text-zinc-500">
200+
<div className="mt-2 text-zinc-500">
201201
This is a simple example to demonstrate how to use
202202
<WorkflowIcon size={18} className=" ml-2 inline-flex" /> Upstash
203203
Workflow Agents to cross-reference information from different
@@ -206,7 +206,7 @@ const Page = () => {
206206

207207
<div className="flex justify-center items-center gap-2 mt-4">
208208
<a
209-
className="inline-flex items-center gap-1 h-9 pl-3 pr-4 bg-black text-white rounded-lg"
209+
className="inline-flex items-center gap-1 h-8 pl-3 pr-4 bg-black text-white rounded-lg hover:opacity-80"
210210
href="https://upstash.com/docs/qstash/workflow/quickstarts/vercel-nextjs"
211211
target="_blank"
212212
>
@@ -230,7 +230,7 @@ const Page = () => {
230230
Docs
231231
</a>
232232
<a
233-
className="inline-flex items-center gap-1 h-9 pl-3 pr-4 bg-black text-white rounded-lg"
233+
className="inline-flex items-center gap-1 h-8 pl-3 pr-4 bg-black text-white rounded-lg hover:opacity-80"
234234
href="https://github.com/upstash/workflow-js/tree/main/examples/agents-researcher"
235235
>
236236
<svg
@@ -321,8 +321,8 @@ const Page = () => {
321321
>
322322
<Img
323323
src="/icons/wikipedia.png"
324-
width={44}
325-
height={44}
324+
width={34}
325+
height={34}
326326
alt="Wikipedia"
327327
className={
328328
agentStates['Wikipedia'] === false
@@ -339,8 +339,8 @@ const Page = () => {
339339
>
340340
<Img
341341
src="/icons/wolfram-alpha.png"
342-
width={48}
343-
height={48}
342+
width={40}
343+
height={40}
344344
alt="WolframAlpha"
345345
className={
346346
agentStates['WolframAlpha'] === false
@@ -357,8 +357,8 @@ const Page = () => {
357357
>
358358
<Img
359359
src="/icons/exa.jpg"
360-
width={38}
361-
height={38}
360+
width={30}
361+
height={30}
362362
alt="Exa"
363363
className={
364364
agentStates['Exa'] === false
@@ -414,7 +414,7 @@ const Page = () => {
414414
{currentStep > 3 && (
415415
<StepContent>
416416
<a
417-
className="inline-flex items-center gap-1 px-3 py-2 rounded-md bg-purple-500 text-white hover:bg-purple-400"
417+
className="inline-flex items-center gap-1 h-8 px-4 rounded-md bg-purple-500 text-white hover:bg-purple-400"
418418
href="https://console.upstash.com/qstash?tab=workflow"
419419
>
420420
<svg
@@ -437,7 +437,7 @@ const Page = () => {
437437
</a>
438438

439439
<Img
440-
className="block mt-4"
440+
className="block mt-8"
441441
src="/screenshot.png"
442442
width={1564}
443443
height={476}

0 commit comments

Comments
 (0)