Skip to content

Commit

Permalink
Include project company name in h3 so each project h3 is unique
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnHols committed Dec 6, 2024
1 parent ccae170 commit 9c6718c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions components/ProjectBrief.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@ const Container = styled('article', {
margin: 0 auto;
`,
])
const Header = styled.div`
const Header = styled.h3`
margin-top: 0;
margin-bottom: 0.5em;
`
const Title = styled.h3`
const Title = styled.div`
margin-top: 0;
margin-bottom: 0.1em;
`
const SubTitle = styled.div`
font-size: 1rem;
font-weight: 400;
margin-top: 0.5em;
`
const Period = styled.span``
const Main = styled.div(
({ theme }) => css`
Expand Down Expand Up @@ -161,10 +166,10 @@ const ProjectBrief = ({
<Container highlighted={highlighted} isPlaceholder={placeholder}>
<Header>
<Title>{functionTitle}</Title>
<div>
<SubTitle>
<span>{companyName}</span> (
<Period>{formatPeriod(started, ended)}</Period>)
</div>
</SubTitle>
</Header>
<Main>
{thumbnail && (
Expand Down

0 comments on commit 9c6718c

Please sign in to comment.