Skip to content

Commit cca2203

Browse files
Update all dependencies and fix minor bugs
1 parent d9a40c9 commit cca2203

File tree

6 files changed

+2704
-1891
lines changed

6 files changed

+2704
-1891
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ yarn-error.log*
3232

3333
# vercel
3434
.vercel
35+
.env*.local

components/ContributorCard.tsx

+8-7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default function ContributorCard({ contributor }: Props) {
3030
: contributor.avatar_url;
3131

3232
useEffect(() => {
33+
if (!hash) return;
3334
if (hash.toLowerCase() === contributor.login.toLowerCase()) {
3435
cardRef.current?.scrollIntoView({
3536
behavior: 'smooth',
@@ -41,18 +42,18 @@ export default function ContributorCard({ contributor }: Props) {
4142

4243
return (
4344
<button
44-
className="text-center shadow-2xl card min-w-full justify-center focus-within:outline-sky-300"
45+
className="justify-center min-w-full text-center shadow-2xl card focus-within:outline-sky-300"
4546
id={contributor.login}
4647
onClick={() => router.replace({ hash: contributor.login })}
4748
ref={cardRef}
4849
>
49-
<div className="w-full mx-auto pt-5">
50-
<figure className="h-full w-full">
50+
<div className="w-full pt-5 mx-auto">
51+
<figure className="w-full h-full">
5152
<img src={url} alt={contributor.name} className="rounded-xl" />
5253
</figure>
5354
</div>
54-
<div className="card-body gap-3 text-center w-full">
55-
<h2 className="text-center text-2xl font-bold text-2023-bavarian-blue-1">
55+
<div className="w-full gap-3 text-center card-body">
56+
<h2 className="text-2xl font-bold text-center text-2023-bavarian-blue-1">
5657
{contributor.name}
5758
</h2>
5859
<a
@@ -61,9 +62,9 @@ export default function ContributorCard({ contributor }: Props) {
6162
>
6263
{contributor.profile}
6364
</a>
64-
<div className="justify-center card-actions mt-auto">
65+
<div className="justify-center mt-auto card-actions">
6566
<a
66-
className="text-2023-bavarian-blue-1 btn border-2023-bavarian-blue-2 hover:border-2023-bavarian-blue-2 btn-outline border-2 hover:bg-2023-bavarian-blue-2 hover:text-2023-bavarian-blue-4"
67+
className="border-2 text-2023-bavarian-blue-1 btn border-2023-bavarian-blue-2 hover:border-2023-bavarian-blue-2 btn-outline hover:bg-2023-bavarian-blue-2 hover:text-2023-bavarian-blue-4"
6768
href={`https://github.com/${contributor.login}`}
6869
target="_blank"
6970
rel="noreferrer"

next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

package.json

+31-31
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,42 @@
1010
"format": "prettier --write \"./**/*.{ts,tsx,json}\""
1111
},
1212
"dependencies": {
13-
"@fontsource/poppins": "^5.0.8",
14-
"@fortawesome/fontawesome-svg-core": "^6.4.2",
15-
"@fortawesome/free-regular-svg-icons": "^6.4.2",
16-
"@fortawesome/free-solid-svg-icons": "^6.4.2",
17-
"@fortawesome/react-fontawesome": "^0.2.0",
13+
"@fontsource/poppins": "^5.0.16",
14+
"@fortawesome/fontawesome-svg-core": "^6.6.0",
15+
"@fortawesome/free-regular-svg-icons": "^6.6.0",
16+
"@fortawesome/free-solid-svg-icons": "^6.6.0",
17+
"@fortawesome/react-fontawesome": "^0.2.2",
1818
"@next-auth/xata-adapter": "^0.2.2",
19-
"@t3-oss/env-nextjs": "^0.6.1",
19+
"@t3-oss/env-nextjs": "^0.11.1",
2020
"@twuni/emojify": "^1.0.2",
21-
"@xata.io/client": "^0.26.7",
22-
"axios": "^1.5.1",
23-
"daisyui": "^3.7.7",
24-
"framer-motion": "^10.16.4",
25-
"jotai": "^2.4.3",
26-
"next": "^13.5.3",
27-
"next-auth": "^4.23.2",
28-
"next-cloudinary": "^4.22.0",
29-
"next-seo": "^6.1.0",
21+
"@xata.io/client": "^0.30.0",
22+
"axios": "^1.7.7",
23+
"daisyui": "^4.12.10",
24+
"framer-motion": "^11.5.4",
25+
"jotai": "^2.9.3",
26+
"next": "^14.2.8",
27+
"next-auth": "^4.24.7",
28+
"next-cloudinary": "^6.12.0",
29+
"next-seo": "^6.6.0",
3030
"nextjs-progressbar": "^0.0.16",
31-
"react": "18.2.0",
32-
"react-dom": "18.2.0",
33-
"react-hook-form": "^7.46.2",
31+
"react": "18.3.1",
32+
"react-dom": "18.3.1",
33+
"react-hook-form": "^7.53.0",
3434
"react-hot-toast": "^2.4.1",
35-
"react-icons": "^4.11.0",
36-
"zod": "^3.22.2"
35+
"react-icons": "^5.3.0",
36+
"zod": "^3.23.8"
3737
},
3838
"devDependencies": {
39-
"@types/node": "^20.6.3",
40-
"@types/react": "18.2.22",
41-
"@types/twuni__emojify": "^1.0.0",
42-
"autoprefixer": "^10.4.16",
43-
"eslint": "8.50.0",
44-
"eslint-config-next": "13.5.2",
45-
"postcss": "^8.4.30",
46-
"prettier": "^3.0.3",
47-
"prettier-plugin-tailwindcss": "^0.5.5",
48-
"tailwindcss": "^3.3.3",
49-
"typescript": "5.2.2"
39+
"@types/node": "^22.5.4",
40+
"@types/react": "18.3.5",
41+
"@types/twuni__emojify": "^1.0.2",
42+
"autoprefixer": "^10.4.20",
43+
"eslint": "9.10.0",
44+
"eslint-config-next": "14.2.8",
45+
"postcss": "^8.4.45",
46+
"prettier": "^3.3.3",
47+
"prettier-plugin-tailwindcss": "^0.6.6",
48+
"tailwindcss": "^3.4.10",
49+
"typescript": "5.5.4"
5050
}
5151
}

pages/repos/[language].tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ export const getServerSideProps: GetServerSideProps<Props> = async ctx => {
3434
startStars && endStars
3535
? `stars:${startStars}..${endStars}`
3636
: startStars && !endStars
37-
? `stars:>${startStars}`
38-
: !startStars && endStars
39-
? `stars:<${endStars}`
40-
: '';
37+
? `stars:>${startStars}`
38+
: !startStars && endStars
39+
? `stars:<${endStars}`
40+
: '';
4141

4242
const apiUrl = `https://api.github.com/search/repositories?q=topic%3Ahacktoberfest+language%3A${languageName}+${searchQuery}+${starsQuery}&page=${page}&per_page=21&sort=${sort}&order=${order}`;
4343

@@ -126,7 +126,7 @@ const Language = ({ page, repos, languageName }: Props) => {
126126
animate={{ opacity: 1 }}
127127
exit={{ opacity: 0 }}
128128
>
129-
<button className="relative w-12 aspect-square flex justify-center items-center rounded-full bg-2023-bavarian-blue-2 text-2xl hover:scale-95 transition-transform ">
129+
<button className="relative flex items-center justify-center w-12 text-2xl transition-transform rounded-full aspect-square bg-2023-bavarian-blue-2 hover:scale-95 ">
130130
<FaAngleUp className="text-slate-100" />
131131
</button>
132132
</motion.div>
@@ -136,7 +136,7 @@ const Language = ({ page, repos, languageName }: Props) => {
136136
<div className="min-h-screen pt-5">
137137
<div className="text-center">
138138
<div className="w-5/6 max-w-md mx-auto">
139-
<h1 className="mb-5 text-5xl text-neutral-100 font-bold uppercase">
139+
<h1 className="mb-5 text-5xl font-bold uppercase text-neutral-100">
140140
{repos.total_count} repositories for{' '}
141141
<span className="font-mono text-2023-bavarian-gold-2">
142142
{router.query.q
@@ -148,7 +148,7 @@ const Language = ({ page, repos, languageName }: Props) => {
148148
</div>
149149
<Sort />
150150
<StarsFilter />
151-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2 p-4 lg:grid-cols-3">
151+
<div className="grid grid-cols-1 gap-8 p-4 md:grid-cols-2 lg:grid-cols-3">
152152
{repos.items.map(repo => (
153153
<Card key={repo.id} repo={repo} />
154154
))}

0 commit comments

Comments
 (0)