Commit e0cdbb6a authored by Stefan Probst's avatar Stefan Probst
Browse files

chore: rename website to service in about page

parent f50eba36
Pipeline #165709 passed with stages
in 11 minutes and 57 seconds
......@@ -136,10 +136,10 @@ function MainNavigation(): JSX.Element {
<Menu.Item>
{({ active }) => (
<MenuLink
href={{ pathname: '/about/website' }}
href={{ pathname: '/about/service' }}
highlighted={active}
>
About the website
About the service
</MenuLink>
)}
</Menu.Item>
......
import type { GetStaticPropsResult } from 'next'
import { getLastUpdatedTimestamp } from '@/api/git'
import AboutWebsiteScreen from '@/screens/about/AboutWebsiteScreen'
import AboutServiceScreen from '@/screens/about/AboutServiceScreen'
export type PageProps = {
lastUpdatedAt: string
}
/**
* About website page.
* About service page.
*/
export default function AboutPage(props: PageProps): JSX.Element {
return <AboutWebsiteScreen {...props} />
export default function AboutServicePage(props: PageProps): JSX.Element {
return <AboutServiceScreen {...props} />
}
export async function getStaticProps(): Promise<
GetStaticPropsResult<PageProps>
> {
const pageId = 'website'
const pageId = 'service'
const lastUpdatedAt = (await getLastUpdatedTimestamp(pageId)).toISOString()
return { props: { lastUpdatedAt } }
}
......@@ -9,7 +9,7 @@ export type PageProps = {
/**
* About team page.
*/
export default function AboutPage(props: PageProps): JSX.Element {
export default function AboutTeamPage(props: PageProps): JSX.Element {
return <AboutTeamScreen {...props} />
}
......
......@@ -16,7 +16,7 @@ import { useActiveLink } from '@/utils/useActiveLink'
const links = [
{ label: 'About the project', pathname: '/about' },
{ label: 'About the website', pathname: '/about/website' },
{ label: 'About the service', pathname: '/about/service' },
{ label: 'About the team', pathname: '/about/team' },
]
......@@ -52,7 +52,7 @@ export default function AboutLayout({
styles.sideColumn,
)}
>
<p className="font-bold text-lg p-6">Find out more</p>
<p className="p-6 text-lg font-bold">Find out more</p>
</div>
<SideColumn>
<nav aria-label="Page navigation">
......@@ -68,7 +68,7 @@ export default function AboutLayout({
</nav>
</SideColumn>
<MainColumn>
<div className="space-y-6 max-w-80ch mx-auto">
<div className="mx-auto space-y-6 max-w-80ch">
<Title>{title}</Title>
<Mdx>{children}</Mdx>
<LastUpdatedAt date={lastUpdatedAt} />
......
import type { PageProps } from '@/pages/about/index'
import AboutLayout from '@/screens/about/AboutLayout'
import Content, { metadata } from '@@/content/pages/website.mdx'
import Content, { metadata } from '@@/content/pages/service.mdx'
type ContentMetadata = {
title: string
......@@ -9,14 +9,14 @@ type ContentMetadata = {
const meta = metadata as ContentMetadata
/**
* About website screen.
* About service screen.
*/
export default function AboutWebsiteScreen({
export default function AboutServiceScreen({
lastUpdatedAt,
}: PageProps): JSX.Element {
return (
<AboutLayout
breadcrumb={{ pathname: '/about/website', label: 'About' }}
breadcrumb={{ pathname: '/about/service', label: 'About' }}
title={meta.title}
lastUpdatedAt={lastUpdatedAt}
>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment