Skip to content

Commit 0f9b834

Browse files
Merge pull request #184 from inderharrysingh/fix/navbar-position
Fix/searchbar position
2 parents 88155f6 + a692609 commit 0f9b834

File tree

6 files changed

+28
-22
lines changed

6 files changed

+28
-22
lines changed

components/Card.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ function Card({ repo }: Props) {
3737
</h2>
3838
</div>
3939

40-
<h6 className="my-5 text-2023-manga-2 text-lg">{emojify(repo.description)}</h6>
40+
<h6 className="my-5 text-2023-manga-2 text-lg">
41+
{emojify(repo.description)}
42+
</h6>
4143

4244
<div className="card-actions gap-y-3">
4345
{repo.topics.map((topic: string) => (
@@ -86,7 +88,9 @@ function Card({ repo }: Props) {
8688
>
8789
<GoRepoForked className="text-yellow-200 text-2xl" />
8890
<div className="flex flex-col">
89-
<div className="text-lg xl:text-2xl font-semibold mb-0.5">{repo.forks}</div>
91+
<div className="text-lg xl:text-2xl font-semibold mb-0.5">
92+
{repo.forks}
93+
</div>
9094
<div className="text-neutral-300 text-xs lg:text-sm">Forks</div>
9195
</div>
9296
<div

components/Header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ function Header() {
2828

2929
<SearchBar searchBarWrapperStyles="hidden sm:inline-flex flex-1 max-w-md px-6" />
3030

31-
<div className="flex-none">
31+
<div className="flex-none lg:ml-40 md:10">
3232
<Link
3333
href="/contributors"
34-
className="btn btn-square btn-ghost umami--click--contributors-button"
34+
className="btn btn-square btn-ghost umami--click--contributors-button "
3535
>
3636
<BsPeopleFill size="1.5rem" color='white' title="Contributors" />
3737
</Link>
@@ -40,7 +40,7 @@ function Header() {
4040
href="https://github.com/max-programming/hacktoberfest-projects"
4141
target="_blank"
4242
rel="noreferrer"
43-
className="btn btn-square btn-ghost umami--click--github-button"
43+
className="btn btn-square btn-ghost umami--click--github-button ml-"
4444
>
4545
<IoLogoGithub size="1.5rem" color='white' title="GitHub" />
4646
</a>
@@ -53,4 +53,4 @@ function Header() {
5353
);
5454
}
5555

56-
export default Header;
56+
export default Header;

components/Sort.tsx

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,37 @@ export default function Sort() {
2525

2626
const navigationItems = [
2727
{
28-
name: "Best match",
28+
name: 'Best match',
2929
href: { query: { ...router.query } }
3030
},
3131
{
32-
name: "Most stars",
32+
name: 'Most stars',
3333
href: { query: { ...router.query, s: 'stars', o: 'desc' } }
3434
},
3535
{
36-
name: "Fewest stars",
36+
name: 'Fewest stars',
3737
href: { query: { ...router.query, s: 'stars', o: 'asc' } }
3838
},
3939
{
40-
name: "Most forks",
40+
name: 'Most forks',
4141
href: { query: { ...router.query, s: 'forks', o: 'desc' } }
4242
},
4343
{
44-
name: "Fewest forks",
44+
name: 'Fewest forks',
4545
href: { query: { ...router.query, s: 'forks', o: 'asc' } }
4646
},
4747
{
48-
name: "Most help wanted issues",
48+
name: 'Most help wanted issues',
4949
href: { query: { ...router.query, s: 'help-wanted-issues', o: 'desc' } }
5050
},
5151
{
52-
name: "Recently updated",
52+
name: 'Recently updated',
5353
href: { query: { ...router.query, s: 'updated', o: 'desc' } }
5454
},
5555
{
56-
name: "Least recently updated",
56+
name: 'Least recently updated',
5757
href: { query: { ...router.query, s: 'updated', o: 'asc' } }
58-
},
59-
58+
}
6059
];
6160

6261
const selectedSort = (): SortTypes => {
@@ -110,9 +109,7 @@ export default function Sort() {
110109
<ul tabIndex={0} className="menu menu-vertical">
111110
{navigationItems.map((item, index) => (
112111
<li key={index}>
113-
<Link href={{ query: item.href.query }}>
114-
{item.name}
115-
</Link>
112+
<Link href={{ query: item.href.query }}>{item.name}</Link>
116113
</li>
117114
))}
118115
</ul>

components/StarsFilter.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ export default function StarsFilter() {
7979
control={control}
8080
/>
8181

82-
<button className="btn btn-ghost ml-2 text-2023-manga-2 ring-1 ring-2023-manga-2" type="submit">
82+
<button
83+
className="btn btn-ghost ml-2 text-2023-manga-2 ring-1 ring-2023-manga-2"
84+
type="submit"
85+
>
8386
Search
8487
</button>
8588
</div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
"tailwindcss": "^3.3.3",
4242
"typescript": "5.2.2"
4343
}
44-
}
44+
}

pages/contributors.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export default function Contrubutors({ contributors }: Props) {
3434
<div>
3535
<Header />
3636
<div className="container mx-auto mb-5">
37-
<h1 className="my-5 text-neutral-100 text-5xl font-bold text-center">Contributors ✨</h1>
37+
<h1 className="my-5 text-neutral-100 text-5xl font-bold text-center">
38+
Contributors ✨
39+
</h1>
3840
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4">
3941
{contributors.map(contributor => (
4042
<ContributorCard

0 commit comments

Comments
 (0)