Skip to content

Commit

Permalink
refactor: use Section component
Browse files Browse the repository at this point in the history
  • Loading branch information
mobily committed Apr 21, 2024
1 parent 5f52542 commit 3a97b5c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Slider from 'react-slick';

import { Homepage, Hero, Features, Feature, SectionHeader, NoSSR } from '@grapp/nextra-theme';
import { Homepage, Hero, Features, Feature, Section, SectionHeader, NoSSR } from '@grapp/nextra-theme';
import { Components } from '../components/Components';
import { Example, getExamples } from '../components/Example'

Expand Down Expand Up @@ -33,8 +33,8 @@ export const getStaticProps = () => {
</>
}
/>

<Features
className="mb-16"
header={
<SectionHeader
badge="Features"
Expand Down Expand Up @@ -89,14 +89,13 @@ export const getStaticProps = () => {
description="Stacks supports the responsive prop format. You can use responsive props to customize the spacing, number of columns, or alignments per screen size."
/>
</Features>

<div className="mx-auto max-w-[90rem] mt-16 nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]">
<SectionHeader
<Section className="pb-8">
<SectionHeader
badge="Components"
title="Component showcase."
description="A collection of reusable layout components in your React Native projects."
/>
<Components num={6} />
</div>
</Section>
</Homepage>

0 comments on commit 3a97b5c

Please sign in to comment.