@@ -14,13 +14,15 @@ import SectionHeader from '@/components/site/section-header';
|
||||
import CtaBanner from '@/components/site/sections/cta-banner';
|
||||
import StatCard from '@/components/site/stat-card';
|
||||
import { aboutContent } from '@/content/about';
|
||||
import { clientsInSector, projectsBySector } from '@/data/projects';
|
||||
import { fillCounts } from '@/data/projects';
|
||||
import { consultationUrl } from '@/data/site';
|
||||
import { useContent } from '@/hooks/use-locale';
|
||||
import { usePortfolio } from '@/hooks/use-portfolio';
|
||||
import { clients, services } from '@/routes';
|
||||
|
||||
export default function About() {
|
||||
const t = useContent(aboutContent);
|
||||
const stats = usePortfolio();
|
||||
const t = fillCounts(useContent(aboutContent), stats);
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -178,7 +180,9 @@ export default function About() {
|
||||
/>
|
||||
<div className="grid grid-cols-1 gap-5 md:grid-cols-3">
|
||||
{t.industries.items.map((item) => {
|
||||
const clientNames = clientsInSector(item.sector);
|
||||
const clientNames = stats.clientsInSector(
|
||||
item.sector,
|
||||
);
|
||||
|
||||
return (
|
||||
<Card
|
||||
@@ -196,8 +200,9 @@ export default function About() {
|
||||
{clientNames.length}{' '}
|
||||
{t.industries.clients} ·{' '}
|
||||
{
|
||||
projectsBySector(item.sector)
|
||||
.length
|
||||
stats.projectsBySector(
|
||||
item.sector,
|
||||
).length
|
||||
}{' '}
|
||||
{t.industries.projects}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user