Skip to content

Commit 3471e3c

Browse files
authored
Merge pull request #18 from alexmarqs/chore/improve-headers
feat: update package dependencies, remove unused components, and enha…
2 parents 084c5da + e749af4 commit 3471e3c

File tree

9 files changed

+55
-134
lines changed

9 files changed

+55
-134
lines changed

apps/web/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@radix-ui/react-label": "2.1.1",
2020
"@radix-ui/react-select": "2.1.4",
2121
"@radix-ui/react-slot": "1.1.1",
22+
"@tech-companies-portugal/analytics": "*",
2223
"cheerio": "1.0.0-rc.12",
2324
"class-variance-authority": "0.7.0",
2425
"clsx": "2.1.0",
@@ -29,15 +30,14 @@
2930
"next": "15.2.3",
3031
"nuqs": "2.3.1",
3132
"react": "19.0.0",
33+
"react-countup": "6.5.3",
3234
"react-dom": "19.0.0",
33-
"react-type-animation": "3.2.0",
3435
"recharts": "2.15.0",
3536
"sharp": "0.33.2",
3637
"slugify": "1.6.6",
3738
"tailwind-merge": "2.2.1",
3839
"tailwindcss-animate": "1.0.7",
39-
"use-debounce": "10.0.4",
40-
"@tech-companies-portugal/analytics": "*"
40+
"use-debounce": "10.0.4"
4141
},
4242
"devDependencies": {
4343
"@playwright/test": "1.50.0",

apps/web/src/app/api/og/route.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function GET(request: Request) {
1111

1212
const title =
1313
(searchParams.has("title") && searchParams.get("title")) ||
14-
"Tech Companies in Portugal | Leading Startups & Innovators";
14+
"Tech Companies in Portugal";
1515

1616
const description =
1717
(searchParams.has("description") && searchParams.get("description")) ||
@@ -86,7 +86,6 @@ export async function GET(request: Request) {
8686
style={{
8787
display: "flex",
8888
fontSize: 50,
89-
fontFamily: "Geist Mono SemiBold",
9089
}}
9190
>
9291
{title}

apps/web/src/app/category/[category]/page.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Breadcrumb } from "@/components/Breadcrumb";
21
import CompaniesList from "@/components/CompaniesList";
32
import { CompaniesListSkeleton } from "@/components/CompaniesListSkeleton";
43
import {
@@ -77,13 +76,7 @@ export default async function CategoryPage({
7776
return (
7877
<section className="mx-auto flex w-full max-w-5xl p-3 relative flex-1">
7978
<div className="flex flex-col gap-5 w-full">
80-
<Breadcrumb
81-
items={[
82-
{ label: "Category", className: "text-muted-foreground" },
83-
{ label: category },
84-
]}
85-
/>
86-
<h1 className="text-2xl font-bold">{category} Companies</h1>
79+
<h1 className="text-2xl font-bold">Tech Companies | {category} </h1>
8780
<Suspense fallback={<CompaniesListSkeleton />}>
8881
<CompaniesList
8982
allCompanies={filteredCompanies}

apps/web/src/app/location/[location]/page.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Breadcrumb } from "@/components/Breadcrumb";
21
import CompaniesList from "@/components/CompaniesList";
32
import { CompaniesListSkeleton } from "@/components/CompaniesListSkeleton";
43
import {
@@ -77,13 +76,7 @@ export default async function LocationPage({
7776
return (
7877
<section className="mx-auto flex w-full max-w-5xl p-3 relative">
7978
<div className="flex flex-col gap-5 w-full">
80-
<Breadcrumb
81-
items={[
82-
{ label: "Location", className: "text-muted-foreground" },
83-
{ label: location },
84-
]}
85-
/>
86-
<h1 className="text-2xl font-bold">Companies in {location}</h1>
79+
<h1 className="text-2xl font-bold">Tech Companies in {location}</h1>
8780

8881
<Suspense fallback={<CompaniesListSkeleton />}>
8982
<CompaniesList
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"use client";
2+
3+
import CountUp, { type CountUpProps } from "react-countup";
4+
5+
type AnimateNumberProps = CountUpProps;
6+
7+
export const AnimateNumber = ({ ...props }: AnimateNumberProps) => {
8+
return <CountUp {...props} />;
9+
};

apps/web/src/components/AnimatedCompaniesFeatures.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

apps/web/src/components/Breadcrumb.tsx

Lines changed: 0 additions & 54 deletions
This file was deleted.

apps/web/src/components/CompaniesHeader.tsx

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
1-
import Image from "next/image";
2-
import bgHeader from "../../public/assets/images/bg-header.webp";
3-
import { AnimatedCompaniesFeatures } from "./AnimatedCompaniesFeatures";
1+
import { PlayCircle } from "lucide-react";
2+
import { AnimateNumber } from "./AnimateNumber";
43

54
export default function CompaniesHeader() {
65
return (
76
<section
8-
className="relative w-full overflow-hidden py-12 text-center"
7+
className="font-mono relative w-full overflow-hidden py-8 text-center"
98
data-testid="companies-header"
109
>
11-
<div className="absolute inset-0 z-0 bg-background">
12-
<Image
13-
src={bgHeader}
14-
fill
15-
quality={50}
16-
className="object-cover object-center opacity-50"
17-
priority
18-
placeholder="blur"
19-
alt="Background Tech Companies in Portugal"
20-
/>
21-
</div>
10+
<div className="relative z-[5] px-4 max-w-3xl mx-auto flex flex-col items-center gap-8">
11+
<div className="flex items-center gap-2 text-red-500 font-semibold">
12+
<PlayCircle className="h-5 w-5" />
13+
14+
<span>
15+
<AnimateNumber end={300} duration={1.5} />+ Tech Companies
16+
</span>
17+
</div>
2218

23-
<div className="relative z-[5] px-1 max-w-5xl mx-auto flex flex-col items-center gap-6">
24-
<h1 className="font-mono font-bold text-3xl md:text-4xl">
25-
Discover Leading Tech Companies in Portugal 🇵🇹
26-
</h1>
27-
<AnimatedCompaniesFeatures />
19+
<div className="flex flex-col gap-4">
20+
<h1 className="text-4xl font-bold tracking-tight">
21+
<span className="text-red-500">The largest</span> directory of tech
22+
companies in Portugal
23+
</h1>
24+
<p className="text-md text-gray-600 max-w-2xl mx-auto font-semibold">
25+
Discover the best tech companies hiring in Portugal, from startups
26+
to established enterprises, all in one place.
27+
</p>
28+
</div>
2829
</div>
2930
</section>
3031
);

package-lock.json

Lines changed: 19 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)