Skip to content

Commit cf6434e

Browse files
authored
GH-120 Improve terminal & Fix linter (#120)
Signed-off-by: Martin Sulikowski <[email protected]>
1 parent 39a02ab commit cf6434e

File tree

13 files changed

+3186
-1543
lines changed

13 files changed

+3186
-1543
lines changed

app/api/project/route.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NextResponse } from "next/server";
22

3-
export const revalidate = 3600;
3+
export const revalidate = 3600;
44

55
export async function GET(request: Request) {
66
try {
@@ -10,7 +10,7 @@ export async function GET(request: Request) {
1010
headers: {
1111
Authorization: `Bearer ${process.env.ETERNALCODE_STRAPI_KEY}`,
1212
},
13-
next: { revalidate }
13+
next: { revalidate },
1414
}
1515
);
1616

@@ -20,11 +20,11 @@ export async function GET(request: Request) {
2020
}
2121

2222
const body = await res.json();
23-
23+
2424
return NextResponse.json(body, {
2525
headers: {
26-
'Cache-Control': 'public, max-age=60, stale-while-revalidate=3600',
27-
}
26+
"Cache-Control": "public, max-age=60, stale-while-revalidate=3600",
27+
},
2828
});
2929
} catch (error) {
3030
console.error("Error fetching projects:", error);
@@ -33,4 +33,4 @@ export async function GET(request: Request) {
3333
{ status: 500 }
3434
);
3535
}
36-
}
36+
}

app/api/team/route.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function GET(request: Request) {
1010
headers: {
1111
Authorization: `Bearer ${process.env.ETERNALCODE_STRAPI_KEY}`,
1212
},
13-
next: { revalidate }
13+
next: { revalidate },
1414
}
1515
);
1616

@@ -20,11 +20,11 @@ export async function GET(request: Request) {
2020
}
2121

2222
const body = await res.json();
23-
23+
2424
return NextResponse.json(body, {
2525
headers: {
26-
'Cache-Control': 'public, max-age=60, stale-while-revalidate=3600',
27-
}
26+
"Cache-Control": "public, max-age=60, stale-while-revalidate=3600",
27+
},
2828
});
2929
} catch (error) {
3030
console.error("Error fetching team data:", error);
@@ -33,4 +33,4 @@ export async function GET(request: Request) {
3333
{ status: 500 }
3434
);
3535
}
36-
}
36+
}

components/faq/Faq.tsx

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function Faq() {
1616
},
1717
},
1818
}),
19-
[],
19+
[]
2020
);
2121

2222
const { ref: q1, inView: inViewFAQ1 } = useInView({ triggerOnce: false });
@@ -73,10 +73,12 @@ export default function Faq() {
7373
Q2: How can I join the team?
7474
</h3>
7575
<p className="mt-3 text-gray-500 dark:text-gray-400">
76-
Join us by contacting via Discord, where our team interacts and discusses projects. We value not just
77-
commitment but also your interests, ideas, and diverse talents. As a member, you'll actively participate
78-
in projects, hone skills, and gain experience in a supportive setting. Be part of our exciting team
79-
journey, don't hesitate!
76+
Join us by contacting via Discord, where our team interacts and
77+
discusses projects. We value not just commitment but also your
78+
interests, ideas, and diverse talents. As a member, you'll
79+
actively participate in projects, hone skills, and gain experience
80+
in a supportive setting. Be part of our exciting team journey,
81+
don't hesitate!
8082
</p>
8183
</motion.div>
8284

@@ -91,9 +93,10 @@ export default function Faq() {
9193
Q3: What are the benefits of joining the team?
9294
</h3>
9395
<p className="mt-3 text-gray-500 dark:text-gray-400">
94-
Joining us provides valuable experience and has led previous members to their dream IT roles. You'll also
95-
be able to extend your professional network, demonstrate your skills, and partake in team game
96-
competitions. Don't hesitate, join us!
96+
Joining us provides valuable experience and has led previous
97+
members to their dream IT roles. You'll also be able to extend
98+
your professional network, demonstrate your skills, and partake in
99+
team game competitions. Don't hesitate, join us!
97100
</p>
98101
</motion.div>
99102

@@ -108,9 +111,11 @@ export default function Faq() {
108111
Q4: What are the requirements for joining the team?
109112
</h3>
110113
<p className="mt-3 text-gray-500 dark:text-gray-400">
111-
In addition to commitment, we require basic programming knowledge. Our training isn't comprehensive, so
112-
it's recommended to have some programming skills. Our team focuses on enhancing existing competencies to
113-
aid your professional growth. Currently, we only accept Polish-speaking individuals.
114+
In addition to commitment, we require basic programming knowledge.
115+
Our training isn't comprehensive, so it's recommended to have some
116+
programming skills. Our team focuses on enhancing existing
117+
competencies to aid your professional growth. Currently, we only
118+
accept Polish-speaking individuals.
114119
</p>
115120
</motion.div>
116121
</div>

components/header/hero/button/BackgroundHeroButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function BackgroundHeroButton() {
1010
animate={{ opacity: 1 }}
1111
transition={{ duration: 0.5 }}
1212
aria-label="Second button"
13-
className="flex items-center rounded-lg bg-blue-700 px-5 py-2.5 text-center text-sm font-medium text-white focus:outline-none "
13+
className="flex items-center rounded-lg bg-blue-700 px-5 py-2.5 text-center text-sm font-medium text-white focus:outline-none"
1414
>
1515
<PeopleGroupIcon className="mb-[0.5px] mr-2" />
1616
See our team!

0 commit comments

Comments
 (0)