Skip to content

Commit

Permalink
fix(layou): fix tops display
Browse files Browse the repository at this point in the history
  • Loading branch information
nfroidure committed Aug 23, 2023
1 parent 34db365 commit 4201ebd
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ import Heading3 from "../components/h3";
import Paragraph from "../components/p";
import { readGlobalStats } from "../utils/globalStats";
import Strong from "../components/strong";
import UnorderedList from "../components/ul";
import ListItem from "../components/li";
import Anchor from "../components/a";
import { CSS_BREAKPOINT_START_M } from "../utils/constants";
import {
getStaticProps as baseGetStaticProps,
type Props as BaseProps,
} from "./[...slug]";
import type { GetStaticProps } from "next";
import type { StatsSummary } from "../utils/writters";
import UnorderedList from "../components/ul";
import ListItem from "../components/li";
import Anchor from "../components/a";

type Props = BaseProps & {
globalStats: StatsSummary;
Expand Down Expand Up @@ -147,11 +148,14 @@ const Page = ({ entry, globalStats }: Props) => (
.clear {
clear: both;
}
.top {
display: flex;
}
.top .column {
flex: 1;
@media screen and (min-width: ${CSS_BREAKPOINT_START_M}) {
.top {
display: flex;
}
.top .column {
flex: 1;
}
}
`}</style>
</Layout>
Expand Down

0 comments on commit 4201ebd

Please sign in to comment.