Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
0b3e8c4c
Commit
0b3e8c4c
authored
Jan 05, 2021
by
Stefan Probst
Browse files
feat: render new about page [skip ci]
parent
0f5f27f4
Pipeline
#166209
skipped
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/modules/page/PageHeader.tsx
View file @
0b3e8c4c
...
...
@@ -143,6 +143,16 @@ function MainNavigation(): JSX.Element {
</
MenuLink
>
)
}
</
Menu
.
Item
>
<
Menu
.
Item
>
{
({
active
})
=>
(
<
MenuLink
href
=
{
{
pathname
:
'
/about/implementation
'
}
}
highlighted
=
{
active
}
>
About the implementation
</
MenuLink
>
)
}
</
Menu
.
Item
>
<
Menu
.
Item
>
{
({
active
})
=>
(
<
MenuLink
...
...
src/pages/about/implementation.tsx
0 → 100644
View file @
0b3e8c4c
import
type
{
GetStaticPropsResult
}
from
'
next
'
import
{
getLastUpdatedTimestamp
}
from
'
@/api/git
'
import
AboutImplementationScreen
from
'
@/screens/about/AboutImplementationScreen
'
export
type
PageProps
=
{
lastUpdatedAt
:
string
}
/**
* About implementation page.
*/
export
default
function
AboutImplementationPage
(
props
:
PageProps
):
JSX
.
Element
{
return
<
AboutImplementationScreen
{
...
props
}
/>
}
export
async
function
getStaticProps
():
Promise
<
GetStaticPropsResult
<
PageProps
>
>
{
const
pageId
=
'
implementation
'
const
lastUpdatedAt
=
(
await
getLastUpdatedTimestamp
(
pageId
)).
toISOString
()
return
{
props
:
{
lastUpdatedAt
}
}
}
src/screens/about/AboutImplementationScreen.tsx
0 → 100644
View file @
0b3e8c4c
import
type
{
PageProps
}
from
'
@/pages/about/index
'
import
AboutLayout
from
'
@/screens/about/AboutLayout
'
import
Content
,
{
metadata
}
from
'
@@/content/pages/implementation.mdx
'
type
ContentMetadata
=
{
title
:
string
}
const
meta
=
metadata
as
ContentMetadata
/**
* About service screen.
*/
export
default
function
AboutImplementationScreen
({
lastUpdatedAt
,
}:
PageProps
):
JSX
.
Element
{
return
(
<
AboutLayout
breadcrumb
=
{
{
pathname
:
'
/about/implementation
'
,
label
:
'
About
'
}
}
title
=
{
meta
.
title
}
lastUpdatedAt
=
{
lastUpdatedAt
}
>
<
Content
/>
</
AboutLayout
>
)
}
src/screens/about/AboutLayout.tsx
View file @
0b3e8c4c
...
...
@@ -17,6 +17,7 @@ import { useActiveLink } from '@/utils/useActiveLink'
const
links
=
[
{
label
:
'
About the project
'
,
pathname
:
'
/about
'
},
{
label
:
'
About the service
'
,
pathname
:
'
/about/service
'
},
{
label
:
'
About the implementation
'
,
pathname
:
'
/about/implementation
'
},
{
label
:
'
About the team
'
,
pathname
:
'
/about/team
'
},
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment