Skip to content

Commit

Permalink
chore: improving SEO of portfolio
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardoooxd committed Sep 16, 2024
1 parent 6fbf40a commit 1bce8fc
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 8 deletions.
2 changes: 1 addition & 1 deletion e2e/landing-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test.describe('Landing Page Tests on Light Mode', () => {
});

test('Should have the appropriate page title', async ({ page }) => {
await expect(page).toHaveTitle(/Eduardo Couto/);
await expect(page).toHaveTitle(/Eduardo Couto - Full Stack Software Developer/);
});

test('Should have the page on light mode by default', async ({ page }) => {
Expand Down
6 changes: 5 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Toaster } from '@/components/shared/toaster';
import ThemeSwitch from '@/components/theme-switch';
import ActiveSectionProvider from '@/context/active-section-context';
import ThemeContextProvider from '@/context/theme-context';
import { WEBSITE_METADATA } from '@/lib/data';
import { JSON_LD, WEBSITE_METADATA } from '@/lib/data';
import { cn } from '@/lib/utils';
import CSPostHogProvider from '@/providers/posthog';
import { Inter } from 'next/font/google';
Expand All @@ -21,6 +21,10 @@ export const metadata = WEBSITE_METADATA;
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="en" className="h-full overflow-x-hidden !scroll-smooth">
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(JSON_LD) }}
/>
<CSPostHogProvider>
<body className={cn('flex min-h-full flex-col bg-background antialiased', inter.className)}>
<ThemeContextProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function robots(): MetadataRoute.Robots {
allow: '/',
},
],
sitemap: `${baseUrl}/sitemap.xml`,
sitemap: `${baseUrl}sitemap.xml`,
host: baseUrl,
};
}
50 changes: 45 additions & 5 deletions src/lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,63 @@ export const baseUrl = 'https://eduardocouto.dev/';

export const WEBSITE_METADATA: Metadata = {
title: {
template: '%s | Eduardo Couto',
default: 'Eduardo Couto',
template: '%s | Eduardo Couto - Full Stack Software Developer',
default: 'Eduardo Couto - Full Stack Software Developer',
},
description:
'I am a versatile full-stack software developer with over 2 years of experience, I have honed my skills in Java, Typescript, AWS, React, Terraform, Node.js, and various backend technologies. I am dedicated to delivering high-quality, scalable, and maintainable solutions that solve real-world problems.',
applicationName: 'Eduardo Couto Personal Portfolio',
'Eduardo Couto: Experienced Full Stack Software Developer with 2+ years in Java, TypeScript, AWS, React, and Node.js. Specializing in scalable full stack development solutions, from robust Java backends to responsive front-ends. Passionate dev full stack professional delivering high-quality, maintainable code for real-world software development challenges.',
applicationName: 'Eduardo Couto - Full Stack Software Developer Portfolio',
creator: 'Eduardo Couto',
authors: [
{
name: 'Eduardo Couto',
url: 'https://www.linkedin.com/in/eduardo-ribeiro-couto/',
},
],
metadataBase: new URL(baseUrl),
generator: 'Next.js, Tailwind CSS, TypeScript, ESLint, Prettier, Jest, and Husky',
openGraph: {
type: 'website',
locale: 'en_US',
url: baseUrl,
siteName: 'Eduardo Couto - Full Stack Software Developer',
title: 'Eduardo Couto - Full Stack Developer | Java & TypeScript Specialist',
description:
'Full Stack Software Developer with 2+ years experience in Java, TypeScript, AWS, and more. Building scalable solutions from Portugal for global clients.',
images: [
{
url: `${baseUrl}eduardo_couto.jpg`,
width: 1200,
height: 630,
alt: 'Eduardo Couto - Full Stack Software Developer',
},
],
},
twitter: {
card: 'summary_large_image',
title: 'Eduardo Couto - Full Stack Developer | Java & TypeScript Specialist',
description:
'Full Stack Software Developer with 2+ years experience in Java, TypeScript, AWS, and more. Building scalable solutions from Portugal for global clients.',
images: [`${baseUrl}eduardo_couto.jpg`],
},
};

export const JSON_LD = {
'@context': 'https://schema.org',
'@type': 'Person',
name: 'Eduardo Couto',
jobTitle: 'Full Stack Software Developer',
url: baseUrl,
sameAs: ['https://www.linkedin.com/in/eduardo-ribeiro-couto/', 'https://github.com/Eduardoooxd'],
knowsAbout: ['Java', 'TypeScript', 'AWS', 'Full Stack Development', 'React', 'Node.js'],
worksFor: {
'@type': 'Organization',
name: 'Blip - Backend Developer',
},
address: {
'@type': 'PostalAddress',
addressCountry: 'Portugal',
},
};
export const links = [
{
name: 'Home',
Expand Down

0 comments on commit 1bce8fc

Please sign in to comment.