Skip to content

Commit a70a595

Browse files
committed
refactor: relocate Section component from components to primitives and update all references.
1 parent 7dc062d commit a70a595

File tree

10 files changed

+11
-10
lines changed

10 files changed

+11
-10
lines changed

demo/src/Demo.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ const FEATURES_GRID_ITEMS = [
143143
title: 'Developer Experience',
144144
description: 'Backward-compat aliases, JSDoc completo, exports organizados. Atualizar é indolor.',
145145
span: { base: 12, md: 8 },
146-
background: 'gray',
146+
background: 'gray.9',
147+
dark: true,
147148
layout: 'split',
148149
codeBlock: `import {
149150
Header,

src/components/CTABanner.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Paper, Stack, Text, Box } from '@mantine/core'
2-
import { Section } from './Section.jsx'
2+
import { Section } from '../primitives/Section.jsx'
33
import { resolveBackground } from '../configs/backgrounds.js'
44
import { CTAButton } from '../primitives/CTAButton.jsx'
55

src/components/Comparison.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Fragment } from 'react'
22
import { SimpleGrid, Stack, Text, Paper, List, ThemeIcon, Group, Divider, Badge, Box } from '@mantine/core'
33
import { IconCheck } from '@tabler/icons-react'
4-
import { Section } from './Section.jsx'
4+
import { Section } from '../primitives/Section.jsx'
55
import { resolveBackground } from '../configs/backgrounds.js'
66
import { CTAButton } from '../primitives/CTAButton.jsx'
77

src/components/FAQ.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Stack, Accordion, Text, Paper, SimpleGrid, ThemeIcon } from '@mantine/core'
22
import { IconBolt } from '@tabler/icons-react'
3-
import { Section } from './Section.jsx'
3+
import { Section } from '../primitives/Section.jsx'
44
import { resolveBackground } from '../configs/backgrounds.js'
55
import { CTAButton } from '../primitives/CTAButton.jsx'
66

src/components/FeatureSplit.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { SimpleGrid, Stack, Text, ThemeIcon, List, Group } from '@mantine/core'
22
import { IconCheck } from '@tabler/icons-react'
3-
import { Section } from './Section.jsx'
3+
import { Section } from '../primitives/Section.jsx'
44
import { MediaBlock } from '../primitives/MediaBlock.jsx'
55
import { CTAButton } from '../primitives/CTAButton.jsx'
66

src/components/FeaturesGrid.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Grid, Paper, Stack, Text, ThemeIcon, Group, Box, Badge, Center, RingProgress, Code } from '@mantine/core'
2-
import { Section } from './Section.jsx'
2+
import { Section } from '../primitives/Section.jsx'
33
import { resolveBackground } from '../configs/backgrounds.js'
44

55
/**

src/components/Pricing.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Box, Stack, Text, Group, SegmentedControl, Badge, SimpleGrid, Paper, Divider } from '@mantine/core'
22
import { IconCheck } from '@tabler/icons-react'
3-
import { Section } from './Section.jsx'
3+
import { Section } from '../primitives/Section.jsx'
44
import { CTAButton } from '../primitives/CTAButton.jsx'
55

66
/**

src/components/Testimonials.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Stack, SimpleGrid, Paper, Group, Avatar, Text } from '@mantine/core'
22
import { IconQuote } from '@tabler/icons-react'
3-
import { Section } from './Section.jsx'
3+
import { Section } from '../primitives/Section.jsx'
44
import { resolveBackground } from '../configs/backgrounds.js'
55

66
/**

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export { MediaBlock } from './primitives/MediaBlock.jsx'
99
export { CTAButton } from './primitives/CTAButton.jsx'
1010

1111
// Components
12-
export { Section } from './components/Section.jsx'
12+
export { Section } from './primitives/Section.jsx'
1313
export { Layout } from './components/Layout.jsx'
1414
export { Header, Navbar } from './components/Header.jsx'
1515
export { Hero } from './components/Hero.jsx'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Box, Container, Stack } from '@mantine/core'
2-
import { SectionHeader } from '../primitives/SectionHeader.jsx'
2+
import { SectionHeader } from './SectionHeader.jsx'
33
import { resolveBackground } from '../configs/backgrounds.js'
44

55
/**

0 commit comments

Comments
 (0)