Yash-js commited on
Commit
1868429
·
1 Parent(s): 1382dae

Upload zippy-train.jsonl

Browse files
Files changed (1) hide show
  1. zippy-train.jsonl +5 -0
zippy-train.jsonl ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {"text": "### Human: convert this code snippet into react, taiwind code \n : <div\n class=\"w-[186px] h-12 px-8 py-[13px] bg-sky-700 rounded-[50px] shadow justify-center items-center gap-2 inline-flex\">\n <div class=\"w-px h-px left-[-33px] top-[80px] absolute\">\n <div class=\"w-px h-px left-0 top-[1px] absolute bg-zinc-300 rounded-full\"></div>\n <div class=\"w-[482px] h-[482px] left-[-240px] top-[-240px] absolute bg-sky-500 bg-opacity-0 rounded-full\"></div>\n </div>\n <div class=\"text-white text-sm font-normal leading-snug\">Take Assessment</div>\n</div>\n ### Assistant: {\"componentsList\": [\"TakeAssessment\"], \"componentsCode\": [{\"name\": \"TakeAssessment\", \"code\": \"import React from 'react';\\n\\nconst TakeAssessment = ({buttonText}) => {\\n return (\\n <button\\n class=\\\"w-[186px] h-12 px-8 py-[13px] bg-sky-700 rounded-[50px] shadow justify-center items-center gap-2 inline-flex\\\">\\n <div class=\\\"text-white text-sm font-normal leading-snug\\\">{buttonText}</div>\\n </button>\\n )\\n}\\nexport default TakeAssessment;\"}]}"}
2
+ {"text": "### Human: convert this code snippet into react, taiwind code \n : <div class=\"bg-sky-100 border border-stone-300 flex-col gap-2 h-[140px] inline-flex items-center justify-center p-6 rounded-3xl w-[391.33px]\"><div class=\"self-stretch text-center font-medium leading-loose text-neutral-950 text-xl\">Workflow</div><div class=\"self-stretch text-center h-[52px]\"><span>This section incorporates skills relating to the management of projects, jobs and </span><span></span><span>tasks for which you are</span><span> </span><span>responsible now</span><span> </span><span>or you may have responsibility for in the future. Whilst Manager and Partners are ultimately responsible for workflow, all employees should take responsibility for their jobs and tasks</span></div></div> ### Assistant: ` {\"componentsList\": [\"Card\"], \"componentsCode\": [{\"name\": \"Card\", \"code\": \"import React from 'react'; export default function Card({title,description}) {<div class=\"bg-sky-100 border border-stone-300 flex-col gap-2 h-[140px] inline-flex items-center justify-center p-6 rounded-3xl w-[391.33px]\"><div class=\"font-medium leading-loose self-stretch text-center text-neutral-950 text-xl\">{title}</div><span>{description}</span></div>}\"}]}"}
3
+ {"text": "### Human: convert this code snippet into react, taiwind code \n : <div className=\"w-[1174px] h-[236px] py-6 bg-white rounded-[48px] border border-stone-300 flex-col justify-center items-start gap-2 inline-flex\"> <div className=\"self-stretch px-6 pt-1 pb-4 border-b border-stone-300 justify-start items-center gap-2 inline-flex\"> <div className=\"text-neutral-950 text-xl font-medium leading-loose\">Key Focus area for professional development:</div> </div> <div className=\"self-stretch h-32 px-6 flex-col justify-start items-start gap-2 flex\"> <div className=\"w-[542px] text-neutral-700 text-base font-normal leading-relaxed\">1. Understanding of client jobs and WIP budget</div> <div className=\"w-[542px] text-neutral-700 text-base font-normal leading-relaxed\">2. Proactive management of workflow bottlenecks</div> <div className=\"w-[542px] text-neutral-700 text-base font-normal leading-relaxed\">3. Getting work completed within WIP budge</div> <div className=\"w-[542px] text-neutral-700 text-base font-normal leading-relaxed\">4. Getting work completed on time, within deadlines</div> </div> </div> ### Assistant: {\"componentsList\": [\"MainComponent.js\", \"FocusAreaItem.js\"], \"componentsCode\": [{\"name\": \"MainComponent.js\", \"code\": \"// MainComponent.js\nimport React from 'react';\nimport FocusAreaItem from './FocusAreaItem';\n\nconst MainComponent = () => {\n // You can manage the focus area data here and pass it as props to the FocusAreaItem component\n const focusAreas = [\n \"Understanding of client jobs and WIP budget\",\n \"Proactive management of workflow bottlenecks\",\n \"Getting work completed within WIP budget\",\n \"Getting work completed on time, within deadlines\",\n ];\n\n return (\n <div className=\"w-[1174px] h-[236px] py-6 bg-white rounded-[48px] border border-stone-300 flex-col justify-center items-start gap-2 inline-flex\">\n <div className=\"self-stretch px-6 pt-1 pb-4 border-b border-stone-300 justify-start items-center gap-2 inline-flex\">\n <div className=\"text-neutral-950 text-xl font-medium leading-loose\">Key Focus area for professional development:</div>\n </div>\n <div className=\"self-stretch h-32 px-6 flex-col justify-start items-start gap-2 flex\">\n {focusAreas.map((area, index) => (\n <FocusAreaItem key={index} text={area} />\n ))}\n </div>\n </div>\n );\n};\n\nexport default MainComponent;\"}, {\"name\": \"FocusAreaItem.js\", \"code\": \"// FocusAreaItem.js\nimport React from 'react';\n\nconst FocusAreaItem = ({ text }) => {\n return (\n <div className=\"w-[542px] text-neutral-700 text-base font-normal leading-relaxed\">\n {text}\n </div>\n );\n};\n\nexport default FocusAreaItem;\"}]}"}
4
+ {"text": "### Human: convert this code snippet into react, taiwind code \n : <div class=\"w-[556px] h-[518px] p-6 bg-white rounded-[48px] shadow flex-col justify-center items-start gap-4 inline-flex\">\n <div class=\"self-stretch justify-between items-center gap-4 inline-flex\">\n <div class=\"text-neutral-950 text-2xl font-medium leading-[38px]\">Share</div>\n <div class=\"p-2 rounded-[48px] justify-center items-center gap-2 flex\">\n <div class=\"p-1 justify-center items-center gap-2 flex\"></div>\n </div>\n </div>\n <div class=\"self-stretch h-[124px] pb-4 border-b border-stone-300 flex-col justify-center items-start gap-2 flex\">\n <div class=\"flex-col justify-center items-start gap-1 flex\">\n <div class=\"text-neutral-950 text-base font-medium leading-relaxed\">Direct Link</div>\n <div class=\"text-neutral-700 text-sm font-normal leading-snug\">You can share the direct link.</div>\n </div>\n <div class=\"self-stretch justify-start items-start gap-4 inline-flex\">\n <div class=\"grow shrink basis-0 h-12 px-4 py-[11px] bg-zinc-100 rounded-[32px] border border-stone-300 justify-start items-center gap-2 flex\">\n <div class=\"text-neutral-700 text-base font-medium leading-relaxed\">cpdforaccountant.co</div>\n </div>\n <div class=\"px-8 py-[11px] rounded-[40px] border border-red-600 justify-start items-center gap-2 flex\">\n <div class=\"text-red-600 text-base font-medium leading-relaxed\">Copy</div>\n </div>\n </div>\n </div>\n <div class=\"flex-col justify-center items-start gap-10 flex\">\n <div class=\"flex-col justify-start items-start gap-4 flex\">\n <div class=\"flex-col justify-start items-start gap-2 flex\">\n <div class=\"text-neutral-950 text-base font-medium leading-relaxed\">Send on email.</div>\n <div class=\"flex-col justify-start items-start gap-2 flex\">\n <div class=\"h-[72px] flex-col justify-start items-start gap-1 flex\">\n <div class=\"text-neutral-700 text-xs font-normal leading-tight\">Subject</div>\n <div class=\"self-stretch px-4 py-[11px] rounded-[32px] border border-stone-300 justify-start items-center gap-2 inline-flex\">\n <div class=\"text-neutral-700 text-base font-medium leading-relaxed\">Your Career Navigator' Scorecard</div>\n </div>\n </div>\n <div class=\"flex-col justify-start items-start gap-1 flex\">\n <div class=\"text-neutral-700 text-xs font-normal leading-tight\">To</div>\n <div class=\"w-[508px] px-1 py-[9px] rounded-[50px] border border-stone-300 justify-start items-center gap-2 inline-flex\">\n <div class=\"pl-4 pr-2 py-0.5 rounded-[32px] justify-start items-center gap-1 flex\">\n <div class=\"text-neutral-400 text-base font-normal leading-relaxed\">Please enter the email address</div>\n </div>\n <div></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"self-stretch px-8 py-[11px] bg-sky-700 rounded-[32px] justify-center items-center gap-2 inline-flex\">\n <div class=\"text-white text-base font-normal leading-relaxed\">Send</div>\n </div>\n </div>\n</div> ### Assistant: {\"componentsList\": [\"MainComponent\", \"HeaderComponent\", \"DirectLinkComponent\", \"EmailSectionComponent\"], \"componentsCode\": [{\"name\": \"MainComponent\", \"code\": \"/* Component1.js - Main Component */\nimport React from 'react';\nimport HeaderComponent from './HeaderComponent';\nimport DirectLinkComponent from './DirectLinkComponent';\nimport EmailSectionComponent from './EmailSectionComponent';\n\nconst MainComponent = () => {\n return (\n <div className=\"w-[556px] h-[518px] p-6 bg-white rounded-[48px] shadow flex-col justify-center items-start gap-4 inline-flex\">\n <HeaderComponent />\n <DirectLinkComponent />\n <EmailSectionComponent />\n </div>\n );\n};\n\nexport default MainComponent;\"}, {\"name\": \"HeaderComponent\", \"code\": \"/* Component2.js - HeaderComponent */\nimport React from 'react';\n\nconst HeaderComponent = () => {\n return (\n <div className=\"self-stretch justify-between items-center gap-4 inline-flex\">\n <div className=\"text-neutral-950 text-2xl font-medium leading-[38px]\">Share</div>\n <div className=\"p-2 rounded-[48px] justify-center items-center gap-2 flex\">\n <div className=\"p-1 justify-center items-center gap-2 flex\"></div>\n </div>\n </div>\n );\n};\n\nexport default HeaderComponent;\"}, {\"name\": \"DirectLinkComponent\", \"code\": \"/* Component3.js - DirectLinkComponent */\nimport React from 'react';\n\nconst DirectLinkComponent = () => {\n return (\n <div className=\"self-stretch h-[124px] pb-4 border-b border-stone-300 flex-col justify-center items-start gap-2 flex\">\n <div className=\"flex-col justify-center items-start gap-1 flex\">\n <div className=\"text-neutral-950 text-base font-medium leading-relaxed\">Direct Link</div>\n <div className=\"text-neutral-700 text-sm font-normal leading-snug\">You can share the direct link.</div>\n </div>\n <div className=\"flex flex-row justify-between\">\n <div className=\"grow shrink basis-0 h-12 px-4 py-[11px] bg-zinc-100 rounded-[32px] border border-stone-300 justify-start items-center gap-2 flex\">\n <div className=\"text-neutral-700 text-base font-medium leading-relaxed\">cpdforaccountant.co</div>\n </div>\n <div className=\"px-8 py-[11px] rounded-[40px] justify-start items-center gap-2 flex\">\n <div className=\"text-red-600 text-base font-medium leading-relaxed\">Copy</div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default DirectLinkComponent;\"}, {\"name\": \"EmailSectionComponent\", \"code\": \"/* Component4.js - EmailSectionComponent */\nimport React, { useState } from 'react';\nimport {Button} from '@/assets'\n\nconst EmailSectionComponent = () => {\n const [subject, setSubject] = useState('');\n const [email, setEmail] = useState('');\n\n const handleSubjectChange = (e) => {\n setSubject(e.target.value);\n };\n\n const handleEmailChange = (e) => {\n setEmail(e.target.value);\n };\n\n const handleSendEmail = () => {\n // Implement the logic to send the email using 'subject' and 'email'\n // For example, you can use 'window.location.href = `mailto:${email}?subject=${subject}`;'\n // Don't forget to handle validation and error cases\n };\n\n return (\n <div className=\"flex-col justify-center items-start gap-10 flex\">\n <div className=\"flex-col justify-start items-start gap-4 flex\">\n <div className=\"flex-col justify-start items-start gap-2 flex\">\n <div className=\"text-neutral-950 text-base font-medium leading-relaxed\">Send on email.</div>\n <div className=\"flex-col justify-start items-start gap-2 flex\">\n <div className=\"h-[72px] flex-col justify-start items-start gap-1 flex\">\n <div className=\"text-neutral-700 text-xs font-normal leading-tight\">Subject</div>\n <div className=\"self-stretch px-4 py-[11px] rounded-[32px] border border-stone-300 justify-start items-center gap-2 inline-flex\">\n <input\n type=\"text\"\n className=\"text-neutral-700 text-base font-medium leading-relaxed w-full outline-none\"\n value={subject}\n onChange={handleSubjectChange}\n />\n </div>\n </div>\n <div className=\"flex-col justify-start items-start gap-1 flex\">\n <div className=\"text-neutral-700 text-xs font-normal leading-tight\">To</div>\n <div className=\"w-[508px] px-1 py-[9px] rounded-[50px] border border-stone-300 justify-start items-center gap-2 inline-flex\">\n <input\n type=\"email\"\n className=\"text-neutral-400 text-base font-normal leading-relaxed w-full outline-none\"\n value={email}\n onChange={handleEmailChange}\n placeholder=\"Please enter the email address\"\n />\n <div></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <Button.Primary onClick={handleSendEmail}>Send</Button>\n </div>\n );\n};\n\nexport default EmailSectionComponent;\"}]}"}
5
+ {"text": "### Human: convert this code snippet into react, taiwind code \n : <div class=\"relative h-[1024px] w-[1440px] bg-white\">\n <div class=\"absolute left-[145px] top-[141px] h-[738px] w-[1150px]\">\n <div class=\"absolute left-[535px] top-[329px] h-20 w-20\">\n <div class=\"absolute left-[0.01px] top-[5px] h-[70px] w-20\"></div>\n </div>\n </div>\n <div class=\"absolute left-[147px] top-[204px] h-[646px] w-[1153px]\">\n <div class=\"absolute left-0 top-0 h-[646px] w-[1153px]\">\n <div class=\"absolute left-0 top-0 h-[646px] w-[1153px] bg-stone-300\"></div>\n <img class=\"absolute left-0 top-0 h-[769px] w-[1153px]\" src=\"https://via.placeholder.com/1153x769\" />\n </div>\n <div class=\"absolute left-0 top-0 h-[646px] w-[1153px] bg-black bg-opacity-10\"></div>\n </div>\n <div class=\"absolute left-[106px] top-[35px] h-[41px] w-[990px]\">\n <div class=\"absolute left-0 top-0 h-[41px] w-[221px]\">\n <div class=\"absolute left-[0.15px] top-[0.45px] h-[40.57px] w-[220.75px]\">\n <div class=\"absolute left-[52.16px] top-[0.13px] text-3xl font-semibold text-neutral-700\">T</div>\n <div class=\"absolute left-[69.37px] top-[0.13px] text-3xl font-semibold text-neutral-700\">H</div>\n <div class=\"absolute left-[91.26px] top-[0.13px] text-3xl font-semibold text-neutral-700\">I</div>\n <div class=\"absolute left-[102.29px] top-[0.13px] text-3xl font-semibold text-neutral-700\">N</div>\n <div class=\"absolute left-[124.47px] top-[0.13px] text-3xl font-semibold text-neutral-700\">K</div>\n <div class=\"absolute left-[145.03px] top-[0.13px] text-3xl font-semibold text-neutral-700\">G</div>\n <div class=\"absolute left-[167.38px] top-[0.13px] text-3xl font-semibold text-neutral-700\">R</div>\n <div class=\"absolute left-[189.71px] top-[0.13px] text-3xl font-semibold text-neutral-700\">I</div>\n <div class=\"absolute left-[200.75px] top-[0.13px] text-3xl font-semibold text-neutral-700\">D</div>\n </div>\n </div>\n <div class=\"absolute left-[508px] top-[7px] inline-flex h-[26px] w-[482px] items-center justify-center gap-10\">\n <div class=\"text-base font-normal leading-relaxed text-stone-500\">Home</div>\n <div class=\"text-base font-normal leading-relaxed text-zinc-900 opacity-60\">About Us</div>\n <div class=\"text-base font-bold tracking-tight text-neutral-800\">Services</div>\n <div class=\"text-base font-normal leading-relaxed text-zinc-900 opacity-60\">Careers</div>\n <div class=\"text-base font-normal leading-relaxed text-zinc-900 opacity-60\">Insights</div>\n </div>\n </div>\n <div class=\"absolute left-[1163px] top-[28px] h-[54px] w-[175px]\">\n <div class=\"absolute left-0 top-0 h-[54px] w-[175px] rounded-sm border border-sky-700\"></div>\n <div class=\"absolute left-[16px] top-[16px] h-[21px] w-[143px] text-center text-base font-medium tracking-wide text-sky-700\">Get in Touch</div>\n </div>\n</div> ### Assistant: {\"componentsList\": [\"NavComponent\", \"MainComponent\"], \"componentsCode\": [{\"name\": \"NavComponent\", \"code\": \"\nimport React from 'react';\nimport {Logo,Button} from '@/assets/';\n\nconst NavComponent = () => {\nreturn (\n<div className=\"flex flex-row justify-between absolute\">\n <div className=\"w-[221px] h-[41px] left-0 top-0 absolute\">\n <div className=\"w-[220.75px] h-[40.57px] left-[0.15px] top-[0.45px] absolute\">\n <Logo />\n <span className=\"font-semibold text-neutral-700 text-3xl\">\n THINKGRID\n </span>\n </div>\n </div>\n <div className=\"flex flex-row justify-between\">\n <div className=\"w-[482px] h-[26px] left-[508px] top-[7px] absolute justify-center items-center gap-10 inline-flex\">\n <div className=\"text-stone-500 text-base font-normal leading-relaxed\">Home</div>\n <div className=\"opacity-60 text-zinc-900 text-base font-normal leading-relaxed\">About Us</div>\n <div className=\"text-neutral-800 text-base font-bold tracking-tight\">Services</div>\n <div className=\"opacity-60 text-zinc-900 text-base font-normal leading-relaxed\">Careers</div>\n <div className=\"opacity-60 text-zinc-900 text-base font-normal leading-relaxed\">Insights</div>\n </div>\n <div className=\"w-[175px] h-[54px] left-[1163px] top-[28px] absolute\">\n <Button\n className=\"w-[143px] h-[21px] left-[16px] top-[16px] absolute text-center text-sky-700 text-base font-medium tracking-wide\">Get in Touch</Button>\n </div>\n </div>\n</div>\n)\n}\nexport default NavComponent;\"}, {\"name\": \"MainComponent\", \"code\": \"import React from 'react';\nimport NavComponent from './NavComponent';\n\nconst MainComponent = () => {\nreturn (\n<div className=\"flex flex-col w-screen h-full relative\">\n <NavComponent/>\n <div className=\"w-[1153px] h-[646px] left-[147px] top-[204px] absolute\">\n <div className=\"w-[1153px] h-[646px] left-0 top-0 absolute\">\n <div className=\"w-[1153px] h-[646px] left-0 top-0 absolute bg-stone-300\"></div>\n <img className=\"w-[1153px] h-[769px] left-0 top-0 absolute\" src=\"https://via.placeholder.com/1153x769\" />\n </div>\n </div>\n</div>\n)\n}\n\nexport default MainComponent\"}]}"}