Skip to content

Commit

Permalink
🚚 Migrate about to app directory
Browse files Browse the repository at this point in the history
  • Loading branch information
carloscuesta committed Apr 15, 2023
1 parent 1e16fba commit 5f9a9e8
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import renderer from 'react-test-renderer'

import About from 'src/pages/about'
import About from '../page'

jest.mock('next-seo', () => ({
NextSeo: 'NextSeo',
Expand All @@ -12,7 +12,6 @@ jest.mock('next-seo', () => ({
So there's no point to test the rendering of them twice.
It's more easier to manage little snapshots than big ones.
*/

jest.mock('src/components/pages/about/Experience', () => 'Experience')
jest.mock('src/components/pages/about/WhoAmI', () => 'WhoAmI')

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client'

const Map = () => (
<>
<style jsx global>
Expand Down
File renamed without changes.
23 changes: 14 additions & 9 deletions src/pages/about/index.tsx β†’ src/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
import { NextSeo, SocialProfileJsonLd } from 'next-seo'
import { SocialProfileJsonLd } from 'next-seo'

import PageTitle from 'src/components/shared/PageTitle'
import Wrapper from 'src/components/shared/Wrapper'
import Experience from 'src/components/pages/about/Experience'
import Online from 'src/components/pages/about/Online'
import WhoAmI from 'src/components/pages/about/WhoAmI'
import Travelling from 'src/components/pages/about/Travelling'
import Experience from './components/Experience'
import Online from './components/Online'
import WhoAmI from './components/WhoAmI'
import Travelling from './components/Travelling'

export const metadata = {
title: 'About me',
description: 'Generated by Next.js',
alternates: {
canonical: '/about',
},
}

const About = () => (
<>
<NextSeo
canonical="https://carloscuesta.me/about"
title="Carlos Cuesta – About me"
/>
<SocialProfileJsonLd
useAppDir={true}
type="Person"
name="Carlos Cuesta"
url="https://carloscuesta.me"
Expand Down

0 comments on commit 5f9a9e8

Please sign in to comment.