Skip to content

Commit 95a797e

Browse files
committed
fixing navbar position
1 parent 003df5a commit 95a797e

File tree

6 files changed

+26
-20
lines changed

6 files changed

+26
-20
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ function Header() {
2121
return (
2222
<header className="border-b-[0.5px] border-dashed border-b-2023-manga-3 mb-5">
2323
<div className="container mx-auto px-4 py-2">
24-
<div className="justify-between shadow-lg navbar">
24+
<div className="justify-between lg:grid lg:grid-cols-3 shadow-lg navbar">
2525
<Link href="/">
2626
<img src="/hacktoberfest.svg" alt="Hacktoberfest" className="h-12 w-auto sm:h-auto" />
2727
</Link>
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 md:justify-end">
3232
<Link
3333
href="/contributors"
3434
className="btn btn-square btn-ghost umami--click--contributors-button"

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
@@ -75,7 +75,10 @@ export default function StarsFilter() {
7575
control={control}
7676
/>
7777

78-
<button className="btn btn-ghost ml-2 text-2023-manga-2 ring-1 ring-2023-manga-2" type="submit">
78+
<button
79+
className="btn btn-ghost ml-2 text-2023-manga-2 ring-1 ring-2023-manga-2"
80+
type="submit"
81+
>
7982
Search
8083
</button>
8184
</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)