Skip to content

Commit

Permalink
Merge pull request #7 from sparrow-js/readme-feature
Browse files Browse the repository at this point in the history
Readme feature
  • Loading branch information
sparrow-js authored Jan 7, 2024
2 parents 13cc2f3 + 3ae30e9 commit 19adaa5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/components/SettingsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ function SettingsDialog({ settings, setSettings }: Props) {
})
}} className="flex item-center" color="indigo" defaultValue={settings.llm}>
<Label className="flex item-center" htmlFor="openai-llm">
<span className="mr-2">openai</span>
<span className="mr-2">OpenAI</span>
<RadioGroupItem value="openai" id="openai-llm"/>
</Label>
<Label className="flex item-center" htmlFor="gemini-llm">
<span className="mr-2">gemini</span>
<span className="mr-2">Gemini</span>
<RadioGroupItem value="gemini" id="gemini-llm"/>
</Label>
</RadioGroup>
Expand Down
2 changes: 1 addition & 1 deletion components/components/history/HistoryDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function HistoryDisplay({
<div className="bg-[length:160px_100px] bg-no-repeat bg-center w-full h-[80px]"
style={
{
backgroundImage: `url(${item.screenshot || 'https://placehold.co/600x400/png'})`
backgroundImage: `url(${item.screenshot || 'https://www.ancodeai.com/placeholder.svg'})`
}
}></div>
<div className="flex gap-x-1 truncate">
Expand Down
6 changes: 3 additions & 3 deletions service/events/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ padding, margin, border, etc. Match the colors and sizes exactly.
- Use the exact text from the screenshot.
- Do not add comments in the code such as "<!-- Add other navigation links as needed -->" and "<!-- ... other news items ... -->" in place of writing the full code. WRITE THE FULL CODE.
- Repeat elements as needed to match the screenshot. For example, if there are 15 items, the code should have 15 items. DO NOT LEAVE comments like "<!-- Repeat for each news item -->" or bad things will happen.
- For images, use placeholder images from /placeholder.svg and include a detailed description of the image in the alt text so that an image generation AI can generate the image later.
- For images, use placeholder images from https://www.ancodeai.com/placeholder.svg and include a detailed description of the image in the alt text so that an image generation AI can generate the image later.
In terms of libraries,
Expand All @@ -33,7 +33,7 @@ using Tailwind, HTML and JS.
padding, margin, border, etc. Match the colors and sizes exactly.
- Do not add comments in the code such as "<!-- Add other navigation links as needed -->" and "<!-- ... other news items ... -->" in place of writing the full code. WRITE THE FULL CODE.
- Repeat elements as needed to match the detailed description. For example, if there are 15 items, the code should have 15 items. DO NOT LEAVE comments like "<!-- Repeat for each news item -->" or bad things will happen.
- For images, use placeholder images from /placeholder.svg and include a detailed description of the image in the alt text so that an image generation AI can generate the image later.
- For images, use placeholder images from https://www.ancodeai.com/placeholder.svg and include a detailed description of the image in the alt text so that an image generation AI can generate the image later.
In terms of libraries,
Expand Down Expand Up @@ -83,7 +83,7 @@ padding, margin, border, etc. Match the colors and sizes exactly.
- Use the exact text from the screenshot.
- Do not add comments in the code such as "<!-- Add other navigation links as needed -->" and "<!-- ... other news items ... -->" in place of writing the full code. WRITE THE FULL CODE.
- Repeat elements as needed to match the screenshot. For example, if there are 15 items, the code should have 15 items. DO NOT LEAVE comments like "<!-- Repeat for each news item -->" or bad things will happen.
- For images, use placeholder images from /placeholder.svg and include a detailed description of the image in the alt text so that an image generation AI can generate the image later.
- For images, use placeholder images from https://www.ancodeai.com/placeholder.svg and include a detailed description of the image in the alt text so that an image generation AI can generate the image later.
In terms of libraries,
Expand Down

0 comments on commit 19adaa5

Please sign in to comment.