Skip to content

Commit

Permalink
Add Projects page description
Browse files Browse the repository at this point in the history
  • Loading branch information
shellbear committed Jun 12, 2021
1 parent a9cd6ea commit 0a7a3d1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
15 changes: 13 additions & 2 deletions components/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import {
fontWeight,
display,
typography,
layout,
compose,
TextAlignProps,
MarginProps,
FontWeightProps,
DisplayProps,
FontSizeProps,
TypographyProps,
LayoutProps,
} from 'styled-system';

const Text = styled.p<
Expand All @@ -21,7 +23,8 @@ const Text = styled.p<
FontSizeProps &
FontWeightProps &
DisplayProps &
TypographyProps
TypographyProps &
LayoutProps
>`
font-size: 1.125rem;
margin: 0.75rem 0;
Expand All @@ -30,7 +33,15 @@ const Text = styled.p<
line-height: 160%;
letter-spacing: 0.02em;
${compose(textAlign, margin, fontSize, fontWeight, display, typography)}
${compose(
textAlign,
margin,
fontSize,
fontWeight,
display,
typography,
layout,
)}
`;

export default Text;
9 changes: 8 additions & 1 deletion pages/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ const Projects: React.FC<ProjectProps> = ({ projects }) => (
<Head>
<title>Projects</title>
</Head>
<Title>Projects</Title>
<Container alignItems="center">
<Title>Projects</Title>
<Text textAlign="center">
I'm always working on new projects. <br />
You can find them on my&nbsp;
<a href="https://github.com/shellbear">Github</a>.
</Text>
</Container>
<Grid
py="4rem"
gridTemplateColumns={['1fr', 'repeat(2, 1fr)']}
Expand Down

0 comments on commit 0a7a3d1

Please sign in to comment.