Skip to content

Commit 43b4f84

Browse files
authored
Merge branch 'max-programming:main' into alone-y154/local
2 parents 4676834 + 1ba7dc6 commit 43b4f84

File tree

13 files changed

+3718
-5013
lines changed

13 files changed

+3718
-5013
lines changed

.all-contributorsrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,25 @@
334334
"design",
335335
"code"
336336
]
337+
},
338+
{
339+
"login": "beyzanur-seyhan",
340+
"name": "Beyzanur Seyhan",
341+
"avatar_url": "https://avatars.githubusercontent.com/u/80166639?v=4",
342+
"profile": "https://github.com/beyzanur-seyhan",
343+
"contributions": [
344+
"code"
345+
]
346+
},
347+
{
348+
"login": "maitri-vv",
349+
"name": "maitri-vv",
350+
"avatar_url": "https://avatars.githubusercontent.com/u/87691594?v=4",
351+
"profile": "https://maitri-vv.github.io/Maitri-sPortfolio/",
352+
"contributions": [
353+
"code"
354+
]
355+
}
337356
],
338357
"contributorsPerLine": 7,
339358
"projectName": "hacktoberfest-projects",

.github/workflows/check-linting-and-format.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,28 @@ jobs:
1414
run-linters:
1515
name: Run linters
1616
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
node-version: [18]
1720

1821
steps:
1922
- name: Check out Git repository
2023
uses: actions/checkout@v2
2124

22-
- name: Set up Node.js
23-
uses: actions/setup-node@v1
25+
- name: Set up pnpm
26+
uses: pnpm/action-setup@v2
2427
with:
25-
node-version: 18
28+
version: 8
29+
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
cache: 'pnpm'
2635

2736
# ESLint and Prettier must be in `package.json`
28-
- name: Install Node.js dependencies
29-
run: npm ci
37+
- name: Install dependencies
38+
run: pnpm install
3039

3140
- name: Run linters
3241
uses: wearerequired/lint-action@v2

README.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
# Hacktoberfest Projects 🎉
22

3-
A Web app which lets you find eligible repositories for Hacktoberfest 2022!
3+
A Web app that lets you find eligible repositories for Hacktoberfest 2022!
4+
5+
Use it here - https://finder.usmans.me
46

