├── .gitignore ├── LICENSE.md ├── README.md ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── App.js ├── assets ├── chakraHero.jpg └── teamImage.jpg ├── components ├── AboutUs.js ├── ContactUs.js ├── DrawerComponent.js ├── Footer.js ├── Hero.js ├── Nav.js ├── Services.js └── Testimonials.js ├── index.css ├── index.js ├── reportWebVitals.js └── theme.js /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 App Generator 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [React Chakra Introduction](https://blog.appseed.us/chakra-ui-react-coding-landing-page/) 2 | 3 | Sample Code for the blog article [React Chakra UI Components - Learn by Coding](https://blog.appseed.us/chakra-ui-react-coding-landing-page/) - Provided by **[App-Generator](https://app-generator.dev/)**. 4 | 5 | The article explains how to use the Chakra UI library in React.js by building a responsive website. The website will be built with Chakra components only, no HTML elements will be used. 6 | 7 | - 👉 [React Chakra Landing Page](https://react-chakra-ui-landing-page.appseed-srv1.com/) - LIVE Demo 8 | - 👉 [React Apps](https://app-generator.dev/product/?search=react) - index provided by **[App-Generator](https://app-generator.dev/)** 9 | 10 |
11 | 12 | ## How to use it 13 | 14 | - Install `NodejS` - version 14.x or higher 15 | - Install dependencies via `yarn` 16 | - Start the project: `yarn start` 17 | 18 |
19 | 20 | ![React MUI Introduction - Sample Page crafted with MUI.](https://user-images.githubusercontent.com/51070104/167240339-dc157d52-8fc1-410f-b5f1-74ab11205b0b.gif) 21 | 22 |
23 | 24 | ## Components 25 | 26 | - `Header` 27 | - `Hero` 28 | - `Info Section` 29 | - `AboutUs` 30 | - `Testimonial` 31 | - `ContactUs` 32 | - `Footer` 33 | 34 |
35 | 36 | ## [Getting Started with React](https://app-generator.dev/docs/technologies/react/index.html) 37 | 38 | React.js is a JavaScript library that allows you to build fast and efficient web applications using the minimum amount of code possible. In React.js, you can break the web layout into components - reusable bits of code that return HTML elements. 39 | 40 | - 👉 [JavaScript concepts for React Beginners](https://blog.appseed.us/10-javascript-concepts-for-react-beginners/) 41 | 42 |
43 | 44 | ## Chakra UI Library 45 | 46 | Chakra UI is a library that allows you to build stunning and modern web applications using various layout components. It differs from other UI frameworks in that it offers accessibility and dark mode support by default. 47 | 48 | With Chakra UI, you spend less time building responsive and beautiful websites. If you want to create a web application that allows users to switch between different color modes with minimal lines of code, then Chakra UI is an excellent choice. 49 | 50 | - 👉 [Chakra UI](https://chakra-ui.com/) - official website 51 | 52 |
53 | 54 | --- 55 | [React Chakra Introduction](https://blog.appseed.us/chakra-ui-react-coding-landing-page/) - provided by **[App-Generator](https://app-generator.dev/)**. 56 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "chakra-ui", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@chakra-ui/icons": "^1.1.7", 7 | "@chakra-ui/react": "^1.8.8", 8 | "@emotion/react": "^11.9.0", 9 | "@emotion/styled": "^11.8.1", 10 | "@testing-library/jest-dom": "^5.16.4", 11 | "@testing-library/react": "^13.1.1", 12 | "@testing-library/user-event": "^13.5.0", 13 | "framer-motion": "^6.3.3", 14 | "react": "^18.1.0", 15 | "react-dom": "^18.1.0", 16 | "react-icons": "^4.3.1", 17 | "react-scripts": "5.0.1", 18 | "web-vitals": "^2.1.4" 19 | }, 20 | "scripts": { 21 | "start": "react-scripts start", 22 | "build": "react-scripts build", 23 | "test": "react-scripts test", 24 | "eject": "react-scripts eject" 25 | }, 26 | "eslintConfig": { 27 | "extends": [ 28 | "react-app", 29 | "react-app/jest" 30 | ] 31 | }, 32 | "browserslist": { 33 | "production": [ 34 | ">0.2%", 35 | "not dead", 36 | "not op_mini all" 37 | ], 38 | "development": [ 39 | "last 1 chrome version", 40 | "last 1 firefox version", 41 | "last 1 safari version" 42 | ] 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/app-generator/sample-react-chakra-ui-introduction/65b66d592b0f069c6bd6443993274a91fb5a9db0/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 19 | 20 | 21 | 30 | Chakra UI | AppSeed 31 | 32 | 33 | 34 |
35 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/app-generator/sample-react-chakra-ui-introduction/65b66d592b0f069c6bd6443993274a91fb5a9db0/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/app-generator/sample-react-chakra-ui-introduction/65b66d592b0f069c6bd6443993274a91fb5a9db0/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import AboutUs from './components/AboutUs'; 2 | import ContactUs from './components/ContactUs'; 3 | import Footer from './components/Footer'; 4 | import Hero from './components/Hero'; 5 | import Nav from './components/Nav'; 6 | import Services from './components/Services'; 7 | import Testimonials from './components/Testimonials'; 8 | import React, { useRef } from 'react'; 9 | import { useDisclosure, Box } from '@chakra-ui/react'; 10 | import DrawerComponent from './components/DrawerComponent'; 11 | 12 | function App() { 13 | const { isOpen, onOpen, onClose } = useDisclosure(); 14 | const btnRef = useRef(); 15 | return ( 16 | 17 |