Skip to content

Commit

Permalink
Merge pull request #6 from HikaruEgashira/add-github-token-info-4223
Browse files Browse the repository at this point in the history
feat: add GitHub token requirement info to initial screen
  • Loading branch information
HikaruEgashira authored Dec 30, 2024
2 parents ed49895 + 3abf006 commit 4cf7851
Showing 1 changed file with 44 additions and 11 deletions.
55 changes: 44 additions & 11 deletions src/components/SearchHero/HeroContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,50 @@ export function HeroContent() {
<Waves className="w-10 h-10 text-blue-500 dark:text-blue-400" />
</div>

<div className="space-y-2">
<h1 className="text-3xl font-semibold tracking-tight">
<span className="bg-gradient-to-r from-blue-600 to-blue-400
dark:from-blue-400 dark:to-blue-300
bg-clip-text text-transparent">
Surf Board
</span>
</h1>
<p className="text-base text-gray-600 dark:text-gray-400">
Dive into GitHub's vast ocean of code
</p>
<div className="space-y-4">
<div className="space-y-2">
<h1 className="text-3xl font-semibold tracking-tight">
<span className="bg-gradient-to-r from-blue-600 to-blue-400
dark:from-blue-400 dark:to-blue-300
bg-clip-text text-transparent">
Surf Board
</span>
</h1>
<p className="text-base text-gray-600 dark:text-gray-400">
Dive into GitHub's vast ocean of code
</p>
</div>

<div className="p-4 bg-blue-50 dark:bg-blue-900/20 rounded-lg max-w-md mx-auto">
<h2 className="font-medium text-blue-700 dark:text-blue-300 mb-2">
🔑 GitHub Token Required
</h2>
<p className="text-sm text-gray-600 dark:text-gray-400 mb-3">
To use Surf Board, you'll need a GitHub personal access token with repository read permissions.
</p>
<div className="space-y-2">
<a
href="https://github.com/settings/tokens/new"
target="_blank"
rel="noopener noreferrer"
className="text-sm text-blue-600 dark:text-blue-400 hover:underline block"
>
→ Create a GitHub Token
</a>
<a
href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens"
target="_blank"
rel="noopener noreferrer"
className="text-sm text-blue-600 dark:text-blue-400 hover:underline block"
>
→ Learn more about GitHub tokens
</a>
</div>
</div>

<div className="text-sm text-gray-500 dark:text-gray-400">
Get started by entering your search query above ↑
</div>
</div>
</motion.div>
);
Expand Down

0 comments on commit 4cf7851

Please sign in to comment.