add a link to tips

This commit is contained in:
Abi Raja 2024-03-25 14:39:22 -04:00
parent 9465b6780b
commit 08c4132949
2 changed files with 13 additions and 2 deletions

View File

@ -39,6 +39,7 @@ import { CodeGenerationModel } from "./lib/models";
import ModelSettingsSection from "./components/ModelSettingsSection";
import { extractHtml } from "./components/preview/extractHtml";
import useBrowserTabIndicator from "./hooks/useBrowserTabIndicator";
import { URLS } from "./urls";
const IS_OPENAI_DOWN = false;
@ -372,6 +373,15 @@ function App() {
}
/>
<a
className="text-xs underline text-gray-500 text-right"
href={URLS.tips}
target="_blank"
rel="noopener"
>
Tips for better results
</a>
{IS_RUNNING_ON_CLOUD &&
!(settings.openAiApiKey || settings.accessCode) && (
<OnboardingNote />

View File

@ -1,4 +1,5 @@
export const URLS = {
"intro-to-video":
"https://github.com/abi/screenshot-to-code/blob/main/blog/video-to-app.md",
"https://github.com/abi/screenshot-to-code/wiki/Screen-Recording-to-Code",
tips: "https://git.new/s5ywP0e",
};