Commit 99f15fed authored by tom's avatar tom

breakpoint and example

parent db51c201
...@@ -10,7 +10,7 @@ const Home: NextPage = () => { ...@@ -10,7 +10,7 @@ const Home: NextPage = () => {
return ( return (
<Page> <Page>
<Center h="100%"> <Center h="100%" fontSize={{ base: 'sm', lg: 'xl' }}>
<VStack gap={ 4 }> <VStack gap={ 4 }>
<Box>home page for { router.query.network_type } { router.query.network_sub_type } network</Box> <Box>home page for { router.query.network_type } { router.query.network_sub_type } network</Box>
</VStack> </VStack>
......
const breakpoints = {
lg: '1000px',
};
export default breakpoints;
...@@ -3,6 +3,7 @@ import { extendTheme } from '@chakra-ui/react'; ...@@ -3,6 +3,7 @@ import { extendTheme } from '@chakra-ui/react';
import components from './components/index'; import components from './components/index';
import config from './config'; import config from './config';
import borders from './foundations/borders'; import borders from './foundations/borders';
import breakpoints from './foundations/breakpoints';
import colors from './foundations/colors'; import colors from './foundations/colors';
import typography from './foundations/typography'; import typography from './foundations/typography';
import global from './global'; import global from './global';
...@@ -16,6 +17,7 @@ const overrides = { ...@@ -16,6 +17,7 @@ const overrides = {
styles: { styles: {
global, global,
}, },
breakpoints,
}; };
export default extendTheme(overrides); export default extendTheme(overrides);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment