Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
add search button to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
sametcn99 committed Jun 22, 2024
1 parent 7ecc0ce commit 9bf320d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function RootLayout({
grayColor="slate"
radius="large"
>
<main className=" flex w-full flex-col gap-4 p-2 pt-4 transition-all duration-1000 sm:w-[30rem] md:w-[40rem] lg:w-[60rem] xl:w-[70rem] 2xl:w-[80rem]">
<main className=" flex w-full flex-col items-center gap-4 p-2 pt-4 transition-all duration-1000 sm:w-[30rem] md:w-[40rem] lg:w-[60rem] xl:w-[70rem] 2xl:w-[80rem]">
<Navbar />
{children}
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function SearchBar({ className }: { className?: string }) {
>
<Button>
<FaSearch />
Search
Search User
</Button>
</Dialog.Trigger>
<Dialog.Content style={{ maxWidth: 450 }}>
Expand Down
4 changes: 3 additions & 1 deletion components/home/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Heading, Section, Text } from "@radix-ui/themes";
import ChromeStore from "./ChromeStore";
import Image from "next/image";
import SearchBar from "../Search";

export default function Hero() {
return (
<Section
className="flex flex-col items-center justify-center gap-4 text-center"
className="flex flex-col items-center justify-center gap-4 text-center w-fit"
id="hero"
>
<Heading size="9" className="animated-header">
Expand All @@ -15,6 +16,7 @@ export default function Hero() {
Explore GitHub and Gist profiles effortlessly, utilizing the GitHub REST
API to retrieve comprehensive information.
</Text>
<SearchBar/>
<ChromeStore />
<Image
src="/icons/octocat.png"
Expand Down

1 comment on commit 9bf320d

@vercel
Copy link

@vercel vercel bot commented on 9bf320d Jun 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.