rename h2separator to h1 and expose component
This commit is contained in:
parent
461fba1efd
commit
f1c9831f58
@ -18,7 +18,7 @@ const TerminalDiamond = ({ right }) => (
|
|||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
|
|
||||||
const H2Separator = ({ title }) => {
|
export const H1Separator = ({ title, component }) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box display="flex">
|
<Box display="flex">
|
||||||
@ -28,7 +28,7 @@ const H2Separator = ({ title }) => {
|
|||||||
<Box py={1.5} px={1} border={1} borderTop={0}>
|
<Box py={1.5} px={1} border={1} borderTop={0}>
|
||||||
<Typography
|
<Typography
|
||||||
variant="h1"
|
variant="h1"
|
||||||
component="h2"
|
component={component}
|
||||||
sx={{ textTransform: "uppercase" }}
|
sx={{ textTransform: "uppercase" }}
|
||||||
>
|
>
|
||||||
{title}
|
{title}
|
||||||
@ -40,5 +40,3 @@ const H2Separator = ({ title }) => {
|
|||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default H2Separator
|
|
@ -6,7 +6,7 @@ import Layout from "../components/layout"
|
|||||||
import Seo from "../components/seo"
|
import Seo from "../components/seo"
|
||||||
import { Box, Button, Link, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Stack, Typography } from "@mui/material"
|
import { Box, Button, Link, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Stack, Typography } from "@mui/material"
|
||||||
import EastIcon from '@mui/icons-material/East'
|
import EastIcon from '@mui/icons-material/East'
|
||||||
import H2Separator from "../components/h2-separator"
|
import { H1Separator } from "../components/heading-separators"
|
||||||
|
|
||||||
const serviceMenu = [
|
const serviceMenu = [
|
||||||
{ label: "Support", path: "/" },
|
{ label: "Support", path: "/" },
|
||||||
@ -49,7 +49,7 @@ const BlogIndex = ({ data, location }) => {
|
|||||||
Autonomic is a co-operative that is owned and run by its workers
|
Autonomic is a co-operative that is owned and run by its workers
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<H2Separator title="What we offer" />
|
<H1Separator title="What we offer" component="h2" />
|
||||||
<List>
|
<List>
|
||||||
{serviceMenu.map(({ label, path }) => (
|
{serviceMenu.map(({ label, path }) => (
|
||||||
<ListItem key={label}>
|
<ListItem key={label}>
|
||||||
|
Loading…
Reference in New Issue
Block a user