From 95966cbb9354ef8dc384164e291be5ebc85d21e6 Mon Sep 17 00:00:00 2001 From: Justin Dhillon Date: Sun, 19 Nov 2023 15:19:42 -0800 Subject: [PATCH 1/7] better introduction --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a8f7ec0..0a3e30c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# screenshot-to-code +# Screenshot-to-Code: Transform Screenshots into HTML & Tailwind CSS -This is a simple app that converts a screenshot to HTML/Tailwind CSS. It uses GPT-4 Vision to generate the code, and DALL-E 3 to generate similar looking images. +Welcome to Screenshot-to-Code, an innovative application that seamlessly converts screenshots into HTML and Tailwind CSS code. Powered by the cutting-edge GPT-4 Vision and DALL-E 3 technologies, this tool is your go-to solution for rapid web development and design. https://github.com/abi/screenshot-to-code/assets/23818/6cebadae-2fe3-4986-ac6a-8fb9db030045 From 5573e9e453e0f0672f4719c2941af07cd88f00bb Mon Sep 17 00:00:00 2001 From: Justin Dhillon Date: Sun, 19 Nov 2023 15:20:34 -0800 Subject: [PATCH 2/7] try it out header --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0a3e30c..bac353d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ https://github.com/abi/screenshot-to-code/assets/23818/6cebadae-2fe3-4986-ac6a-8 See [Examples](#examples) section below for more demos. +## 🚀 Try It Out! + 🆕 [Try it here](https://picoapps.xyz/free-tools/screenshot-to-code) (bring your own OpenAI key - **your key must have access to GPT-4 Vision. See [FAQ](#faqs) section below for details**). Or see [Getting Started](#getting-started) below for local install instructions. ## Updates From 933c97c74867482832f8d6dea9e7f5de99d5b3e8 Mon Sep 17 00:00:00 2001 From: Justin Dhillon Date: Sun, 19 Nov 2023 15:21:14 -0800 Subject: [PATCH 3/7] better update header --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bac353d..b3ef668 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ See [Examples](#examples) section below for more demos. 🆕 [Try it here](https://picoapps.xyz/free-tools/screenshot-to-code) (bring your own OpenAI key - **your key must have access to GPT-4 Vision. See [FAQ](#faqs) section below for details**). Or see [Getting Started](#getting-started) below for local install instructions. -## Updates +## 🌟 Recent Updates * Nov 16 - Added a setting to disable DALL-E image generation if you don't need that * Nov 16 - View code directly within the app From 9504d2044e2cf83dfb500c927f4c78b76c07a68e Mon Sep 17 00:00:00 2001 From: Justin Dhillon Date: Sun, 19 Nov 2023 15:24:06 -0800 Subject: [PATCH 4/7] better getting started header --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b3ef668..a39363c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ See [Examples](#examples) section below for more demos. * Nov 15 - 🔥 You can now instruct the AI to update the code as you wish. Useful if the AI messed up some styles or missed a section. -## Getting Started +## 🛠 Getting Started The app has a React/Vite frontend and a FastAPI backend. You will need an OpenAI API key with access to the GPT-4 Vision API. From 1847d6d3c7dc337c8c83947a1ac9e5b51b87c250 Mon Sep 17 00:00:00 2001 From: Justin Dhillon Date: Sun, 19 Nov 2023 15:24:57 -0800 Subject: [PATCH 5/7] better example header --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a39363c..3c183a7 100644 --- a/README.md +++ b/README.md @@ -43,13 +43,13 @@ Open http://localhost:5173 to use the app. If you prefer to run the backend on a different port, update VITE_WS_BACKEND_URL in `frontend/.env.local` -## FAQs +## 🙋‍♂️ FAQs * **I'm running into an error when setting up the backend. How can I fix it?** [Try this](https://github.com/abi/screenshot-to-code/issues/3#issuecomment-1814777959). If that still doesn't work, open an issue. * **How do I get an OpenAI API key that has the GPT4 Vision model available?** Create an OpenAI account. And then, you need to buy at least $1 worth of credit on the [Billing dashboard](https://platform.openai.com/account/billing/overview). * **How can I provide feedback?** For feedback, feature requests and bug reports, open an issue or ping me on [Twitter](https://twitter.com/_abi_). -## Examples +## 📚 Examples **NYTimes** From 15f0a35afd188f708a9e6212c37c3158d38119f8 Mon Sep 17 00:00:00 2001 From: Justin Dhillon Date: Sun, 19 Nov 2023 15:25:17 -0800 Subject: [PATCH 6/7] better hosted version header --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c183a7..49fcd2d 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,6 @@ https://github.com/abi/screenshot-to-code/assets/23818/503eb86a-356e-4dfc-926a-d https://github.com/abi/screenshot-to-code/assets/23818/3fec0f77-44e8-4fb3-a769-ac7410315e5d -## Hosted Version +## 🌍 Hosted Version 🆕 [Try it here](https://picoapps.xyz/free-tools/screenshot-to-code) (bring your own OpenAI key - **your key must have access to GPT-4 Vision. See [FAQ](#faqs) section for details**). Or see [Getting Started](#getting-started) for local install instructions. From 42325e2a8bda0abbfb60ce001f2997d16e902913 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Sun, 19 Nov 2023 21:05:59 -0500 Subject: [PATCH 7/7] revert some changes --- README.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 49fcd2d..2376f72 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Screenshot-to-Code: Transform Screenshots into HTML & Tailwind CSS +# screenshot-to-code -Welcome to Screenshot-to-Code, an innovative application that seamlessly converts screenshots into HTML and Tailwind CSS code. Powered by the cutting-edge GPT-4 Vision and DALL-E 3 technologies, this tool is your go-to solution for rapid web development and design. +This is a simple app that converts a screenshot to HTML/Tailwind CSS. It uses GPT-4 Vision to generate the code, and DALL-E 3 to generate similar looking images. https://github.com/abi/screenshot-to-code/assets/23818/6cebadae-2fe3-4986-ac6a-8fb9db030045 @@ -12,10 +12,9 @@ See [Examples](#examples) section below for more demos. ## 🌟 Recent Updates -* Nov 16 - Added a setting to disable DALL-E image generation if you don't need that -* Nov 16 - View code directly within the app -* Nov 15 - 🔥 You can now instruct the AI to update the code as you wish. Useful if the AI messed up some styles or missed a section. - +- Nov 16 - Added a setting to disable DALL-E image generation if you don't need that +- Nov 16 - View code directly within the app +- Nov 15 - 🔥 You can now instruct the AI to update the code as you wish. Useful if the AI messed up some styles or missed a section. ## 🛠 Getting Started @@ -45,16 +44,16 @@ If you prefer to run the backend on a different port, update VITE_WS_BACKEND_URL ## 🙋‍♂️ FAQs -* **I'm running into an error when setting up the backend. How can I fix it?** [Try this](https://github.com/abi/screenshot-to-code/issues/3#issuecomment-1814777959). If that still doesn't work, open an issue. -* **How do I get an OpenAI API key that has the GPT4 Vision model available?** Create an OpenAI account. And then, you need to buy at least $1 worth of credit on the [Billing dashboard](https://platform.openai.com/account/billing/overview). -* **How can I provide feedback?** For feedback, feature requests and bug reports, open an issue or ping me on [Twitter](https://twitter.com/_abi_). +- **I'm running into an error when setting up the backend. How can I fix it?** [Try this](https://github.com/abi/screenshot-to-code/issues/3#issuecomment-1814777959). If that still doesn't work, open an issue. +- **How do I get an OpenAI API key that has the GPT4 Vision model available?** Create an OpenAI account. And then, you need to buy at least $1 worth of credit on the [Billing dashboard](https://platform.openai.com/account/billing/overview). +- **How can I provide feedback?** For feedback, feature requests and bug reports, open an issue or ping me on [Twitter](https://twitter.com/_abi_). ## 📚 Examples **NYTimes** -| Original | Replica | -|----------|---------| +| Original | Replica | +| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | | ![Original](https://github.com/abi/screenshot-to-code/assets/23818/01b062c2-f39a-46dd-84ca-bec6c986463a) | ![Replica](https://github.com/abi/screenshot-to-code/assets/23818/e1f662b6-68f7-4578-a64d-ea4be52e31f5) | **Instagram page (with not Taylor Swift pics)**