fix/ai-roadmap
Kamran Ahmed 9 months ago
parent 3daab9fbe6
commit 15c464a8e5
  1. 29
      src/components/GenerateRoadmap/GenerateRoadmap.tsx

@ -372,15 +372,15 @@ export function GenerateRoadmap() {
</span> </span>
)} )}
{!isLoading && ( {!isLoading && (
<div className="flex max-w-[600px] flex-grow flex-col items-center px-5"> <div className="flex max-w-[700px] flex-grow flex-col items-center px-5">
<h1 className="relative self-start text-2xl font-bold sm:text-3xl"> <h1 className="relative self-start text-2xl font-bold sm:text-3xl">
AI Roadmap Generator AI Roadmap Generator
</h1> </h1>
<div className="mt-6 flex w-full items-center justify-between text-sm"> <div className="mt-4 sm:mt-6 flex flex-col gap-2 sm:gap-0 sm:flex-row w-full items-start sm:items-center justify-between text-sm">
<span className="text-gray-800"> <span>
<span <span
className={cn( className={cn(
'inline-block w-[65px] rounded-md border px-0.5 text-center text-sm tabular-nums text-gray-800', 'mr-0.5 inline-block rounded-xl border px-1.5 text-center text-sm tabular-nums text-gray-800',
{ {
'animate-pulse border-zinc-300 bg-zinc-300 text-zinc-300': 'animate-pulse border-zinc-300 bg-zinc-300 text-zinc-300':
!roadmapLimit, !roadmapLimit,
@ -389,19 +389,16 @@ export function GenerateRoadmap() {
> >
{roadmapLimitUsed} of {roadmapLimit} {roadmapLimitUsed} of {roadmapLimit}
</span>{' '} </span>{' '}
roadmaps generated roadmaps generated.
{!isLoggedIn() && (
<>
{' '}
<button
className="font-medium text-black underline underline-offset-2"
onClick={showLoginPopup}
>
Login to increase your limit
</button>
</>
)}
</span> </span>
{!isLoggedIn() && (
<button
className="rounded-xl border border-current px-1.5 py-0.5 text-sm font-medium text-blue-500"
onClick={showLoginPopup}
>
Generate more by signing up (free, takes 2sec) or logging in
</button>
)}
</div> </div>
<form <form
onSubmit={handleSubmit} onSubmit={handleSubmit}

Loading…
Cancel
Save