Skip to content

Commit

Permalink
fix(gatsby-admin): small design tweaks (#25971)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr authored Jul 23, 2020
1 parent ac40874 commit e699564
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions packages/gatsby-admin/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const PluginCard: React.FC<{
return (
<Flex
flexDirection="column"
gap={6}
gap={3}
sx={{ backgroundColor: `ui.background`, padding: 5, borderRadius: 2 }}
>
<Flex justifyContent="space-between">
Expand Down Expand Up @@ -118,33 +118,32 @@ const Index: React.FC<{}> = () => {
}

return (
<Flex gap={7} flexDirection="column" sx={{ paddingY: 7, paddingX: 6 }}>
<SectionHeading>Pages</SectionHeading>
<ul sx={{ pl: 0, listStyle: `none` }}>
{data.allGatsbyPage.nodes
.filter(page => page.path.indexOf(`/dev-404-page/`) !== 0)
.sort((a, b) => a.path.localeCompare(b.path))
.map(page => (
<li
key={page.path}
sx={{
py: 1,
}}
>
{page.path}
</li>
))}
</ul>
<Flex gap={8} flexDirection="column" sx={{ paddingY: 7, paddingX: 6 }}>
<Flex gap={6} flexDirection="column">
<SectionHeading>Pages</SectionHeading>
<ul sx={{ pl: 0, listStyle: `none` }}>
{data.allGatsbyPage.nodes
.filter(page => page.path.indexOf(`/dev-404-page/`) !== 0)
.sort((a, b) => a.path.localeCompare(b.path))
.map(page => (
<li key={page.path} sx={{ p: 0 }}>
{page.path}
</li>
))}
</ul>
</Flex>

<SectionHeading id="plugin-search-label">
Installed Plugins
</SectionHeading>
<Grid gap={6} columns={[1, 1, 1, 2, 3]}>
{data.allGatsbyPlugin.nodes.map(plugin => (
<PluginCard key={plugin.id} plugin={plugin} />
))}
</Grid>
<PluginSearchBar />
<Flex gap={6} flexDirection="column">
<SectionHeading id="plugin-search-label">
Installed Plugins
</SectionHeading>
<Grid gap={6} columns={[1, 1, 1, 2, 3]}>
{data.allGatsbyPlugin.nodes.map(plugin => (
<PluginCard key={plugin.id} plugin={plugin} />
))}
</Grid>
<PluginSearchBar />
</Flex>
</Flex>
)
}
Expand Down

0 comments on commit e699564

Please sign in to comment.