Skip to content

Commit

Permalink
highlight video feature
Browse files Browse the repository at this point in the history
  • Loading branch information
abi committed Mar 8, 2024
1 parent 28d33a4 commit 3c97a40
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/src/components/ImageUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { useState, useEffect, useMemo } from "react";
import { useDropzone } from "react-dropzone";
// import { PromptImage } from "../../../types";
import { toast } from "react-hot-toast";
import { URLS } from "../urls";
import { Badge } from "./ui/badge";

const baseStyle = {
flex: 1,
Expand Down Expand Up @@ -157,10 +159,16 @@ function ImageUpload({ setReferenceImages }: Props) {
<input {...getInputProps()} />
<p className="text-slate-700 text-lg">
Drag & drop a screenshot here, <br />
or paste from clipboard, <br />
or click to upload
</p>
</div>
<div className="text-center text-sm text-slate-800 mt-4">
<Badge>New!</Badge> Upload a screen recording in .mp4 or .mov format to
clone a whole app (experimental).{" "}
<a className="underline" href={URLS["intro-to-video"]} target="_blank">
Learn more.
</a>
</div>
</section>
);
}
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/urls.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const URLS = {
"intro-to-video":
"https://github.com/abi/screenshot-to-code/blob/main/blog/video-to-app.md",
};

0 comments on commit 3c97a40

Please sign in to comment.