prevent github icon and page title overlap
This commit is contained in:
parent
489cfbe543
commit
d6653d2136
1 changed files with 12 additions and 2 deletions
|
@ -23,8 +23,16 @@ import { useEffect } from "react"
|
|||
|
||||
const map: Map = _map
|
||||
|
||||
const StyledTitle = styled.h1`
|
||||
const StyledTitle = styled.h1<{ pageType: PageType }>`
|
||||
margin-bottom: 1rem;
|
||||
|
||||
word-wrap: break-word;
|
||||
|
||||
${(props) => {
|
||||
if (props.pageType == PageType.PORTFOLIO_PROJECT) {
|
||||
return "margin-right: 3rem;"
|
||||
}
|
||||
}}
|
||||
`
|
||||
|
||||
const PortfolioGithubLinkContainer = styled.div`
|
||||
|
@ -249,7 +257,9 @@ const Page = () => {
|
|||
<GithubLinkIcon link={pageData.repo} />
|
||||
</PortfolioGithubLinkContainer>
|
||||
)}
|
||||
<StyledTitle>{pageData.title}</StyledTitle>
|
||||
<StyledTitle pageType={PageType.PORTFOLIO_PROJECT}>
|
||||
{pageData.title}
|
||||
</StyledTitle>
|
||||
|
||||
{pageType == PageType.PORTFOLIO_PROJECT &&
|
||||
pageData.badges.map((badge) => (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue