Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/homepage/src/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ body {
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue';
/* overflow-x: hidden; */
-webkit-font-smoothing: antialiased;
}

@import 'https://cdn.jsdelivr.net/npm/@codesandbox/sandpack-react@latest/dist/index.css';
Expand Down
2 changes: 2 additions & 0 deletions packages/homepage/src/css/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ p {
padding-right: 0;
padding-top: 0;
margin-bottom: 1.0875rem;
letter-spacing: 0;
text-rendering: optimizeLegibility;
}

figure {
Expand Down
6 changes: 3 additions & 3 deletions packages/homepage/src/pages/blog/_elements.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from "styled-components";
import styled from 'styled-components';

export const Header = styled.section`
text-align: center;
Expand All @@ -17,7 +17,7 @@ export const Header = styled.section`
`;

export const PageTitle = styled.h1`
font-family: "TWKEverett", sans-serif;
font-family: 'TWKEverett', sans-serif;
font-size: 2.5rem;
line-height: 120%;
font-weight: normal;
Expand Down Expand Up @@ -103,7 +103,7 @@ export const Thumbnail = styled.img`
export const Posts = styled.article``;

export const Title = styled.h2`
font-family: "TWKEverett", sans-serif;
font-family: 'TWKEverett', sans-serif;
color: #fff;
margin: 0 0 0.5rem 0;
font-size: 23px;
Expand Down
75 changes: 64 additions & 11 deletions packages/homepage/src/templates/_post.elements.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,51 @@
import styled, { css } from 'styled-components';

export const PostContainer = styled.div`
${({ theme }) => css`
${() => css`
color: ${props => props.theme.homepage.white};
font-size: 1.1rem;
line-height: 1.6rem;
font-size: 17px;
font-weight: 300;
color: rgba(255, 255, 255, 0.75);
color: #c5c5c5;
padding: 0;

li {
line-height: 1.75rem;
}

p {
line-height: 1.75rem;
}

img {
margin-top: 0 !important;
}

blockquote {
border-radius: 6px;
background-color: #2a2a2a90;
color: #c5c5c5 !important;
margin: 0;
padding: 1.5rem 1.75rem;
p {
margin-bottom: 0;
}
margin-bottom: 1.5rem;
}

code {
background-color: #2a2a2a90;
border: 1px solid #373737;
border-radius: 0.375rem;
font-family: Native, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
Liberation Mono, Courier New, monospace;
font-size: 0.9em;
padding: 2px 0.25em;
}

video {
margin-bottom: 2rem;
}

h2,
h3,
h4,
Expand All @@ -22,7 +59,7 @@ export const PostContainer = styled.div`
h2 {
margin: 4rem 0 2rem 0;
font-size: 2rem;
letter-spacing: -1px;
letter-spacing: -0.01em;
}

h3 {
Expand All @@ -49,9 +86,28 @@ export const PostContainer = styled.div`
}
}

p:has(img) {
margin-top: 4rem;
margin-bottom: 4rem;
}

img {
display: block;
margin: 20px auto;
margin: 2rem -2rem;
height: auto;
width: inherit;
max-width: calc(100% + 4rem);
}

.gatsby-resp-image-link {
margin: 2rem -2rem;
height: auto;
width: inherit;
max-width: calc(100% + 4rem);
}

.gatsby-resp-image-wrapper a:hover {
border-color: transparent;
}

figcaption {
Expand All @@ -60,21 +116,18 @@ export const PostContainer = styled.div`
}

a {
color: ${theme.shySecondary};
color: #e3ff73;
text-decoration: none;
border-bottom: 1px solid rgba(255, 255, 255, 0);
transition: all 100ms ease-in 0s;
}

a:hover {
border-bottom: 1px solid;
border-color: ${theme.shySecondary};
border-color: #e3ff73;
}

font-weight: 400;
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
font-weight: 300;
}
`};
`;

Expand Down