-
-
+
+
diff --git a/src/components/HNPosts/Navigation.tsx b/src/components/HNPosts/Navigation.tsx
index 3c223b7f7..1d8220ef8 100644
--- a/src/components/HNPosts/Navigation.tsx
+++ b/src/components/HNPosts/Navigation.tsx
@@ -1,7 +1,7 @@
import * as React from 'react'
import Link from 'next/link'
-import Grid from '~/components/Grid'
import { StyledA } from './style'
+import Flex from '../Flex'
interface Props {
active: string
@@ -11,7 +11,7 @@ export default function Navigation(props: Props) {
const { active } = props
return (
-
+ Top
@@ -21,6 +21,6 @@ export default function Navigation(props: Props) {
About
-
+
)
}
diff --git a/src/components/HNPosts/PostListItem.tsx b/src/components/HNPosts/PostListItem.tsx
index 3bae962a0..f362bb388 100644
--- a/src/components/HNPosts/PostListItem.tsx
+++ b/src/components/HNPosts/PostListItem.tsx
@@ -1,8 +1,8 @@
import * as React from 'react'
import { A } from '~/components/Typography'
-import Grid from '~/components/Grid'
import Byline from '../HNPost/Byline'
import { HNPost } from '~/pages/hn'
+import Flex from '../Flex'
interface Props {
post: HNPost
@@ -12,12 +12,12 @@ export const PostListItem = React.memo((props: Props) => {
const { post } = props
return (
-
+
{post.title}
-
+
)
})
diff --git a/src/components/HNPosts/index.tsx b/src/components/HNPosts/index.tsx
index ecc885f14..ea9853a5e 100644
--- a/src/components/HNPosts/index.tsx
+++ b/src/components/HNPosts/index.tsx
@@ -1,7 +1,7 @@
import * as React from 'react'
-import Grid from '~/components/Grid'
import { PostListItem } from './PostListItem'
import { HNPost } from '~/pages/hn'
+import Flex from '../Flex'
interface Props {
posts: HNPost[]
@@ -11,11 +11,11 @@ const PostList = React.memo((props: Props) => {
const { posts } = props
return (
-
+
{posts.map((post) => (
))}
-
+
)
})
diff --git a/src/components/Overthought/List/index.tsx b/src/components/Overthought/List/index.tsx
index a3cbac59f..55f4a7082 100644
--- a/src/components/Overthought/List/index.tsx
+++ b/src/components/Overthought/List/index.tsx
@@ -3,7 +3,7 @@ import { format } from 'timeago.js'
import { Post } from '~/graphql/types.generated'
import Link from 'next/link'
import { A, Small, LineClamp } from '~/components/Typography'
-import Grid from '~/components/Grid'
+import Flex from '~/components/Flex'
interface Props {
posts: Post[]
@@ -12,9 +12,9 @@ interface Props {
export default function OverthoughtList({ posts }: Props) {
if (!posts || posts.length === 0) return null
return (
-
+
{posts.map((post) => (
-
+
{post.excerpt && {post.excerpt}}
Updated {format(post.updated_at)}
-
+
))}
-
+
)
}
diff --git a/src/components/Overthought/Post/index.tsx b/src/components/Overthought/Post/index.tsx
index ea6a232a4..9bff9ddc6 100644
--- a/src/components/Overthought/Post/index.tsx
+++ b/src/components/Overthought/Post/index.tsx
@@ -1,28 +1,22 @@
import * as React from 'react'
-import Link from 'next/link'
import { Post } from '~/graphql/types.generated'
-import { ContentContainer, SectionHeading } from '~/components/Page'
-import { H3, A, Rarr, Small } from '~/components/Typography'
+import { ContentContainer } from '~/components/Page'
+import { H3, Small } from '~/components/Typography'
import OverthoughtSubscribeBox from '~/components/Overthought/Subscribe'
import SyntaxHighlighter from '~/components/SyntaxHighlighter'
import SEO from './SEO'
-import List from '../List'
import Feedback from '../Feedback'
import { FeaturedImage } from './style'
-import Grid from '~/components/Grid'
import GlobalPrismStyles from '~/components/GlobalStyles/prism'
import GlobalMarkdownStyles from '~/components/GlobalStyles/markdown'
import { format } from 'timeago.js'
+import Flex from '~/components/Flex'
interface Props {
post: Post
- posts: Post[]
}
-export default function PostView({ post, posts }: Props) {
- const filtered =
- posts && posts.length > 0 ? posts.filter((p) => p.slug !== post.slug) : []
-
+export default function PostView({ post }: Props) {
return (
@@ -31,7 +25,7 @@ export default function PostView({ post, posts }: Props) {
-
+
{post.feature_image && (
)}
-
+
{post.title}
Updated {format(post.updated_at)}
-
-
+
+
-
+
-
-
More from Overthought
- {filtered && }
-
-
- See all posts
-
-
-
-
+
)
diff --git a/src/components/Overthought/Post/style.tsx b/src/components/Overthought/Post/style.tsx
index e42c37fb1..54fd0cdcd 100644
--- a/src/components/Overthought/Post/style.tsx
+++ b/src/components/Overthought/Post/style.tsx
@@ -6,7 +6,6 @@ export const FeaturedImage = styled.img`
margin-left: -24px;
margin-right: -24px;
border-radius: 8px;
- margin-bottom: 32px;
@media (max-width: 768px) {
width: 100%;
diff --git a/src/components/PodcastEpisodesList/index.tsx b/src/components/PodcastEpisodesList/index.tsx
index e02b27b53..c89350997 100644
--- a/src/components/PodcastEpisodesList/index.tsx
+++ b/src/components/PodcastEpisodesList/index.tsx
@@ -1,8 +1,8 @@
import React from 'react'
import { A, LineClamp, Small } from '~/components/Typography'
import { Episode } from '~/graphql/types.generated'
-import Grid from '../Grid'
import { format } from 'timeago.js'
+import Flex from '../Flex'
interface Props {
episodes: Episode[]
@@ -10,9 +10,9 @@ interface Props {
export default function PodcastEpisodesList({ episodes }: Props) {
return (
-
+
{episodes.map((ep) => (
-
+ {ep.description}
Released {format(ep.published_at)}
-
+
))}
-
+
)
}
diff --git a/src/graphql/queries/posts.ts b/src/graphql/queries/posts.ts
index adef407ea..e1134d8e9 100644
--- a/src/graphql/queries/posts.ts
+++ b/src/graphql/queries/posts.ts
@@ -15,9 +15,6 @@ export const GET_POST = gql`
post(slug: $slug) {
...PostInfo
}
- posts(first: $first) {
- ...PostInfo
- }
}
${PostInfoFragment}
`
diff --git a/src/pages/about.tsx b/src/pages/about.tsx
index b2f3f7cee..010f991bd 100644
--- a/src/pages/about.tsx
+++ b/src/pages/about.tsx
@@ -4,11 +4,13 @@ import Page from '~/components/Page'
import { P, H5 } from '~/components/Typography'
import theme from '~/components/Theme'
import Picture from '~/components/Picture'
-import Grid from '~/components/Grid'
import { withApollo } from '~/components/withApollo'
import { initApolloClient } from '~/graphql/services/apollo'
import { GET_AMA_QUESTIONS } from '~/graphql/queries/ama'
import AMAQuestions from '~/components/AMAQuestions'
+import Flex from '~/components/Flex'
+import { CenteredColumn } from '~/components/Layouts'
+import GlobalMarkdownStyles from '~/components/GlobalStyles/markdown'
const Container = styled.div`
width: calc(100% + 32px);
@@ -44,8 +46,9 @@ const Container = styled.div`
function About() {
return (
-
-
+
+
+
-
+
👋 I’m a product designer, podcaster, and writer, currently living
in San Francisco. Let’s grab a coffee.
@@ -162,14 +165,14 @@ function About() {
-
-
+
+
Ask Me Anything
Just for fun! Questions will be visible after I’ve answered.
-
-
-
+
+
+
)
}
diff --git a/src/pages/ama.tsx b/src/pages/ama.tsx
index d21f957a3..47cac49af 100644
--- a/src/pages/ama.tsx
+++ b/src/pages/ama.tsx
@@ -1,7 +1,6 @@
import * as React from 'react'
import Page from '~/components/Page'
import { P, H3 } from '~/components/Typography'
-import Grid from '~/components/Grid'
import { withApollo } from '~/components/withApollo'
import { initApolloClient } from '~/graphql/services/apollo'
import { GET_AMA_QUESTIONS } from '~/graphql/queries/ama'
@@ -9,10 +8,13 @@ import AMAQuestions from '~/components/AMAQuestions'
import { CenteredColumn } from '~/components/Layouts'
import { NextSeo } from 'next-seo'
import { AmaStatus } from '~/graphql/types.generated'
+import GlobalMarkdownStyles from '~/components/GlobalStyles/markdown'
+import Flex from '~/components/Flex'
function About() {
return (
+
-
+
Ask Me Anything
Just for fun! Questions will be visible after I’ve answered.
-
+
)
diff --git a/src/pages/bookmarks.tsx b/src/pages/bookmarks.tsx
index f7003c5ea..bd6220b52 100644
--- a/src/pages/bookmarks.tsx
+++ b/src/pages/bookmarks.tsx
@@ -8,8 +8,8 @@ import { useAuth } from '~/hooks/useAuth'
import AddBookmark from '~/components/Bookmarks/AddBookmark'
import { initApolloClient } from '~/graphql/services/apollo'
import { withApollo } from '~/components/withApollo'
-import Grid from '~/components/Grid'
import { CenteredColumn } from '~/components/Layouts'
+import Flex from '~/components/Flex'
function Bookmarks() {
const { isMe } = useAuth()
@@ -32,11 +32,11 @@ function Bookmarks() {
}}
/>
-
+
Bookmarks
{isMe && }
-
+
)
diff --git a/src/pages/design-details/index.tsx b/src/pages/design-details/index.tsx
index 627733318..f8fb4f467 100644
--- a/src/pages/design-details/index.tsx
+++ b/src/pages/design-details/index.tsx
@@ -3,8 +3,9 @@ import { NextSeo } from 'next-seo'
import Page from '~/components/Page'
import { H3, Subheading } from '~/components/Typography'
import DesignDetailsGrid from '~/components/DesignDetailsGrid'
-import Grid from '~/components/Grid'
import { summaries } from '~/data/appDissections'
+import { CenteredColumn } from '~/components/Layouts'
+import Flex from '~/components/Flex'
export default function DesignDetails() {
return (
@@ -26,23 +27,21 @@ export default function DesignDetails() {
}}
/>
-
-
-
App Dissection
-
- This collection of posts explores some of the best interaction
- patterns, visual styles, and design decisions of well-known apps.
- Each detail features a video and my commentary on the functionality
- and effectiveness of the interface.
-
-
+
+
+
+
App Dissection
+
+ This collection of posts explores some of the best interaction
+ patterns, visual styles, and design decisions of well-known apps.
+ Each detail features a video and my commentary on the
+ functionality and effectiveness of the interface.
+
+
-
-
+
+
+
)
}
diff --git a/src/pages/hn/about.tsx b/src/pages/hn/about.tsx
index d2cb00cd2..e11cea8af 100644
--- a/src/pages/hn/about.tsx
+++ b/src/pages/hn/about.tsx
@@ -2,11 +2,11 @@ import * as React from 'react'
import Page from '~/components/Page'
import { NextSeo } from 'next-seo'
import { CenteredColumn } from '~/components/Layouts'
-import Grid from '~/components/Grid'
import { H3, P, H5 } from '~/components/Typography'
import Navigation from '~/components/HNPosts/Navigation'
import GlobalMarkdownStyles from '~/components/GlobalStyles/markdown'
import HNSubscribeBox from '~/components/HNSubscribe'
+import Flex from '~/components/Flex'
export default function HNAbout() {
return (
@@ -30,11 +30,11 @@ export default function HNAbout() {
/>
-
+
Hacker News
-
+
Hacker News is a
fantastic way to stay up to date on technology and software news.
@@ -125,8 +125,8 @@ export default function HNAbout() {
incrementally. But I don’t plan to add support for other content
types like polls or jobs, which I never visit on HN anyways.
-
-
+
+
diff --git a/src/pages/hn/best.tsx b/src/pages/hn/best.tsx
index 393c12a0a..f94dc04c6 100644
--- a/src/pages/hn/best.tsx
+++ b/src/pages/hn/best.tsx
@@ -3,12 +3,12 @@ import Page from '~/components/Page'
import { NextSeo } from 'next-seo'
import { CenteredColumn } from '~/components/Layouts'
import HNPosts from '~/components/HNPosts'
-import Grid from '~/components/Grid'
import { H3 } from '~/components/Typography'
import Navigation from '~/components/HNPosts/Navigation'
import { getHNPosts } from '~/graphql/services/hn'
import { HNPost } from '.'
import HNSubscribeBox from '~/components/HNSubscribe'
+import Flex from '~/components/Flex'
interface Props {
posts: HNPost[]
@@ -35,12 +35,12 @@ export default function HNBest(props: Props) {
/>
-
+
Hacker News
-
+
)
diff --git a/src/pages/hn/index.tsx b/src/pages/hn/index.tsx
index e0f436f13..0dd2731a1 100644
--- a/src/pages/hn/index.tsx
+++ b/src/pages/hn/index.tsx
@@ -4,11 +4,11 @@ import { NextSeo } from 'next-seo'
import { CenteredColumn } from '~/components/Layouts'
import HNPosts from '~/components/HNPosts'
import { HNComment } from '~/components/HNPost/Comment'
-import Grid from '~/components/Grid'
import { H3 } from '~/components/Typography'
import Navigation from '~/components/HNPosts/Navigation'
import { getHNPosts } from '~/graphql/services/hn'
import HNSubscribeBox from '~/components/HNSubscribe'
+import Flex from '~/components/Flex'
export interface HNPost {
id: string
@@ -48,12 +48,12 @@ export default function HNTop(props: Props) {
/>
-
+
Hacker News
-
+
)
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 1cfa19d5b..c9407a8ab 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -9,9 +9,10 @@ import FigmaPlugins from '~/components/FigmaPlugins'
import { GET_HOME } from '~/graphql/queries'
import { Post, Episode, Repo } from '~/graphql/types.generated'
import { initApolloClient } from '~/graphql/services/apollo'
-import Grid from '~/components/Grid'
import { summaries } from '~/data/appDissections'
import { DesignDetailsPostSummary } from '~/data/appDissections'
+import { CenteredColumn } from '~/components/Layouts'
+import Flex from '~/components/Flex'
interface Props {
data: {
@@ -25,9 +26,9 @@ interface Props {
function Home({ data, summaries }: Props) {
return (
-
-
-
+
+
+
👾
Hey, I’m Brian.
@@ -36,7 +37,7 @@ function Home({ data, summaries }: Props) {
GitHub. Let’s grab a coffee.