Skip to content

Commit

Permalink
fix/style: repo link, github link above
Browse files Browse the repository at this point in the history
  • Loading branch information
danicunhac committed May 22, 2023
1 parent fbb477d commit b24a011
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,33 @@ export default async function Home() {
const joke = await getTodaysJoke();

return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<div className="flex flex-col items-center">
<main className="flex min-h-screen flex-col items-center py-12 px-24">
<a
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors self-end"
target="_blank"
rel="noopener noreferrer"
>
<h2 className={`flex mb-3 text-2xl font-semibold`}>
<Image
src="/ri_github-fill.svg"
width={24}
height={24}
alt="Github Logo"
/>
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
</h2>
</a>
<div className="flex flex-col items-center mt-28">
<h2 className={`mb-3 text-4xl font-semibold text-red-700`}>
The Daily Dad Joke
</h2>
<p className="opacity-50">
AI generated Dad joke, one joke a day, cause dads are funny, right?
</p>
</div>
<p className="italic">{`"${joke}" - Dad`}</p>
<div className="mb-32 grid text-center lg:mb-0 lg:grid-cols-4 lg:text-left">
<a
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:dark:border-neutral-700gitß"
target="_blank"
rel="noopener noreferrer"
>
<h2 className={`flex mb-3 text-2xl font-semibold`}>
<Image
src="/ri_github-fill.svg"
width={24}
height={24}
alt="Github Logo"
/>
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
</h2>
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
Check out this project on Github!
</p>
</a>
<p className="italic mt-24">{`"${joke.trim()}" - Dad`}</p>
</div>
</main>
);
Expand Down

0 comments on commit b24a011

Please sign in to comment.