57
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
6-
[![All Contributors](https://img.shields.io/badge/all_contributors-34-orange.svg?style=flat-square)](#contributors-)
8+
[![All Contributors](https://img.shields.io/badge/all_contributors-36-orange.svg?style=flat-square)](#contributors-)
79
<!-- ALL-CONTRIBUTORS-BADGE:END -->
810
<a href="https://gitmoji.dev">
911
<img src="https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=flat-square" alt="Gitmoji">
1012
</a>
1113

12-
## Run Locally
14+
15+
## Contributing
16+
17+
Contributions are always welcome!
18+
19+
> Pull Requests about adding languages will not be merged, if you want to suggest adding a new language, please [create an issue](https://github.com/max-programming/hacktoberfest-projects/issues/new) for that 🙂
20+
21+
### Run Locally
1322

1423
Clone the project
1524

@@ -23,20 +32,16 @@ Go to the project directory
2332
cd hacktoberfest-projects
2433
```
2534

26-
Install dependencies
35+
Install dependencies (if you want to use `npm` you can use but its recommended to use `pnpm`)
2736

2837
```bash
29-
yarn
30-
# or
31-
npm install
38+
pnpm i
3239
```
3340

3441
Start the server
3542

3643
```bash
37-
yarn dev
38-
# or
39-
npm run dev
44+
pnpm dev
4045
```
4146

4247
## Tech Stack
@@ -46,11 +51,6 @@ npm run dev
4651
- [Tailwind CSS](https://tailwindcss.com/)
4752
- [Daisy UI](http://daisyui.com)
4853

49-
## Contributing
50-
51-
Contributions are always welcome!
52-
53-
> Pull Requests about adding languages will not be merged, if you want to suggest adding a new language, please [create an issue](https://github.com/max-programming/hacktoberfest-projects/issues/new) for that 🙂
5454

5555
## Feedback
5656

@@ -116,7 +116,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
116116
<td align="center" valign="top" width="14.28%"><a href="https://snehafarkya.vercel.app"><img src="https://avatars.githubusercontent.com/u/63949465?v=4?s=100" width="100px;" alt="Sneha Farkya"/><br /><sub><b>Sneha Farkya</b></sub></a><br /><a href="#design-snehafarkya" title="Design">🎨</a></td>
117117
<td align="center" valign="top" width="14.28%"><a href="http://www.sadiksaifi.dev"><img src="https://avatars.githubusercontent.com/u/86684667?v=4?s=100" width="100px;" alt="Sadik Saifi"/><br /><sub><b>Sadik Saifi</b></sub></a><br /><a href="#design-sadiksaifi" title="Design">🎨</a> <a href="https://github.com/max-programming/hacktoberfest-projects/commits?author=sadiksaifi" title="Code">💻</a></td>
118118
<td align="center" valign="top" width="14.28%"><a href="https://donno2048.github.io/Portfolio/"><img src="https://avatars.githubusercontent.com/u/61805754?v=4?s=100" width="100px;" alt="Elisha Hollander"/><br /><sub><b>Elisha Hollander</b></sub></a><br /><a href="https://github.com/max-programming/hacktoberfest-projects/commits?author=donno2048" title="Code">💻</a></td>
119-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/NishidhJain"><img src="https://avatars.githubusercontent.com/u/61869195?v=4?s=100" width="100px;" alt="Nishidh Jain"/><br /><sub><b>Nishidh Jain</b></sub></a><br /><a href="#design-NishidhJain" title="Design">🎨</a> <a href="https://github.com/max-programming/hacktoberfest-projects/commits?author=NishidhJain" title="Code">💻</a></td>
119+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/NishidhJain"><img src="https://avatars.githubusercontent.com/u/61869195?v=4?s=100" width="100px;" alt="Nishidh Jain"/><br /><sub><b>Nishidh Jain</b></sub></a><br /><a href="#design-NishidhJain" title="Design">🎨</a> <a href="https://github.com/max-programming/hacktoberfest-projects/commits?author=NishidhJain" title="Code">💻</a></td>
120+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/beyzanur-seyhan"><img src="https://avatars.githubusercontent.com/u/80166639?v=4?s=100" width="100px;" alt="Beyzanur Seyhan"/><br /><sub><b>Beyzanur Seyhan</b></sub></a><br /><a href="https://github.com/max-programming/hacktoberfest-projects/commits?author=beyzanur-seyhan" title="Code">💻</a></td>
121+
</tr>
122+
<tr>
123+
<td align="center" valign="top" width="14.28%"><a href="https://maitri-vv.github.io/Maitri-sPortfolio/"><img src="https://avatars.githubusercontent.com/u/87691594?v=4?s=100" width="100px;" alt="maitri-vv"/><br /><sub><b>maitri-vv</b></sub></a><br /><a href="https://github.com/max-programming/hacktoberfest-projects/commits?author=maitri-vv" title="Code">💻</a></td>
120124
</tr>
121125
</tbody>
122126
</table>

components/Card.tsx

Lines changed: 49 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,66 +8,69 @@ interface Props {
88

99
function Card({ repo }: Props) {
1010
return (
11-
<div className="shadow-sm card bg-2023-void-2 ring-1 ring-2023-manga-3">
12-
<div className="relative card-body">
13-
<div className="flex gap-4 items-center justify-start">
14-
<a
15-
className="border-2 rounded-full h-14 aspect-square p-1 border-neutral-100"
16-
href={repo.owner.html_url}
17-
title={repo.owner.login}
18-
target="_blank"
19-
rel="noreferrer"
20-
>
21-
<img
22-
src={repo.owner.avatar_url}
23-
alt={repo.owner.login}
24-
className="rounded-full"
25-
/>
26-
</a>
27-
<a
28-
href={repo.html_url}
29-
title={repo.name}
30-
target="_blank"
31-
rel="noreferrer"
32-
className="text-3xl cursor-pointer hover:underline text-2023-bavarian-gold-2 whitespace-nowrap overflow-hidden text-ellipsis max-w-full"
33-
>
34-
{repo.name}
35-
</a>
36-
</div>
37-
38-
<p className="my-2 text-neutral-300">{emojify(repo.description)}</p>
39-
40-
<div className="card-actions">
41-
{repo.topics.map((topic: string) => (
11+
<section className="shadow-sm card bg-2023-void-2 ring-1 ring-2023-manga-3 transition duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-2023-bavarian-gold-2/30">
12+
<div className="relative card-body p-6">
13+
<div className="flex-1">
14+
<div className="flex gap-4 items-center justify-start">
4215
<a
43-
key={topic}
44-
href={`https://github.com/topics/${topic}`}
16+
className="border-2 rounded-full h-14 aspect-square p-1.5 border-neutral-100"
17+
href={repo.owner.html_url}
18+
title={repo.owner.login}
4519
target="_blank"
4620
rel="noreferrer"
47-
className={`badge ${
48-
topic === 'hacktoberfest'
49-
? 'bg-2023-bavarian-gold-1 text-2023-void-2'
50-
: 'bg-2023-bavarian-blue-2 text-2023-void-2'
51-
}`}
5221
>
53-
{topic}
22+
<img
23+
src={repo.owner.avatar_url}
24+
alt={repo.owner.login}
25+
className="rounded-full"
26+
/>
5427
</a>
55-
))}
28+
<h2 className="text-3xl cursor-pointer hover:underline text-2023-bavarian-gold-2 whitespace-nowrap overflow-hidden text-ellipsis max-w-full">
29+
<a
30+
href={repo.html_url}
31+
title={repo.name}
32+
target="_blank"
33+
rel="noreferrer"
34+
>
35+
{repo.name}
36+
</a>
37+
</h2>
38+
</div>
39+
40+
<h6 className="my-5 text-lg">{emojify(repo.description)}</h6>
41+
42+
<div className="card-actions gap-y-3">
43+
{repo.topics.map((topic: string) => (
44+
<a
45+
key={topic}
46+
href={`https://github.com/topics/${topic}`}
47+
target="_blank"
48+
rel="noreferrer"
49+
className={`badge inline px-3 py-0.5 h-auto ${
50+
topic === 'hacktoberfest'
51+
? 'bg-2023-bavarian-gold-1 text-2023-void-2'
52+
: 'bg-2023-bavarian-blue-2 text-2023-void-2'
53+
}`}
54+
>
55+
{topic}
56+
</a>
57+
))}
58+
</div>
5659
</div>
5760

5861
{/* stars and forks cards */}
59-
<div className="w-full flex gap-3 xl:gap-5 text-neutral-100 cursor-pointer mt-6">
62+
<div className="w-full flex gap-3 xl:gap-5 text-neutral-100 cursor-pointer mt-8">
6063
<a
6164
href={`${repo.html_url}/stargazers`}
6265
target="_blank"
6366
className="group w-full border rounded-xl p-3 xl:px-4 flex items-center gap-2 xl:gap-3 relative"
6467
>
6568
<GoStar className="text-yellow-200 text-2xl" />
6669
<div className="flex flex-col">
67-
<div className="xl:text-2xl text-lg font-semibold">
70+
<div className="text-lg xl:text-2xl font-semibold mb-0.5">
6871
{repo.stargazers_count}
6972
</div>
70-
<div className="text-neutral-400 text-xs lg:text-sm">Stars</div>
73+
<div className="text-neutral-300 text-xs lg:text-sm">Stars</div>
7174
</div>
7275
<div
7376
id="tooltip"
@@ -83,8 +86,8 @@ function Card({ repo }: Props) {
8386
>
8487
<GoRepoForked className="text-yellow-200 text-2xl" />
8588
<div className="flex flex-col">
86-
<div className="text-2xl font-semibold">{repo.forks}</div>
87-
<div className="text-neutral-400 text-xs lg:text-sm">Forks</div>
89+
<div className="text-lg xl:text-2xl font-semibold mb-0.5">{repo.forks}</div>
90+
<div className="text-neutral-300 text-xs lg:text-sm">Forks</div>
8891
</div>
8992
<div
9093
id="tooltip"
@@ -95,7 +98,7 @@ function Card({ repo }: Props) {
9598
</a>
9699
</div>
97100
</div>
98-
</div>
101+
</section>
99102
);
100103
}
101104

components/ContributorCard.tsx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { env } from 'env.mjs';
2+
import { CldImage, getCldImageUrl } from 'next-cloudinary';
13
import { IoLogoGithub } from 'react-icons/io';
24

35
interface Contributor {
@@ -13,6 +15,15 @@ interface Props {
1315
}
1416

1517
export default function ContributorCard({ contributor }: Props) {
18+
const url = env.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME
19+
? getCldImageUrl({
20+
src: contributor.avatar_url,
21+
deliveryType: 'fetch',
22+
width: 250,
23+
height: 250
24+
})
25+
: contributor.avatar_url;
26+
1627
return (
1728
<div className="text-center shadow-2xl card">
1829
<a
@@ -21,16 +32,15 @@ export default function ContributorCard({ contributor }: Props) {
2132
rel="noreferrer"
2233
>
2334
<figure className="px-10 pt-10">
24-
<img
25-
src={contributor.avatar_url}
26-
alt={contributor.name}
27-
className="rounded-xl"
28-
/>
35+
<img src={url} alt={contributor.name} className="rounded-xl" />
2936
</figure>
3037
</a>
3138
<div className="card-body items-center text-center">
3239
<h2 className="card-title text-neutral-100">{contributor.name}</h2>
33-
<a href={contributor.profile} className="link text-neutral-100 hover:text-[#dbe8d9]">
40+
<a
41+
href={contributor.profile}
42+
className="link text-neutral-100 hover:text-[#dbe8d9]"
43+
>
3444
{contributor.profile}
3545
</a>
3646
<div className="justify-center card-actions">

components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function Header() {
4242
rel="noreferrer"
4343
className="btn btn-square btn-ghost umami--click--github-button"
4444
>
45-
<IoLogoGithub size="1.5rem" title="GitHub" />
45+
<IoLogoGithub size="1.5rem" color='white' title="GitHub" />
4646
</a>
4747
</div>
4848
</div>

components/Hero.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function Hero() {
6565
placeholder="Search for your language"
6666
className="input input-bordered w-full text-neutral-100 border-2023-bavarian-gold-2 focus:outline-2023-bavarian-gold-2 max-w-xs rounded-tr-none rounded-br-none bg-transparent"
6767
name="search"
68+
autoComplete="off"
6869
/>
6970
<button
7071
type="submit"
@@ -89,7 +90,7 @@ const SearchIcon = () => (
8990
<svg
9091
className="w-6 h-6"
9192
fill="none"
92-
stroke="currentColor"
93+
stroke="white"
9394
viewBox="0 0 24 24"
9495
xmlns="http://www.w3.org/2000/svg"
9596
>

components/StarsFilter.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default function StarsFilter() {
5353
field.onChange(parseInt(e.target.value, 10));
5454
}}
5555
placeholder="Star's Starting Range"
56+
min="0"
5657
/>
5758
)}
5859
control={control}
@@ -68,6 +69,7 @@ export default function StarsFilter() {
6869
field.onChange(parseInt(e.target.value, 10));
6970
}}
7071
placeholder="Star's Finish Range"
72+
min="0"
7173
/>
7274
)}
7375
control={control}

env.mjs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ export const env = createEnv({
55
server: {
66
GITHUB_TOKEN: z.string().optional()
77
},
8-
client: {},
9-
// If you're using Next.js < 13.4.4, you'll need to specify the runtimeEnv manually
8+
client: {
9+
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: z.string().optional()
10+
},
1011
runtimeEnv: {
11-
GITHUB_TOKEN: process.env.GITHUB_TOKEN
12+
GITHUB_TOKEN: process.env.GITHUB_TOKEN,
13+
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME:
14+
process.env.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME
1215
}
13-
// For Next.js >= 13.4.4, you only need to destructure client variables:
14-
// experimental__runtimeEnv: {
15-
// NEXT_PUBLIC_PUBLISHABLE_KEY: process.env.NEXT_PUBLIC_PUBLISHABLE_KEY,
16-
// }
1716
});

next.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ await import('./env.mjs');
33
/** @type {import('next').NextConfig} */
44
const config = {
55
reactStrictMode: true,
6-
images: {
7-
domains: ['avatars.githubusercontent.com', 'raw.githubusercontent.com']
8-
},
96
async redirects() {
107
return [
118
{

0 commit comments

Comments
 (0)