Skip to content

Commit

Permalink
fix: image alignment on samenwerking page (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
stickyPiston committed Oct 9, 2024
1 parent 60895d8 commit 27582ed
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/templates/PageTemplate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import React from 'react';
import Markdown from 'markdown-to-jsx';
import { graphql } from 'gatsby';
import ContentfulPage from '../components/layout/ContentfulPage';
import styled from 'styled-components';

export default ({ data }) => {
const page = data.contentfulPage;

return (
<ContentfulPage page={page}>
<Markdown>{page.content.content}</Markdown>
<MarkdownPageStyle>
<Markdown>{page.content.content}</Markdown>
</MarkdownPageStyle>
</ContentfulPage>
);
};
Expand All @@ -23,3 +26,15 @@ export const pageQuery = graphql`
}
}
`;

const MarkdownPageStyle = styled.div`
.images {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}
.images > * {
width: 100%;
}
`;

0 comments on commit 27582ed

Please sign in to comment.