Skip to content

Commit

Permalink
fix: add padding to mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigMcCahill committed Dec 1, 2022
1 parent 8d842ab commit e35064a
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions src/pages/beta/teachers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { HomeSiteCards, SharedHomeContent } from "../../components/pages/Home";
import KeyStageKeypad from "../../components/KeyStageKeypad";
import Grid, { GridArea } from "../../components/Grid";
import usePostList from "../../components/Posts/PostList/usePostList";
import Box from "../../components/Box";

const Teachers: NextPage<HomePageProps> = (props) => {
const posts = props.posts.map(postToPostListItem);
Expand All @@ -26,22 +27,24 @@ const Teachers: NextPage<HomePageProps> = (props) => {
<AppLayout seoProps={DEFAULT_SEO_PROPS} $background={"grey1"}>
<Flex $justifyContent={"center"} $background={"pupilsLightGreen"}>
<MaxWidth>
<Heading
$font={["heading-5", "heading-4"]}
tag={"h1"}
$mt={120}
$color={"black"}
>
Your foundation for great lessons
</Heading>
<Heading $font={"heading-light-6"} tag={"h2"} $mt={8}>
Find inspiration. Get support. Go teach.
</Heading>
<Grid $mt={48}>
<GridArea $colSpan={[12, 6, 4]}>
<KeyStageKeypad keyStages={keyStageKeypad.keyStages} />
</GridArea>
</Grid>
<Box $ph={[16, 0]}>
<Heading
$font={["heading-5", "heading-4"]}
tag={"h1"}
$mt={120}
$color={"black"}
>
Your foundation for great lessons
</Heading>
<Heading $font={"heading-light-6"} tag={"h2"} $mt={8}>
Find inspiration. Get support. Go teach.
</Heading>
<Grid $mt={48}>
<GridArea $colSpan={[12, 6, 4]}>
<KeyStageKeypad keyStages={keyStageKeypad.keyStages} />
</GridArea>
</Grid>
</Box>
<HomeSiteCards />
</MaxWidth>
</Flex>
Expand Down

0 comments on commit e35064a

Please sign in to comment.