Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 89d70bc

Browse files
committed
Fixed container + box sizing + post card fixes 🚀
1 parent c0586e9 commit 89d70bc

File tree

10 files changed

+20
-13
lines changed

10 files changed

+20
-13
lines changed

src/components/design-system/molecules/pagination-navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import styled from "styled-components";
22
import React from "react";
3-
import { CallToActionInternal } from "../atoms/internal-call-to-action";
3+
import { CallToActionInternal } from "../atoms/call-to-action-internal";
44
import { track, tracking } from "../../../utils/tracking";
55

66
const CenterHorizontallyContainer = styled.div`

src/components/design-system/molecules/post-card.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ const PostCardContainer = styled.div`
3636

3737
const PostCardImageContainer = styled.div`
3838
width: 100%;
39-
margin-top: ${(props) => props.theme.spacing[2]};
40-
margin-bottom: ${(props) => props.theme.spacing[0]};
41-
height: 200px;
39+
height: 120px;
4240
overflow: hidden;
4341
display: flex;
4442
justify-content: center;
4543
align-items: center;
44+
45+
@media (min-width: 768px) {
46+
height: 200px;
47+
}
4648
`;
4749

4850
const PostCardLink = styled(StandardInternalLink)`
@@ -54,6 +56,7 @@ const PostCardLink = styled(StandardInternalLink)`
5456
`;
5557

5658
const PostCardTitle = styled(Heading5)`
59+
margin: 0 0 ${(props) => props.theme.spacing[2]};
5760
word-wrap: break-word;
5861
`;
5962

src/components/design-system/molecules/project.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import { Heading3 } from "../atoms/heading3";
3-
import { CallToActionExternal } from "../atoms/external-call-to-action";
3+
import { CallToActionExternal } from "../atoms/call-to-action-external";
44
import { track } from "../../../utils/tracking";
55
import styled from "styled-components";
66
import { Container } from "../atoms/container";

src/components/design-system/molecules/recent-post-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from "styled-components";
2-
import { CallToActionInternal } from "../atoms/internal-call-to-action";
2+
import { CallToActionInternal } from "../atoms/call-to-action-internal";
33
import { Heading6 } from "../atoms/heading6";
44
import { GatsbyImage, IGatsbyImageData } from "gatsby-plugin-image";
55
import React from "react";

src/components/design-system/molecules/social-contact.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from "react";
22
import { track } from "../../../utils/tracking";
3-
import { CallToActionExternal } from "../atoms/external-call-to-action";
3+
import { CallToActionExternal } from "../atoms/call-to-action-external";
44
import { Icon } from "../atoms/icon";
55

66
interface SocialContactProps {

src/components/design-system/organism/profile-presentation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Heading5 } from "../atoms/heading5";
44
import { SocialContacts } from "./social-contacts";
55
import { track, tracking } from "../../../utils/tracking";
66
import styled from "styled-components";
7-
import { CallToActionInternal } from "../atoms/internal-call-to-action";
7+
import { CallToActionInternal } from "../atoms/call-to-action-internal";
88
import { Heading2 } from "../atoms/heading2";
99

1010
const SocialContactsContainer = styled.div`

src/components/design-system/organism/technologies.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { StaticImage } from "gatsby-plugin-image";
22
import * as React from "react";
33
import { Paragraph } from "../atoms/paragraph";
44
import styled from "styled-components";
5+
import { ContainerFluid } from "../atoms/container-fluid";
56

6-
const TechnologiesContainer = styled.div`
7+
const TechnologiesContainer = styled(ContainerFluid)`
78
margin: 0;
89
display: flex;
910
flex-direction: column;

src/components/design-system/templates/blog-page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ import { Footer } from "../organism/footer";
99
import { WindowLocation } from "@reach/router";
1010

1111
const BlogContainer = styled(Container)`
12-
width: 90%;
13-
padding: 0;
14-
margin: ${(props) => props.theme.spacing[12]} auto auto;
12+
margin-top: ${(props) => props.theme.spacing[12]};
1513
`;
1614

1715
interface BlogPageProps {

src/components/global-style.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,9 @@ export const GlobalStyle: GlobalStyleComponent<
5050
display: flex;
5151
flex-direction: column;
5252
}
53+
54+
/* https://www.w3schools.com/css/css3_box-sizing.asp */
55+
* {
56+
box-sizing: border-box;
57+
}
5358
`;

src/pages/404.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { track, tracking } from "../utils/tracking";
33
import { Heading1 } from "../components/design-system/atoms/heading1";
44
import { Paragraph } from "../components/design-system/atoms/paragraph";
55
import { ContainerFullscreen } from "../components/design-system/atoms/container-fullscreen";
6-
import { CallToActionInternal } from "../components/design-system/atoms/internal-call-to-action";
6+
import { CallToActionInternal } from "../components/design-system/atoms/call-to-action-internal";
77
import { Page } from "../components/design-system/templates/page";
88

99
const NotFoundPage: React.FC = () => {

0 commit comments

Comments
 (0)