text
stringclasses
5 values
### Human: convert this code snippet into react, taiwind code : <div class="w-[186px] h-12 px-8 py-[13px] bg-sky-700 rounded-[50px] shadow justify-center items-center gap-2 inline-flex"> <div class="w-px h-px left-[-33px] top-[80px] absolute"> <div class="w-px h-px left-0 top-[1px] absolute bg-zinc-300 rounded-full"></div> <div class="w-[482px] h-[482px] left-[-240px] top-[-240px] absolute bg-sky-500 bg-opacity-0 rounded-full"></div> </div> <div class="text-white text-sm font-normal leading-snug">Take Assessment</div> </div> ### 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;"}]}
### Human: convert this code snippet into react, taiwind code : <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>}"}]}
### Human: convert this code snippet into react, taiwind code : <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 import React from 'react'; import FocusAreaItem from './FocusAreaItem'; const MainComponent = () => { // You can manage the focus area data here and pass it as props to the FocusAreaItem component const focusAreas = [ "Understanding of client jobs and WIP budget", "Proactive management of workflow bottlenecks", "Getting work completed within WIP budget", "Getting work completed on time, within deadlines", ]; return ( <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"> {focusAreas.map((area, index) => ( <FocusAreaItem key={index} text={area} /> ))} </div> </div> ); }; export default MainComponent;"}, {"name": "FocusAreaItem.js", "code": "// FocusAreaItem.js import React from 'react'; const FocusAreaItem = ({ text }) => { return ( <div className="w-[542px] text-neutral-700 text-base font-normal leading-relaxed"> {text} </div> ); }; export default FocusAreaItem;"}]}
### Human: convert this code snippet into react, taiwind code : <div class="w-[556px] h-[518px] p-6 bg-white rounded-[48px] shadow flex-col justify-center items-start gap-4 inline-flex"> <div class="self-stretch justify-between items-center gap-4 inline-flex"> <div class="text-neutral-950 text-2xl font-medium leading-[38px]">Share</div> <div class="p-2 rounded-[48px] justify-center items-center gap-2 flex"> <div class="p-1 justify-center items-center gap-2 flex"></div> </div> </div> <div class="self-stretch h-[124px] pb-4 border-b border-stone-300 flex-col justify-center items-start gap-2 flex"> <div class="flex-col justify-center items-start gap-1 flex"> <div class="text-neutral-950 text-base font-medium leading-relaxed">Direct Link</div> <div class="text-neutral-700 text-sm font-normal leading-snug">You can share the direct link.</div> </div> <div class="self-stretch justify-start items-start gap-4 inline-flex"> <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"> <div class="text-neutral-700 text-base font-medium leading-relaxed">cpdforaccountant.co</div> </div> <div class="px-8 py-[11px] rounded-[40px] border border-red-600 justify-start items-center gap-2 flex"> <div class="text-red-600 text-base font-medium leading-relaxed">Copy</div> </div> </div> </div> <div class="flex-col justify-center items-start gap-10 flex"> <div class="flex-col justify-start items-start gap-4 flex"> <div class="flex-col justify-start items-start gap-2 flex"> <div class="text-neutral-950 text-base font-medium leading-relaxed">Send on email.</div> <div class="flex-col justify-start items-start gap-2 flex"> <div class="h-[72px] flex-col justify-start items-start gap-1 flex"> <div class="text-neutral-700 text-xs font-normal leading-tight">Subject</div> <div class="self-stretch px-4 py-[11px] rounded-[32px] border border-stone-300 justify-start items-center gap-2 inline-flex"> <div class="text-neutral-700 text-base font-medium leading-relaxed">Your Career Navigator' Scorecard</div> </div> </div> <div class="flex-col justify-start items-start gap-1 flex"> <div class="text-neutral-700 text-xs font-normal leading-tight">To</div> <div class="w-[508px] px-1 py-[9px] rounded-[50px] border border-stone-300 justify-start items-center gap-2 inline-flex"> <div class="pl-4 pr-2 py-0.5 rounded-[32px] justify-start items-center gap-1 flex"> <div class="text-neutral-400 text-base font-normal leading-relaxed">Please enter the email address</div> </div> <div></div> </div> </div> </div> </div> </div> <div class="self-stretch px-8 py-[11px] bg-sky-700 rounded-[32px] justify-center items-center gap-2 inline-flex"> <div class="text-white text-base font-normal leading-relaxed">Send</div> </div> </div> </div> ### Assistant: {"componentsList": ["MainComponent", "HeaderComponent", "DirectLinkComponent", "EmailSectionComponent"], "componentsCode": [{"name": "MainComponent", "code": "/* Component1.js - Main Component */ import React from 'react'; import HeaderComponent from './HeaderComponent'; import DirectLinkComponent from './DirectLinkComponent'; import EmailSectionComponent from './EmailSectionComponent'; const MainComponent = () => { return ( <div className="w-[556px] h-[518px] p-6 bg-white rounded-[48px] shadow flex-col justify-center items-start gap-4 inline-flex"> <HeaderComponent /> <DirectLinkComponent /> <EmailSectionComponent /> </div> ); }; export default MainComponent;"}, {"name": "HeaderComponent", "code": "/* Component2.js - HeaderComponent */ import React from 'react'; const HeaderComponent = () => { return ( <div className="self-stretch justify-between items-center gap-4 inline-flex"> <div className="text-neutral-950 text-2xl font-medium leading-[38px]">Share</div> <div className="p-2 rounded-[48px] justify-center items-center gap-2 flex"> <div className="p-1 justify-center items-center gap-2 flex"></div> </div> </div> ); }; export default HeaderComponent;"}, {"name": "DirectLinkComponent", "code": "/* Component3.js - DirectLinkComponent */ import React from 'react'; const DirectLinkComponent = () => { return ( <div className="self-stretch h-[124px] pb-4 border-b border-stone-300 flex-col justify-center items-start gap-2 flex"> <div className="flex-col justify-center items-start gap-1 flex"> <div className="text-neutral-950 text-base font-medium leading-relaxed">Direct Link</div> <div className="text-neutral-700 text-sm font-normal leading-snug">You can share the direct link.</div> </div> <div className="flex flex-row justify-between"> <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"> <div className="text-neutral-700 text-base font-medium leading-relaxed">cpdforaccountant.co</div> </div> <div className="px-8 py-[11px] rounded-[40px] justify-start items-center gap-2 flex"> <div className="text-red-600 text-base font-medium leading-relaxed">Copy</div> </div> </div> </div> ); }; export default DirectLinkComponent;"}, {"name": "EmailSectionComponent", "code": "/* Component4.js - EmailSectionComponent */ import React, { useState } from 'react'; import {Button} from '@/assets' const EmailSectionComponent = () => { const [subject, setSubject] = useState(''); const [email, setEmail] = useState(''); const handleSubjectChange = (e) => { setSubject(e.target.value); }; const handleEmailChange = (e) => { setEmail(e.target.value); }; const handleSendEmail = () => { // Implement the logic to send the email using 'subject' and 'email' // For example, you can use 'window.location.href = `mailto:${email}?subject=${subject}`;' // Don't forget to handle validation and error cases }; return ( <div className="flex-col justify-center items-start gap-10 flex"> <div className="flex-col justify-start items-start gap-4 flex"> <div className="flex-col justify-start items-start gap-2 flex"> <div className="text-neutral-950 text-base font-medium leading-relaxed">Send on email.</div> <div className="flex-col justify-start items-start gap-2 flex"> <div className="h-[72px] flex-col justify-start items-start gap-1 flex"> <div className="text-neutral-700 text-xs font-normal leading-tight">Subject</div> <div className="self-stretch px-4 py-[11px] rounded-[32px] border border-stone-300 justify-start items-center gap-2 inline-flex"> <input type="text" className="text-neutral-700 text-base font-medium leading-relaxed w-full outline-none" value={subject} onChange={handleSubjectChange} /> </div> </div> <div className="flex-col justify-start items-start gap-1 flex"> <div className="text-neutral-700 text-xs font-normal leading-tight">To</div> <div className="w-[508px] px-1 py-[9px] rounded-[50px] border border-stone-300 justify-start items-center gap-2 inline-flex"> <input type="email" className="text-neutral-400 text-base font-normal leading-relaxed w-full outline-none" value={email} onChange={handleEmailChange} placeholder="Please enter the email address" /> <div></div> </div> </div> </div> </div> </div> <Button.Primary onClick={handleSendEmail}>Send</Button> </div> ); }; export default EmailSectionComponent;"}]}
### Human: convert this code snippet into react, taiwind code : <div class="relative h-[1024px] w-[1440px] bg-white"> <div class="absolute left-[145px] top-[141px] h-[738px] w-[1150px]"> <div class="absolute left-[535px] top-[329px] h-20 w-20"> <div class="absolute left-[0.01px] top-[5px] h-[70px] w-20"></div> </div> </div> <div class="absolute left-[147px] top-[204px] h-[646px] w-[1153px]"> <div class="absolute left-0 top-0 h-[646px] w-[1153px]"> <div class="absolute left-0 top-0 h-[646px] w-[1153px] bg-stone-300"></div> <img class="absolute left-0 top-0 h-[769px] w-[1153px]" src="https://via.placeholder.com/1153x769" /> </div> <div class="absolute left-0 top-0 h-[646px] w-[1153px] bg-black bg-opacity-10"></div> </div> <div class="absolute left-[106px] top-[35px] h-[41px] w-[990px]"> <div class="absolute left-0 top-0 h-[41px] w-[221px]"> <div class="absolute left-[0.15px] top-[0.45px] h-[40.57px] w-[220.75px]"> <div class="absolute left-[52.16px] top-[0.13px] text-3xl font-semibold text-neutral-700">T</div> <div class="absolute left-[69.37px] top-[0.13px] text-3xl font-semibold text-neutral-700">H</div> <div class="absolute left-[91.26px] top-[0.13px] text-3xl font-semibold text-neutral-700">I</div> <div class="absolute left-[102.29px] top-[0.13px] text-3xl font-semibold text-neutral-700">N</div> <div class="absolute left-[124.47px] top-[0.13px] text-3xl font-semibold text-neutral-700">K</div> <div class="absolute left-[145.03px] top-[0.13px] text-3xl font-semibold text-neutral-700">G</div> <div class="absolute left-[167.38px] top-[0.13px] text-3xl font-semibold text-neutral-700">R</div> <div class="absolute left-[189.71px] top-[0.13px] text-3xl font-semibold text-neutral-700">I</div> <div class="absolute left-[200.75px] top-[0.13px] text-3xl font-semibold text-neutral-700">D</div> </div> </div> <div class="absolute left-[508px] top-[7px] inline-flex h-[26px] w-[482px] items-center justify-center gap-10"> <div class="text-base font-normal leading-relaxed text-stone-500">Home</div> <div class="text-base font-normal leading-relaxed text-zinc-900 opacity-60">About Us</div> <div class="text-base font-bold tracking-tight text-neutral-800">Services</div> <div class="text-base font-normal leading-relaxed text-zinc-900 opacity-60">Careers</div> <div class="text-base font-normal leading-relaxed text-zinc-900 opacity-60">Insights</div> </div> </div> <div class="absolute left-[1163px] top-[28px] h-[54px] w-[175px]"> <div class="absolute left-0 top-0 h-[54px] w-[175px] rounded-sm border border-sky-700"></div> <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> </div> </div> ### Assistant: {"componentsList": ["NavComponent", "MainComponent"], "componentsCode": [{"name": "NavComponent", "code": " import React from 'react'; import {Logo,Button} from '@/assets/'; const NavComponent = () => { return ( <div className="flex flex-row justify-between absolute"> <div className="w-[221px] h-[41px] left-0 top-0 absolute"> <div className="w-[220.75px] h-[40.57px] left-[0.15px] top-[0.45px] absolute"> <Logo /> <span className="font-semibold text-neutral-700 text-3xl"> THINKGRID </span> </div> </div> <div className="flex flex-row justify-between"> <div className="w-[482px] h-[26px] left-[508px] top-[7px] absolute justify-center items-center gap-10 inline-flex"> <div className="text-stone-500 text-base font-normal leading-relaxed">Home</div> <div className="opacity-60 text-zinc-900 text-base font-normal leading-relaxed">About Us</div> <div className="text-neutral-800 text-base font-bold tracking-tight">Services</div> <div className="opacity-60 text-zinc-900 text-base font-normal leading-relaxed">Careers</div> <div className="opacity-60 text-zinc-900 text-base font-normal leading-relaxed">Insights</div> </div> <div className="w-[175px] h-[54px] left-[1163px] top-[28px] absolute"> <Button 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> </div> </div> </div> ) } export default NavComponent;"}, {"name": "MainComponent", "code": "import React from 'react'; import NavComponent from './NavComponent'; const MainComponent = () => { return ( <div className="flex flex-col w-screen h-full relative"> <NavComponent/> <div className="w-[1153px] h-[646px] left-[147px] top-[204px] absolute"> <div className="w-[1153px] h-[646px] left-0 top-0 absolute"> <div className="w-[1153px] h-[646px] left-0 top-0 absolute bg-stone-300"></div> <img className="w-[1153px] h-[769px] left-0 top-0 absolute" src="https://via.placeholder.com/1153x769" /> </div> </div> </div> ) } export default MainComponent"}]}

No dataset card yet

Downloads last month
6