Initialize project using Create React App
This commit is contained in:
42
src/App.js
Normal file
42
src/App.js
Normal file
@@ -0,0 +1,42 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
ChakraProvider,
|
||||
Box,
|
||||
Text,
|
||||
Link,
|
||||
VStack,
|
||||
Code,
|
||||
Grid,
|
||||
theme,
|
||||
} from '@chakra-ui/react';
|
||||
import { ColorModeSwitcher } from './ColorModeSwitcher';
|
||||
import { Logo } from './Logo';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<ChakraProvider theme={theme}>
|
||||
<Box textAlign="center" fontSize="xl">
|
||||
<Grid minH="100vh" p={3}>
|
||||
<ColorModeSwitcher justifySelf="flex-end" />
|
||||
<VStack spacing={8}>
|
||||
<Logo h="40vmin" pointerEvents="none" />
|
||||
<Text>
|
||||
Edit <Code fontSize="xl">src/App.js</Code> and save to reload.
|
||||
</Text>
|
||||
<Link
|
||||
color="teal.500"
|
||||
href="https://chakra-ui.com"
|
||||
fontSize="2xl"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn Chakra
|
||||
</Link>
|
||||
</VStack>
|
||||
</Grid>
|
||||
</Box>
|
||||
</ChakraProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user