Skip to content

Commit

Permalink
made prompt more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Jan 15, 2023
1 parent cc8ef0d commit bcb3487
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const Home: NextPage = () => {
</Head>

<Header />
<main className="flex flex-1 w-full flex-col items-center justify-center text-center px-4 mt-12">
<main className="flex flex-1 w-full flex-col items-center justify-center text-center px-4 mt-12 sm:mt-20">
<a
className="flex max-w-fit items-center justify-center space-x-2 rounded-full border border-gray-300 bg-white px-4 py-2 text-sm text-gray-600 shadow-md transition-colors hover:bg-gray-100 mb-5"
href="https://github.com/vercel/twitter-bio-generator"
Expand Down Expand Up @@ -193,12 +193,12 @@ const Home: NextPage = () => {
</h2>
<div className="space-y-8 flex flex-col items-center justify-center max-w-xl mx-auto">
{generatedBios
.substring(5)
.substring(generatedBios.indexOf("1") + 3)
.split("2.")
.map((generatedBio) => {
return (
<div
className="bg-white rounded-xl shadow-md px-3 py-4 hover:bg-gray-100 transition cursor-copy border"
className="bg-white rounded-xl shadow-md p-4 hover:bg-gray-100 transition cursor-copy border"
onClick={() => {
navigator.clipboard.writeText(generatedBio);
toast("Bio copied to clipboard", {
Expand Down

0 comments on commit bcb3487

Please sign in to comment.