"}
80 |
{")"}
81 |
{'}'}
82 |
{'export'} default Header
83 |
84 |
85 |
86 |
87 | Nusxa olish
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 | )
96 | }
97 |
98 | export default HomeReact
--------------------------------------------------------------------------------
/src/components/homeVideo/homeVideo.jsx:
--------------------------------------------------------------------------------
1 | import { Box } from '@chakra-ui/react'
2 | import { video } from '../../assets'
3 |
4 | const HomeVideo = () => {
5 | return (
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | )
14 | }
15 |
16 | export default HomeVideo
--------------------------------------------------------------------------------
/src/components/index.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MOdevco/MOdevcoSchool/d95f3bac432350122dc1f39f89e6bb98fc629737/src/components/index.js
--------------------------------------------------------------------------------
/src/components/komment/komment.jsx:
--------------------------------------------------------------------------------
1 | import { ChevronDownIcon, DeleteIcon } from '@chakra-ui/icons'
2 | import { Avatar, Box, Button, Divider, Heading, Text } from '@chakra-ui/react'
3 | import axios from 'axios'
4 | import { useEffect, useState } from 'react'
5 | import {
6 | Popover,
7 | PopoverTrigger,
8 | PopoverContent,
9 | PopoverHeader,
10 | PopoverBody,
11 | PopoverFooter,
12 | PopoverArrow,
13 | PopoverCloseButton,
14 | PopoverAnchor,
15 | } from '@chakra-ui/react'
16 |
17 |
18 | const Komment = () => {
19 | const API = 'http://localhost:3000/komment'
20 | const [data , setData] = useState([])
21 |
22 | useEffect(() => {
23 | axios.get(API).then((res) => {
24 | setData(res.data)
25 | })
26 | } ,[API])
27 |
28 |
29 | const handleDlete = async (id) => {
30 | await axios.delete('http://localhost:3000/komment/' + id).then((res) => {
31 | axios.get(API).then((res) => {
32 | setData(res.data)
33 | })
34 | })
35 | }
36 |
37 |
38 | return (
39 |
40 |
41 |
42 |
43 |
44 | Kommentariyalar
45 |
46 |
47 |
48 | {data && data.map((item , i) => (
49 |
50 |
51 |
52 |
53 | Foidalanuvchi
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | Ma'lumotni tozalash
64 |
65 | handleDlete(item.id)} bg={'red'} _hover={{bg: 'red.500'}}>
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | {item.komment}
75 |
76 |
77 | ))}
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 | )
86 | }
87 |
88 | export default Komment
--------------------------------------------------------------------------------
/src/components/lessonCards/lessonCards.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Heading , Text , Button, useDisclosure } from '@chakra-ui/react'
2 | import { Link } from 'react-router-dom'
3 | import {
4 | Modal,
5 | ModalOverlay,
6 | ModalContent,
7 | ModalHeader,
8 | ModalFooter,
9 | ModalBody,
10 | ModalCloseButton,
11 | } from '@chakra-ui/react'
12 |
13 | const LessonCards = ({title ,text , bg , color , cardBg , cardColor , linkLess}) => {
14 | const { isOpen, onOpen, onClose } = useDisclosure()
15 | return (
16 |
17 |
18 |
19 |
20 |
21 | Ma'lumot
22 |
23 |
24 |
25 | Bu bo'limda hozircha darsliklar mavjut emas , tez orada bo'lim to'ldiriladi😊
26 |
27 |
28 |
29 |
30 | {title}
31 | {text}
32 |
33 | BOSHLASH
34 |
35 |
36 |
37 | )
38 | }
39 |
40 | export default LessonCards
--------------------------------------------------------------------------------
/src/components/mainTitle/mainTitle.css:
--------------------------------------------------------------------------------
1 |
2 | .center {
3 | display: flex;
4 | justify-content: flex-start;
5 | align-items: center ;
6 |
7 | }
--------------------------------------------------------------------------------
/src/components/modal/modal.jsx:
--------------------------------------------------------------------------------
1 | // import { Box, useDisclosure } from '@chakra-ui/react'
2 | // import {
3 | // Modal,
4 | // ModalOverlay,
5 | // ModalContent,
6 | // ModalHeader,
7 | // ModalFooter,
8 | // ModalBody,
9 | // ModalCloseButton,
10 | // } from '@chakra-ui/react'
11 | // const Modal = ({ isOpen}) => {
12 |
13 | // return (
14 | //
15 |
16 |
17 |
18 | //
19 | // )
20 | // }
21 |
22 | // export default Modal
--------------------------------------------------------------------------------
/src/components/opacityCard/opacityCard.jsx:
--------------------------------------------------------------------------------
1 | import { Box, Text, useToast } from '@chakra-ui/react'
2 | import React from 'react'
3 | import { useState } from 'react'
4 | import CopyToClipboard from 'react-copy-to-clipboard'
5 |
6 | const OpacityCard = ({text, opacity}) => {
7 | const [clipboard , setClipboard] = useState(false)
8 | const toast = useToast()
9 | const handleClip = () => {
10 | setClipboard(true)
11 | toast({
12 | position: 'top-right',
13 | render: () => (
14 |
15 | {text}dan Nusxa olindi!
16 |
17 | ),
18 | })
19 | }
20 | return (
21 |
22 |
23 |
24 |
25 | {text}
26 |
27 |
28 |
29 | )
30 | }
31 |
32 | export default OpacityCard
33 |
--------------------------------------------------------------------------------
/src/components/outlineProps/OutlineProps.jsx:
--------------------------------------------------------------------------------
1 | import { Box, Text } from '@chakra-ui/react'
2 | import React from 'react'
3 |
4 | const OutlineProps = ({borderStyle, text, borderColor, width, top, left, right, bottom}) => {
5 | return (
6 |
7 | {text}
8 |
9 | )
10 | }
11 |
12 | export default OutlineProps
13 |
--------------------------------------------------------------------------------
/src/components/particl.jsx:
--------------------------------------------------------------------------------
1 | import { Box } from "@chakra-ui/react";
2 | import { useCallback } from "react";
3 | import Particles from "react-tsparticles";
4 | import { loadSlim } from "tsparticles-slim";
5 |
6 | const Particl = () => {
7 | const particlesInit = useCallback(async engine => {
8 | await loadSlim(engine);
9 | }, []);
10 |
11 | const particlesLoaded = useCallback(async container => {
12 | }, []);
13 |
14 | return (
15 |
16 |
86 |
87 | )
88 | }
89 |
90 | export default Particl
--------------------------------------------------------------------------------
/src/components/propsColor/propsColor.jsx:
--------------------------------------------------------------------------------
1 | import {Box , Text} from '@chakra-ui/react'
2 |
3 |
4 | const PropsColor = ({bgColor , colorName}) => {
5 | return (
6 |
7 |
8 | {colorName}
9 |
10 |
11 | )
12 | }
13 |
14 | export default PropsColor
15 |
--------------------------------------------------------------------------------
/src/components/rgbVal/rgbVal.jsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from 'react'
2 | import {Box, Text, useToast} from '@chakra-ui/react'
3 | import CopyToClipboard from 'react-copy-to-clipboard'
4 | const RgbVal = ({bgColor, colorName, text}) => {
5 | const [clipboard , setClipboard] = useState(false)
6 | const toast = useToast()
7 | const handleClip = () => {
8 | setClipboard(true)
9 | toast({
10 | position: 'top-right',
11 | render: () => (
12 |
13 | {colorName}dan Nusxa olindi!
14 |
15 | ),
16 | })
17 | }
18 | return (
19 |
20 |
21 |
22 |
23 |
24 | {colorName}
25 |
26 |
27 |
28 |
29 |
30 | )
31 | }
32 |
33 | export default RgbVal
34 |
--------------------------------------------------------------------------------
/src/components/sidebarAdmi/sidebarAdmin.jsx:
--------------------------------------------------------------------------------
1 | import { DragHandleIcon } from '@chakra-ui/icons'
2 | import { Box, Button, useToast } from '@chakra-ui/react'
3 | // import HodimQoshish from '../hodimQo\'shish/hodimQo\'shish'
4 | import { FormControl, FormLabel, Input, useDisclosure } from '@chakra-ui/react'
5 | import {
6 | Modal,
7 | ModalOverlay,
8 | ModalContent,
9 | ModalHeader,
10 | ModalFooter,
11 | ModalBody,
12 | ModalCloseButton,
13 | } from '@chakra-ui/react'
14 | import axios from 'axios'
15 | import React, { useState } from 'react'
16 | import { value } from '../../assets'
17 |
18 | const SidebarAdmin = ({setData , data , handleAll , handleTaklif , handleXodim , handleKomment}) => {
19 | const { isOpen, onOpen, onClose } = useDisclosure()
20 | const initialRef = React.useRef(null)
21 | const finalRef = React.useRef(null)
22 | const [user , setUser] = useState({name: '' , lastname: '' , phone: '' , email: ''})
23 | const API = 'http://localhost:3000/users'
24 | const toast = useToast()
25 | const audio = () => {
26 | new Audio(value).play()
27 | }
28 | const handleSubmit = async () => {
29 | await axios.post(API , user).then((res) => {
30 | axios.get(API).then((res) => {
31 | setData(res.data)
32 | })
33 | toast({
34 | position: 'top-right',
35 | duration: 3000,
36 | render: () => (
37 |
38 | Ma'lumot qo'shildi
39 |
40 | ),
41 | })
42 | audio()
43 | })
44 | setUser("")
45 | }
46 | return (
47 |
48 |
49 | BARCHASI
50 | XODIMLAR
51 | TAKLIFLAR
52 | KOMMENTARIYALAR
53 | XODIM QO'SHISH
54 |
55 |
56 |
62 |
63 |
64 | Hodim Qo'shish
65 |
66 |
67 |
68 | Ism
69 | setUser({...user , name: e.target.value})} ref={initialRef} placeholder='Ism...' type={'text'}/>
70 |
71 |
72 |
73 | Familiya
74 | setUser({...user , lastname: e.target.value})} placeholder='Familiya...' type={'text'} />
75 |
76 |
77 |
78 | Telefon Raqam
79 | setUser({...user , phone: e.target.value})} placeholder='Telefon...' type={'number'} />
80 |
81 |
82 |
83 | Elektron Manzil
84 | setUser({...user , email: e.target.value})} placeholder='Email...' type={'email'} />
85 |
86 |
87 |
88 |
89 | {
90 | onClose()
91 | handleSubmit()
92 | }} colorScheme='blue' mr={3}>
93 | Saqlash
94 |
95 | Bekor Qilish
96 |
97 |
98 |
99 |
100 |
101 |
102 | )
103 | }
104 |
105 | export default SidebarAdmin
--------------------------------------------------------------------------------
/src/components/takliflar/takliflar.jsx:
--------------------------------------------------------------------------------
1 | import { Box, Button, Heading, Text, Textarea } from '@chakra-ui/react'
2 | import axios from 'axios'
3 | import React, { useEffect, useState } from 'react'
4 | import {
5 | Table,
6 | Thead,
7 | Tbody,
8 | Tfoot,
9 | Tr,
10 | Th,
11 | Td,
12 | TableCaption,
13 | TableContainer,
14 | } from '@chakra-ui/react'
15 | import { DeleteIcon } from '@chakra-ui/icons'
16 | import { err } from '../../assets'
17 | const Takliflar = () => {
18 | const API = 'http://localhost:3000/taklif'
19 | const [data , setData] = useState([])
20 | const audio = () => {
21 | new Audio(err).play()
22 | }
23 |
24 | useEffect(() => {
25 | axios.get(API).then((res) => {
26 | setData(res.data)
27 | })
28 | } ,[API])
29 |
30 |
31 | const handleDelete = (id) => {
32 | axios.delete('http://localhost:3000/taklif/' + id).then((res) => {
33 | axios.get(API).then((res) => {
34 | setData(res.data)
35 | })
36 | audio()
37 | })
38 | }
39 | return (
40 |
41 |
42 |
43 |
44 |
45 |
46 | Takliflar
47 |
48 |
49 | {data.map((res , i) => (
50 |
51 |
52 |
53 |
54 |
55 |
56 | Ism
57 | Email
58 | Mavzu
59 |
60 |
61 |
62 |
63 | {res.ism}
64 | {res.email}
65 | {res.mavzu}
66 |
67 |
68 |
69 |
70 |
71 | {/* Ism: {res.ism}
72 | Email: {res.email}
73 | Mavzu: {res.mavzu} */}
74 | Xabar:
75 |
78 |
79 | ))}
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | )
91 | }
92 |
93 | export default Takliflar
--------------------------------------------------------------------------------
/src/components/texnoCards/texnoCards.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Image , Text , Heading, useDisclosure } from '@chakra-ui/react'
2 | import {
3 | Modal,
4 | ModalOverlay,
5 | ModalContent,
6 | ModalHeader,
7 | ModalFooter,
8 | ModalBody,
9 | ModalCloseButton,
10 | } from '@chakra-ui/react'
11 |
12 |
13 | const TexnoCards = ({cardImg , cardTitle , modalTitle }) => {
14 | const { isOpen, onOpen, onClose } = useDisclosure()
15 | return (
16 |
17 |
18 |
19 |
20 | Ma'lumot
21 |
22 |
23 | {modalTitle}
24 |
25 |
26 |
27 |
28 |
29 |
30 | {cardTitle}
31 |
32 |
33 |
34 | )
35 | }
36 |
37 | export default TexnoCards
--------------------------------------------------------------------------------
/src/components/texnologiIcon/texno.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MOdevco/MOdevcoSchool/d95f3bac432350122dc1f39f89e6bb98fc629737/src/components/texnologiIcon/texno.css
--------------------------------------------------------------------------------
/src/components/texnologiIcon/texnologiIcon.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Image , Text , Heading } from '@chakra-ui/react'
2 | import { booPast, chakraPast, cssPast, htmlPast, jsPast, materPast, nextPast, reatcPast, tailPast } from '../../assets'
3 | import TexnoCards from '../texnoCards/texnoCards'
4 |
5 |
6 | const TexnologiIcon = () => {
7 | return (
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | )
20 | }
21 |
22 | export default TexnologiIcon
--------------------------------------------------------------------------------
/src/components/userProfil/userProfile.jsx:
--------------------------------------------------------------------------------
1 | import {
2 | Drawer,
3 | DrawerBody,
4 | DrawerFooter,
5 | DrawerHeader,
6 | DrawerOverlay,
7 | DrawerContent,
8 | DrawerCloseButton,
9 | Box,
10 | Button,
11 | useDisclosure,
12 | Avatar,
13 | Text
14 | ,Image
15 | } from '@chakra-ui/react'
16 | import { Link } from 'react-router-dom'
17 | import { useState , } from 'react'
18 | import { HamburgerIcon , ArrowLeftIcon , EmailIcon , QuestionIcon , StarIcon} from '@chakra-ui/icons'
19 | import { useAuthState } from 'react-firebase-hooks/auth'
20 | import { auth } from '../../firebase'
21 | import { closeAudio} from '../../assets'
22 | const UserProfile = () => {
23 | const handleCloseAudio = () => {
24 | new Audio(closeAudio).play()
25 | }
26 | const [size, setSize] = useState('')
27 | const { isOpen, onOpen, onClose } = useDisclosure()
28 | const [user , loading] = useAuthState(auth)
29 | const [placement, setPlacement] = useState('right')
30 | const handleClick = (newSize) => {
31 | setSize(newSize)
32 | onOpen()
33 | }
34 |
35 | const handleClose = () => {
36 | auth.signOut()
37 | handleCloseAudio()
38 | }
39 |
40 | const sizes = ['full']
41 | return (
42 |
43 |
44 |
45 |
46 | {sizes.map((size) => (
47 | handleClick(size)}
49 | key={size}
50 | m={4}
51 | bg={''}
52 | _hover={{bg: ''}}
53 | >
54 | ))}
55 |
56 |
57 |
58 |
59 |
60 | {user ? user?.displayName : "Aniq bo'lmagan"} Profili
61 |
62 |
63 | {user ? (
64 |
65 |
66 | ): (
67 |
68 | )
69 | }
70 | {user ? user.displayName : 'No aniq foidalanuvchi' }
71 | {!user &&
72 |
73 | Ro'yxatdan O'tish
74 |
75 | }
76 |
77 |
78 | Firk va Takliflar
79 |
80 |
81 |
82 |
83 |
84 | FAQ
85 |
86 |
87 |
88 |
89 | Qo'lab Quvatlash
90 |
91 |
92 | {user && {
93 | handleClose()
94 | onClose()
95 | } } bg={'red'} color={'white'} display={'flex'} alignItems={'center'} gap={'20px'} _hover={{bg: 'red.400'}} width={'100%'}>
96 |
97 | Profildan Chiqish
98 | }
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | )
110 | }
111 |
112 | export default UserProfile
--------------------------------------------------------------------------------
/src/firebase.js:
--------------------------------------------------------------------------------
1 | import { initializeApp } from "firebase/app";
2 | import { getAuth } from 'firebase/auth'
3 | import 'firebase/compat/database'
4 | import firebase from 'firebase/compat/app'
5 | import 'firebase/firestore'
6 |
7 | const firebaseConfig = {
8 | apiKey: "AIzaSyAiP39K3DsLqRWap95oU7HWlIFSMqWKTbY",
9 | authDomain: "modevco-school.firebaseapp.com",
10 | projectId: "modevco-school",
11 | storageBucket: "modevco-school.appspot.com",
12 | messagingSenderId: "377203904695",
13 | appId: "1:377203904695:web:804f41f6755b87b162bd32"
14 | };
15 |
16 | const app = initializeApp(firebaseConfig);
17 | firebase.initializeApp(firebaseConfig)
18 | export const auth = getAuth(app)
19 | export const dataRef = firebase.database()
--------------------------------------------------------------------------------
/src/hooks/useProgres.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect, useState } from 'react'
2 |
3 | const useProgres = () => {
4 | const [completion , setCompletion] = useState(0)
5 |
6 |
7 | useEffect(() => {
8 | const updateScrollCompletion = () => {
9 | const currentProgress = window.scrollY
10 | const scrollHeight = document.body.scrollHeight - window.innerHeight
11 | if(scrollHeight) {
12 | setCompletion(
13 | Number((currentProgress / scrollHeight).toFixed(2)) * 100
14 | )
15 | }
16 | }
17 |
18 | window.addEventListener('scroll' , updateScrollCompletion)
19 |
20 | return () => {
21 | window.removeEventListener('scroll' , updateScrollCompletion)
22 | }
23 |
24 |
25 | } , [])
26 |
27 | return completion
28 | }
29 |
30 | export default useProgres
--------------------------------------------------------------------------------
/src/htmlDesc.js:
--------------------------------------------------------------------------------
1 | export const html1dars = [
2 | {
3 | link: "/html1dars",
4 | name: "1-Mavzu: Html o’rnatish"
5 | },
6 | {
7 | link: "/html2dars",
8 | name: "2-Mavzu: Html asosiy misollar"
9 | },
10 | {
11 | link: "/html3dars",
12 | name: "3-Mavzu: Html Hedinglar"
13 | }
14 |
15 | ]
16 |
17 | export const html2dars = [
18 |
19 | {
20 | link: "/html4dars",
21 | name: "1-Mavzu: Html Paragraphlar"
22 | },
23 | {
24 | link: "/html5dars",
25 | name: "2-Mavzu: HTML Formatlash"
26 | },
27 | {
28 | link: "/html6dars",
29 | name: "3-Mavzu: Html Komentariya"
30 | }
31 | ]
32 |
33 | export const html3dars = [
34 |
35 | {
36 | link: "/html7dars",
37 | name: "1-Mavzu: Html Link"
38 | },
39 | {
40 | link: "/html8dars",
41 | name: "2-Mavzu: Html Image"
42 | },
43 | {
44 | link: "/html9dars",
45 | name: "3-Mavzu: Html Favicon va Tittle"
46 | }
47 | ,
48 | {
49 | link: "/html10dars",
50 | name: "4-Mavzu: Html Table"
51 | }
52 | ]
53 |
54 |
55 |
56 | export const html4dars = [
57 |
58 | {
59 | link: "/html11dars",
60 | name: "1-Mavzu: Html Listslar"
61 | },
62 | {
63 | link: "/html12dars",
64 | name: "2-Mavzu: Html Block va Inline"
65 | },
66 | {
67 | link: "/html13dars",
68 | name: "3-Mavzu: Html Emojilar "
69 | }
70 | ]
71 |
72 |
73 |
74 | export const html5dars = [
75 |
76 | {
77 | link: "/html14dars",
78 | name: "1-Mavzu: Html Formalar"
79 | },
80 | {
81 | link: "/html15dars",
82 | name: "2-Mavzu: Html Form Attributlari"
83 | },
84 | {
85 | link: "/html16dars",
86 | name: "3-Mavzu: Html Form Elemtlari"
87 | }
88 | ]
89 |
90 |
91 |
92 | export const html6dars = [
93 |
94 | {
95 | link: "/html17dars",
96 | name: "1-Mavzu: Html Input turlari"
97 | },
98 | {
99 | link: "/html18dars",
100 | name: "2-Mavzu: Html Input Attributlari"
101 | },
102 | {
103 | link: "/html19dars",
104 | name: "3-Mavzu: Html Input va Formla"
105 | }
106 | ]
107 |
108 |
109 |
110 | export const html7dars = [
111 |
112 | {
113 | link: "/html20dars",
114 | name: "1-Mavzu: Html Medialar"
115 | },
116 | {
117 | link: "/html21dars",
118 | name: "2-Mavzu: Html Video"
119 | },
120 | {
121 | link: "/html22dars",
122 | name: "3-Mavzu: Html Audio "
123 | },
124 | {
125 | link: "/html23dars",
126 | name: "4-Mavzu: Html YouTube "
127 | }
128 | ]
129 |
130 | export const html8dars = [
131 |
132 | {
133 | link: "",
134 | name: "Amaliyot 1"
135 | },
136 | {
137 | link: "",
138 | name: "Amaliyot 2"
139 | },
140 | {
141 | link: "/htmlCode",
142 | name: "Barcha kod"
143 | },
144 |
145 | ]
--------------------------------------------------------------------------------
/src/main.jsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import ReactDOM from 'react-dom/client'
3 | import {ChakraProvider} from '@chakra-ui/react'
4 | import App from './App'
5 | import { BrowserRouter } from 'react-router-dom'
6 | import './index.css'
7 |
8 |
9 | ReactDOM.createRoot(document.getElementById('root')).render(
10 |
11 |
12 |
13 |
14 |
15 | )
16 |
--------------------------------------------------------------------------------
/src/pages/AdminmodevcoAdmin.jsx:
--------------------------------------------------------------------------------
1 | import { Box, Button, FormControl, FormLabel, Input, useToast , Image, useDisclosure, Divider } from "@chakra-ui/react"
2 | import { useEffect, useState } from "react"
3 | import { Logo} from "../assets"
4 | import Hodimlar from "../components/hodimlar/hodimlar"
5 | import Komment from "../components/komment/komment"
6 | import SidebarAdmin from "../components/sidebarAdmi/sidebarAdmin"
7 | import Takliflar from "../components/takliflar/takliflar"
8 |
9 |
10 |
11 | const AdminModevcoAdmin = () => {
12 | const [admin , setAdmin] = useState("")
13 | const [password , setPassword] = useState("")
14 | const [showPanel , setShowPanel] = useState(false)
15 | const toast = useToast()
16 | const [data ,setData] = useState([])
17 | const [barchasi , setBarchasi] = useState(true)
18 | const [xodim , setXodim] = useState(true)
19 | const [taklif , setTaklif] = useState(true)
20 | const [komment , setKomment] = useState(true)
21 | const handleAll = () => {
22 | setXodim(true)
23 | setTaklif(true)
24 | setKomment(true)
25 | }
26 | const handleTaklif = () => {
27 | setXodim(false)
28 | setTaklif(true)
29 | setKomment(false)
30 | }
31 | const handleXodim = () => {
32 | setXodim(true)
33 | setTaklif(false)
34 | setKomment(false)
35 | }
36 | const handleKomment = () => {
37 | setXodim(false)
38 | setTaklif(false)
39 | setKomment(true)
40 | }
41 | const handleClose = () => {
42 | if(admin === "modevco" && password === '1122') {
43 | setShowPanel(false)
44 | } else {
45 | toast({
46 | title: 'Nimadur xato!!',
47 | status: 'error',
48 | position: 'top-right',
49 | duration: 3000,
50 | isClosable: true,
51 | })
52 | }
53 | }
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | useEffect(() => {
62 | window.scroll(0,0)
63 | })
64 | return (
65 |
66 |
67 |
68 | {showPanel &&
69 |
70 |
71 |
72 |
73 |
74 | Admin
75 | setAdmin(e.target.value)} placeholder='First name' />
76 |
77 | Parol
78 | setPassword(e.target.value)} placeholder='First name' />
79 |
80 | Kirish
81 |
82 |
83 |
84 |
85 |
86 | }
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 | {xodim && }
97 | {taklif && }
98 | {komment && }
99 |
100 |
101 |
102 |
103 |
104 | )
105 | }
106 |
107 |
108 | export default AdminModevcoAdmin
--------------------------------------------------------------------------------
/src/pages/Home.jsx:
--------------------------------------------------------------------------------
1 | import { Box } from '@chakra-ui/react'
2 | import { useEffect } from 'react'
3 | import BeckCard from '../components/beckCard/beckCard'
4 | import ColorCards from '../components/colorCards/colorCards'
5 | import CssRek from '../components/cssRek/cssRek'
6 | import Footer from '../components/footer/footer'
7 | import FrontCard from '../components/forntCard/frontCard'
8 | import HomeColors from '../components/homeColors/homeColors'
9 | import HomeCss from '../components/homeCss/homeCss'
10 | import HomeHtml from '../components/homeHtml/homeHtml'
11 | import HomeJavascipt from '../components/homeJavascript/homeJavascipt'
12 | import HomeLessons from '../components/homeLessons/homeLessons'
13 | import HomeReact from '../components/homeReact/homeReact'
14 | import HomeVideo from '../components/homeVideo/homeVideo'
15 | import MainTitle from '../components/mainTitle/mainTitle'
16 | import TexnologiIcon from '../components/texnologiIcon/texnologiIcon'
17 | const Home = () => {
18 |
19 | useEffect(() => {
20 | window.scroll(0,0)
21 | }, [])
22 | return (
23 |
24 |
25 | {/* */}
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | )
40 | }
41 |
42 | export default Home
--------------------------------------------------------------------------------
/src/pages/beckMalumot.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Heading , Image , Text , Button} from '@chakra-ui/react'
2 | import { useEffect } from 'react'
3 | import { beckImg } from '../assets'
4 | import { ArrowLeftIcon } from '@chakra-ui/icons'
5 | import { Link } from 'react-router-dom'
6 | import Particl from '../components/particl'
7 |
8 | const BeckMalumot = () => {
9 |
10 |
11 | useEffect(() => {
12 | window.scroll(0,0)
13 | }, [])
14 |
15 | return (
16 |
17 |
18 |
19 |
20 |
21 | Beckend haqida qisqacha ma’lumot
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | 1 — Qism
36 |
37 | Backend (inglizcha back-end) - bu xizmatning dasturiy ta'minot va apparat qismidir. Bu veb-sayt mantig'i amalga oshiriladigan vositalar to'plami. Bu bizning ko'zimizdan yashiringan narsa, ya'ni kompyuter va brauzerdan tashqarida sodir bo'ladi. (Back End) Orqa tomon ishlab chiquvchilari veb-saytlarning foydalanuvchilar bilan bevosita aloqasi bo'lmagan "qopqoq ostida" qismlarini yaratadilar.
38 |
39 |
40 |
41 |
42 | 2 — Qism
43 |
44 | Backend (back end, back-end) esa Frontendning aksi hisoblanib, qaysidir narsaning ichki, yoki orqa tomoni degan ma’noni anglatadi. Bu bilan biz qaysidir narsaning hammaga ko’rinmaydigan, yashirin, ichki yoki orqa tomonini nazarda tutgan bo’lamiz.
45 |
46 |
47 |
48 |
49 | 3 — Qism
50 |
51 | Back End Development - orqa tomonni rivojlantirish, dasturning server tomoniga va ma'lumotlar bazasi va brauzer o'rtasida aloqador narsalarga tegishlidir. Back End Development/Orqa tomon ishlab chiqishi deganda, avvalo saytning ishlashiga e'tiborinni qaratadigan rivojlanishning server tomoni tushuniladi.
52 |
53 |
54 |
55 |
56 | 4 — Qism
57 |
58 | Back-end Development server tomonidagi rivojlanishni anglatadi. Bu veb-saytda biron bir harakatni amalga oshirishda sodir bo'ladigan sahna ortidagi harakatlar uchun ishlatiladigan atama. Bu sizning hisobingizga kirishi yoki onlayn-do'kondan soat sotib olishi mumkin.
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | Bosh sahifaga qaytish
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 | )
78 | }
79 |
80 | export default BeckMalumot
--------------------------------------------------------------------------------
/src/pages/css13dars.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Flex , Heading , Button , Text , Image , Input , FormLabel, HStack, Radio, RadioGroup, Grid} from '@chakra-ui/react'
2 | import { HamburgerIcon , CloseIcon } from '@chakra-ui/icons'
3 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
4 | import {
5 | Drawer,
6 | DrawerBody,
7 | DrawerFooter,
8 | DrawerHeader,
9 | DrawerOverlay,
10 | DrawerContent,
11 | DrawerCloseButton,
12 | useDisclosure,
13 | useToast,Divider,
14 | UnorderedList,
15 | ListItem,
16 |
17 | } from '@chakra-ui/react'
18 | import AccordionItenm from '../components/accordion/accordion'
19 | import CopyToClipboard from 'react-copy-to-clipboard'
20 | import { useEffect, useState } from 'react'
21 | import {
22 | Table,
23 | Thead,
24 | Tbody,
25 | Tfoot,
26 | Tr,
27 | Th,
28 | Td,
29 | TableCaption,
30 | TableContainer,
31 | } from '@chakra-ui/react'
32 | import { Checkbox, CheckboxGroup } from '@chakra-ui/react'
33 | import OpacityCard from '../components/opacityCard/opacityCard'
34 | import SidebarCss from '../components/sidebarCss/sidebarCss'
35 | import CssAccordion from '../components/cssAccordion/cssAccordion'
36 |
37 | const Css13dars = () => {
38 | const { isOpen, onOpen, onClose } = useDisclosure()
39 | const [placement, setPlacement] = useState('left')
40 | const [size, setSize] = useState('')
41 | const [clipboard , setClipboard] = useState(false)
42 | const toast = useToast()
43 |
44 | const handleClip = () => {
45 | setClipboard(true)
46 | toast({
47 | position: 'top-right',
48 | render: () => (
49 |
50 | Nusxa olindi!
51 |
52 | ),
53 | })
54 | }
55 | const handleClick = (newSize) => {
56 | setSize(newSize)
57 | onOpen()
58 | }
59 | const nandleClose = () => {
60 | onClose()
61 | }
62 | const sizes = ['md']
63 | useEffect(() => {
64 | window.scroll(0,0)
65 | }, [])
66 | return (
67 |
68 |
69 |
70 | {onOpen &&
71 |
72 | }
73 |
74 | {sizes.map((size) => (
75 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
76 |
77 |
78 |
79 | ))}
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 | CSS Background Attachment
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | {/* 1 */}
102 |
103 |
104 | CSS Background-attachment
105 | background-attachment xususiyati fon tasvirini aylantirish yoki tuzatish kerakligini belgilaydi (sahifaning qolgan qismi bilan aylantirilmaydi):
106 |
107 |
108 |
109 | Misol
110 | Orqa fon tasvirini tuzatish kerakligini belgilang:
111 |
112 |
113 | body {`{`} background-image: url("img_tree.png"); background-positon: right-top; background-atachment: fixed; {`}`}
114 |
115 |
116 |
117 |
118 | Nusxa olish
119 |
120 |
121 |
122 |
123 |
124 |
125 | Misol
126 | Orqa fon tasviri sahifaning qolgan qismi bilan aylanishi kerakligini belgilang:
127 |
128 |
129 | body {`{`} background-image: url("img_tree.png"); background-positon: right-top; background-atachment: scroll; {`}`}
130 |
131 |
132 |
133 |
134 | Nusxa olish
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | CSS Background Attachment Xususiyati
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 | Property
156 | Description
157 |
158 |
159 |
160 |
161 | background-attechment
162 | Fon rasmi oʻzgarmasligini yoki sahifaning qolgan qismi bilan aylantirilishini oʻrnatadi
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 | )
177 | }
178 |
179 | export default Css13dars
180 |
--------------------------------------------------------------------------------
/src/pages/css19dars.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Flex , Heading , Button , Text , Image , Input , FormLabel, HStack, Radio, RadioGroup, Grid} from '@chakra-ui/react'
2 | import { HamburgerIcon , CloseIcon } from '@chakra-ui/icons'
3 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
4 | import {
5 | Drawer,
6 | DrawerBody,
7 | DrawerFooter,
8 | DrawerHeader,
9 | DrawerOverlay,
10 | DrawerContent,
11 | DrawerCloseButton,
12 | useDisclosure,
13 | useToast,Divider,
14 | UnorderedList,
15 | ListItem,
16 |
17 | } from '@chakra-ui/react'
18 | import AccordionItenm from '../components/accordion/accordion'
19 | import CopyToClipboard from 'react-copy-to-clipboard'
20 | import { useEffect, useState } from 'react'
21 | import {
22 | Table,
23 | Thead,
24 | Tbody,
25 | Tfoot,
26 | Tr,
27 | Th,
28 | Td,
29 | TableCaption,
30 | TableContainer,
31 | } from '@chakra-ui/react'
32 | import { Checkbox, CheckboxGroup } from '@chakra-ui/react'
33 | import OpacityCard from '../components/opacityCard/opacityCard'
34 | import CssAccordion from '../components/cssAccordion/cssAccordion'
35 | import BorderProps from '../components/borderProps/borderProps'
36 |
37 | const Css19dars = () => {
38 | const { isOpen, onOpen, onClose } = useDisclosure()
39 | const [placement, setPlacement] = useState('left')
40 | const [size, setSize] = useState('')
41 | const [clipboard , setClipboard] = useState(false)
42 | const toast = useToast()
43 |
44 | const handleClip = () => {
45 | setClipboard(true)
46 | toast({
47 | position: 'top-right',
48 | render: () => (
49 |
50 | Nusxa olindi!
51 |
52 | ),
53 | })
54 | }
55 | const handleClick = (newSize) => {
56 | setSize(newSize)
57 | onOpen()
58 | }
59 | const nandleClose = () => {
60 | onClose()
61 | }
62 | const sizes = ['md']
63 | useEffect(() => {
64 | window.scroll(0,0)
65 | }, [])
66 | return (
67 |
68 |
69 |
70 | {onOpen &&
71 |
72 | }
73 |
74 | {sizes.map((size) => (
75 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
76 |
77 |
78 |
79 | ))}
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 | CSS Shorthand Border Xususiyati
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | {/* 1 */}
102 |
103 |
104 | CSS Shorthand - Border Xususiyati
105 | Oldingi sahifada ko'rganingizdek, chegaralar bilan ishlashda ko'plab xususiyatlarni hisobga olish kerak.
106 | Kodni qisqartirish uchun barcha individual chegara xususiyatlarini bitta xususiyatda ko'rsatish ham mumkin.
107 | Kodni qisqartirish uchun barcha individual chegara xususiyatlarini bitta xususiyatda ko'rsatish ham mumkin.
108 |
109 | border-width
110 | border-style (majburiy)
111 | border-color
112 |
113 |
114 |
115 | Misol
116 |
117 |
118 | p{`{`} border: 5px solid red; {`}`}
119 |
120 |
121 |
122 |
123 | Natija:
124 |
125 |
126 |
127 |
128 |
129 | Siz faqat bir tomon uchun barcha individual chegara xususiyatlarini belgilashingiz mumkin:
130 |
131 |
132 |
133 | Misol
134 |
135 |
136 | p{`{`} border-left: 6px solid red; {`}`}
137 |
138 |
139 |
140 |
141 | Natija:
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 | Misol
152 |
153 |
154 | p{`{`} border-bottom: 6px solid red; {`}`}
155 |
156 |
157 |
158 |
159 | Natija:
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 | )
177 | }
178 |
179 | export default Css19dars
180 |
--------------------------------------------------------------------------------
/src/pages/css27dars.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Flex , Heading , Button , Text , Image , Input , FormLabel, HStack, Radio, RadioGroup, Grid, border} from '@chakra-ui/react'
2 | import { HamburgerIcon , CloseIcon } from '@chakra-ui/icons'
3 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
4 | import {
5 | Drawer,
6 | DrawerBody,
7 | DrawerFooter,
8 | DrawerHeader,
9 | DrawerOverlay,
10 | DrawerContent,
11 | DrawerCloseButton,
12 | useDisclosure,
13 | useToast,Divider,
14 | UnorderedList,
15 | ListItem,
16 |
17 | } from '@chakra-ui/react'
18 | import CopyToClipboard from 'react-copy-to-clipboard'
19 | import { useEffect, useState } from 'react'
20 | import {
21 | Table,
22 | Thead,
23 | Tbody,
24 | Tfoot,
25 | Tr,
26 | Th,
27 | Td,
28 | TableCaption,
29 | TableContainer,
30 | } from '@chakra-ui/react'
31 | import CssAccordion from '../components/cssAccordion/cssAccordion'
32 | import BorderProps from '../components/borderProps/borderProps'
33 | import OutlineProps from '../components/outlineProps/OutlineProps'
34 |
35 | const Css27dars = () => {
36 | const { isOpen, onOpen, onClose } = useDisclosure()
37 | const [placement, setPlacement] = useState('left')
38 | const [size, setSize] = useState('')
39 | const [clipboard , setClipboard] = useState(false)
40 | const toast = useToast()
41 |
42 | const handleClip = () => {
43 | setClipboard(true)
44 | toast({
45 | position: 'top-right',
46 | render: () => (
47 |
48 | Nusxa olindi!
49 |
50 | ),
51 | })
52 | }
53 | const handleClick = (newSize) => {
54 | setSize(newSize)
55 | onOpen()
56 | }
57 | const nandleClose = () => {
58 | onClose()
59 | }
60 | const sizes = ['md']
61 | useEffect(() => {
62 | window.scroll(0,0)
63 | }, [])
64 | return (
65 |
66 |
67 |
68 | {onOpen &&
69 |
70 | }
71 |
72 | {sizes.map((size) => (
73 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
74 |
75 |
76 |
77 | ))}
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 | CSS Outline Width
90 |
91 |
92 |
93 |
94 |
95 | Outline-width xususiyati konturning kengligini belgilaydi va quyidagi qiymatlardan biriga ega bo'lishi mumkin:
96 |
97 | thin (odatda 1px)
98 | medium (odatda 3px)
99 | thick (odatda 5px)
100 | A specific size (in px, pt, cm, em, etc)
101 |
102 | Quyidagi misolda turli xil kenglikdagi ba'zi konturlar ko'rsatilgan:
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 | {/* 1 */}
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | Misol
125 |
126 |
127 | p.ex1 {`{`} border: 1px solid back outline-style: solid outline-color: red outline-width: thin {`}`}
128 | p.ex2 {`{`} border: 1px solid back outline-style: solid outline-color: red outline-width: medium {`}`}
129 | p.ex3 {`{`} border: 1px solid back outline-style: solid outline-color: red outline-width: thick {`}`}
130 | p.ex4 {`{`} border: 1px solid back outline-style: solid outline-color: red outline-width: 4px {`}`}
131 |
132 |
133 |
134 | Nusxa olish
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 | )
143 | }
144 |
145 | export default Css27dars
146 |
--------------------------------------------------------------------------------
/src/pages/css29dars.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Flex , Heading , Button , Text , Image , Input , FormLabel, HStack, Radio, RadioGroup, Grid, border} from '@chakra-ui/react'
2 | import { HamburgerIcon , CloseIcon } from '@chakra-ui/icons'
3 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
4 | import {
5 | Drawer,
6 | DrawerBody,
7 | DrawerFooter,
8 | DrawerHeader,
9 | DrawerOverlay,
10 | DrawerContent,
11 | DrawerCloseButton,
12 | useDisclosure,
13 | useToast,Divider,
14 | UnorderedList,
15 | ListItem,
16 |
17 | } from '@chakra-ui/react'
18 | import CopyToClipboard from 'react-copy-to-clipboard'
19 | import { useEffect, useState } from 'react'
20 | import {
21 | Table,
22 | Thead,
23 | Tbody,
24 | Tfoot,
25 | Tr,
26 | Th,
27 | Td,
28 | TableCaption,
29 | TableContainer,
30 | } from '@chakra-ui/react'
31 | import CssAccordion from '../components/cssAccordion/cssAccordion'
32 | import BorderProps from '../components/borderProps/borderProps'
33 | import OutlineProps from '../components/outlineProps/OutlineProps'
34 |
35 | const Css29dars = () => {
36 | const { isOpen, onOpen, onClose } = useDisclosure()
37 | const [placement, setPlacement] = useState('left')
38 | const [size, setSize] = useState('')
39 | const [clipboard , setClipboard] = useState(false)
40 | const toast = useToast()
41 |
42 | const handleClip = () => {
43 | setClipboard(true)
44 | toast({
45 | position: 'top-right',
46 | render: () => (
47 |
48 | Nusxa olindi!
49 |
50 | ),
51 | })
52 | }
53 | const handleClick = (newSize) => {
54 | setSize(newSize)
55 | onOpen()
56 | }
57 | const nandleClose = () => {
58 | onClose()
59 | }
60 | const sizes = ['md']
61 | useEffect(() => {
62 | window.scroll(0,0)
63 | }, [])
64 | return (
65 |
66 |
67 |
68 | {onOpen &&
69 |
70 | }
71 |
72 | {sizes.map((size) => (
73 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
74 |
75 |
76 |
77 | ))}
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 | CSS Outline Shorthand
90 |
91 |
92 |
93 |
94 |
95 | CSS Outline Shorthand
96 | Outline xususiyati quyidagi individual kontur xususiyatlarini o'rnatish uchun stenografiya xususiyatidir:
97 |
98 | outline-width
99 | outline-style (required)
100 | outline-color
101 |
102 | Kontur xususiyati yuqoridagi roʻyxatdagi bir, ikki yoki uchta qiymat sifatida koʻrsatilgan. Qiymatlarning tartibi muhim emas.
103 | Quyidagi misolda stenogramma kontur xususiyati bilan belgilangan ba'zi konturlar ko'rsatilgan:
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 | {/* 1 */}
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 | Misol
126 | {``} elementining balandligi va kengligini o'rnating:
127 |
128 |
129 | p.ex1 {`{`} outline: dashed {`}`}
130 | p.ex2 {`{`} outline: dotted red {`}`}
131 | p.ex3 {`{`} outline: 5ps solid yellow {`}`}
132 | p.ex3 {`{`} outline: thick ridge pink {`}`}
133 |
134 |
135 |
136 |
137 | Nusxa olish
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 | )
146 | }
147 |
148 | export default Css29dars
149 |
--------------------------------------------------------------------------------
/src/pages/css34dars.jsx:
--------------------------------------------------------------------------------
1 |
2 | import { Box , Flex , Heading , Button , Text , Image , Input , FormLabel, HStack, Radio, RadioGroup, Grid, border} from '@chakra-ui/react'
3 | import { HamburgerIcon , CloseIcon } from '@chakra-ui/icons'
4 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
5 | import {
6 | Drawer,
7 | DrawerBody,
8 | DrawerFooter,
9 | DrawerHeader,
10 | DrawerOverlay,
11 | DrawerContent,
12 | DrawerCloseButton,
13 | useDisclosure,
14 | useToast,Divider,
15 | UnorderedList,
16 | ListItem,
17 |
18 | } from '@chakra-ui/react'
19 | import CopyToClipboard from 'react-copy-to-clipboard'
20 | import { useEffect, useState } from 'react'
21 | import {
22 | Table,
23 | Thead,
24 | Tbody,
25 | Tfoot,
26 | Tr,
27 | Th,
28 | Td,
29 | TableCaption,
30 | TableContainer,
31 | } from '@chakra-ui/react'
32 | import CssAccordion from '../components/cssAccordion/cssAccordion'
33 | import BorderProps from '../components/borderProps/borderProps'
34 | import OutlineProps from '../components/outlineProps/OutlineProps'
35 |
36 | const Css34dars = () => {
37 | const { isOpen, onOpen, onClose } = useDisclosure()
38 | const [placement, setPlacement] = useState('left')
39 | const [size, setSize] = useState('')
40 | const [clipboard , setClipboard] = useState(false)
41 | const toast = useToast()
42 |
43 | const handleClip = () => {
44 | setClipboard(true)
45 | toast({
46 | position: 'top-right',
47 | render: () => (
48 |
49 | Nusxa olindi!
50 |
51 | ),
52 | })
53 | }
54 | const handleClick = (newSize) => {
55 | setSize(newSize)
56 | onOpen()
57 | }
58 | const nandleClose = () => {
59 | onClose()
60 | }
61 | const sizes = ['md']
62 | useEffect(() => {
63 | window.scroll(0,0)
64 | }, [])
65 | return (
66 |
67 |
68 |
69 | {onOpen &&
70 |
71 | }
72 |
73 | {sizes.map((size) => (
74 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
75 |
76 |
77 |
78 | ))}
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | CSS Text Transformation
91 |
92 |
93 |
94 |
95 |
96 | Text Transformation
97 | Matnni o'zgartirish xususiyati matndagi katta va kichik harflarni belgilash uchun ishlatiladi.
98 | U hamma narsani katta yoki kichik harflarga aylantirish yoki har bir so'zning birinchi harfini bosh harf bilan yozish uchun ishlatilishi mumkin:
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 | {/* 1 */}
108 |
109 |
110 |
111 |
112 |
113 |
114 | Misol
115 |
116 |
117 | p.uppercase {`{`} text-transform: uppercase; {`}`}
118 | p.lowercase {`{`} text-transform: lowercas; {`}`}
119 | p.capitalize {`{`} text-transform: capitalize; {`}`}
120 |
121 |
122 |
123 |
124 |
125 | Nusxa olish
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 | Barcha CSS Text-decoration Xususiyatlari
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 | Property
142 | Description
143 |
144 |
145 |
146 |
147 | text-transform
148 | Matnning bosh harflanishini nazorat qiladi
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 | )
163 | }
164 |
165 | export default Css34dars
166 |
--------------------------------------------------------------------------------
/src/pages/css45dars.jsx:
--------------------------------------------------------------------------------
1 |
2 | import { Box , Flex , Heading , Button , Text , Image , Input , FormLabel, HStack, Radio, RadioGroup, Grid, border} from '@chakra-ui/react'
3 | import { HamburgerIcon , CloseIcon } from '@chakra-ui/icons'
4 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
5 | import {
6 | Drawer,
7 | DrawerBody,
8 | DrawerFooter,
9 | DrawerHeader,
10 | DrawerOverlay,
11 | DrawerContent,
12 | DrawerCloseButton,
13 | useDisclosure,
14 | useToast,Divider,
15 | UnorderedList,
16 | ListItem,
17 |
18 | } from '@chakra-ui/react'
19 | import CopyToClipboard from 'react-copy-to-clipboard'
20 | import { useEffect, useState } from 'react'
21 | import {
22 | Table,
23 | Thead,
24 | Tbody,
25 | Tfoot,
26 | Tr,
27 | Th,
28 | Td,
29 | TableCaption,
30 | TableContainer,
31 | } from '@chakra-ui/react'
32 | import CssAccordion from '../components/cssAccordion/cssAccordion'
33 | import BorderProps from '../components/borderProps/borderProps'
34 | import OutlineProps from '../components/outlineProps/OutlineProps'
35 |
36 | const Css45dars = () => {
37 | const { isOpen, onOpen, onClose } = useDisclosure()
38 | const [placement, setPlacement] = useState('left')
39 | const [size, setSize] = useState('')
40 | const [clipboard , setClipboard] = useState(false)
41 | const toast = useToast()
42 |
43 | const handleClip = () => {
44 | setClipboard(true)
45 | toast({
46 | position: 'top-right',
47 | render: () => (
48 |
49 | Nusxa olindi!
50 |
51 | ),
52 | })
53 | }
54 | const handleClick = (newSize) => {
55 | setSize(newSize)
56 | onOpen()
57 | }
58 | const nandleClose = () => {
59 | onClose()
60 | }
61 | const sizes = ['md']
62 | useEffect(() => {
63 | window.scroll(0,0)
64 | }, [])
65 | return (
66 |
67 |
68 |
69 | {onOpen &&
70 |
71 | }
72 |
73 | {sizes.map((size) => (
74 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
75 |
76 |
77 |
78 | ))}
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | CSS Font Xususiyati
91 |
92 |
93 |
94 |
95 |
96 | CSS Font Xususiyati
97 | Kodni qisqartirish uchun barcha individual shrift xususiyatlarini bitta xususiyatda ko'rsatish ham mumkin.
98 | Shrift xususiyati stenografiya xususiyatidir:
99 |
100 | font-style
101 | font-variant
102 | font-weight
103 | font-size/line-height
104 | font-family
105 |
106 | Eslatma: Shrift o'lchami va shrift oilasi qiymatlari talab qilinadi. Agar boshqa qiymatlardan biri yo'q bo'lsa, ularning standart qiymati ishlatiladi.
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 | {/* 1 */}
115 |
116 |
117 |
118 |
119 |
120 |
121 | Misol
122 | Bitta deklaratsiyada bir nechta shrift xususiyatlarini o'rnatish uchun shriftdan foydalaning:
123 |
124 |
125 | p.a {`{`} font: 20px Arial, sans-serif; {`}`}
126 | p.a {`{`} font: italic small-caps bold 12px/30px Georgia, serif; {`}`}
127 |
128 |
129 | Nusxa olish
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 | Barcha CSS Font Xususiyatlari
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | Property
148 | Description
149 |
150 |
151 |
152 |
153 | font
154 | Barcha shrift xususiyatlarini bitta deklaratsiyada o'rnatadi
155 |
156 |
157 | font-family
158 | Matn uchun shriftlar oilasini belgilaydi
159 |
160 |
161 | font-size
162 | Matnning shrift hajmini belgilaydi
163 |
164 |
165 | font-variant
166 | Matn kichik bosh shriftda ko'rsatilishi yoki ko'rsatilmasligini belgilaydi
167 |
168 |
169 | font-weight
170 | Shrift og'irligini belgilaydi
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 | )
185 | }
186 |
187 | export default Css45dars
188 |
--------------------------------------------------------------------------------
/src/pages/faq.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Heading, Text , Image} from '@chakra-ui/react'
2 | import {
3 | Accordion,
4 | AccordionItem,
5 | AccordionButton,
6 | AccordionPanel,
7 | AccordionIcon,
8 | } from '@chakra-ui/react'
9 | import { AddIcon , MinusIcon } from '@chakra-ui/icons'
10 | import FaqItem from './faq/faqItem'
11 | import Footer from '../components/footer/footer'
12 | import { FaqImage } from '../assets'
13 | import Particl from '../components/particl'
14 | const Faq = () => {
15 | return (
16 |
17 |
18 |
19 |
20 |
21 | FAQ
22 | Tez-tez so'raladigan savollar
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | )
47 | }
48 |
49 | export default Faq
--------------------------------------------------------------------------------
/src/pages/faq/faqItem.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Image } from '@chakra-ui/react'
2 | import {
3 | Accordion,
4 | AccordionItem,
5 | AccordionButton,
6 | AccordionPanel,
7 | AccordionIcon,
8 | } from '@chakra-ui/react'
9 | import { AddIcon , MinusIcon } from '@chakra-ui/icons'
10 | import { Footer } from '@mantine/core'
11 | import { FaqImage } from '../../assets'
12 | const FaqItem = ({title , desc}) => {
13 | return (
14 |
15 |
16 |
17 |
18 |
19 | {({ isExpanded }) => (
20 | <>
21 |
22 |
23 | {isExpanded ? (
24 |
25 | ) : (
26 |
27 | )}
28 |
29 | {title}
30 |
31 |
32 |
33 |
34 |
35 | {desc}
36 |
37 | >
38 | )}
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | )
49 | }
50 |
51 | export default FaqItem
--------------------------------------------------------------------------------
/src/pages/fikr.jsx:
--------------------------------------------------------------------------------
1 | import { AspectRatio, Box, Button, FormLabel, Heading, Input, Textarea, useToast } from "@chakra-ui/react"
2 | import axios from "axios"
3 | import { useEffect, useState } from "react"
4 | import { err, value, video } from "../assets"
5 | import Particl from "../components/particl"
6 |
7 |
8 |
9 | const Fikr = () => {
10 | const [data , setData] = useState({ism: '' , email: '' , mavzu: ' ' , xabar: ''})
11 | const toast = useToast()
12 | const playValue = () => {
13 | new Audio(value).play()
14 | }
15 |
16 |
17 |
18 |
19 | const handleSubmit = async () => {
20 |
21 | await axios.post('http://localhost:3000/taklif', data).then((res) => {
22 | toast({
23 | description: "Malumot Yetkazildi!!",
24 | status: 'success',
25 | duration: 3000,
26 | isClosable: true,
27 | position: "top-right"
28 | })
29 |
30 | })
31 | playValue()
32 |
33 | setTimeout(() => {
34 | window.location.reload()
35 | } ,1000)
36 |
37 | }
38 |
39 |
40 | return (
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | Fikr va Taklif
50 |
51 |
52 |
53 |
54 |
55 | Ismingiz
56 | setData({...data, ism: e.target.value })} color={'white'} bg={'#122435'} border={'none'} type={'text'} width={'100%'} placeholder={'Ism...'}>
57 | Email
58 | setData({...data, email: e.target.value })} color={'white'} bg={'#122435'} border={'none'} type={'email'} width={'100%'} placeholder={'Email...'}>
59 | Mavzu
60 | setData({...data, mavzu: e.target.value })} color={'white'} bg={'#122435'} border={'none'} type={'text'} width={'100%'} placeholder={'Mavzu...'}>
61 | Xabaringiz
62 |
63 | { Jo'natish }
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | )
75 | }
76 |
77 | export default Fikr
--------------------------------------------------------------------------------
/src/pages/html.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Flex ,Button , Heading , Text} from '@chakra-ui/react'
2 | import { useEffect, useState } from 'react'
3 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
4 | import { HamburgerIcon , CloseIcon} from '@chakra-ui/icons'
5 | import {
6 | Drawer,
7 | DrawerBody,
8 | DrawerFooter,
9 | DrawerHeader,
10 | DrawerOverlay,
11 | DrawerContent,
12 | DrawerCloseButton,
13 | useDisclosure,
14 | useToast
15 | } from '@chakra-ui/react'
16 | import AccordionItenm from '../components/accordion/accordion'
17 | import CopyToClipboard from 'react-copy-to-clipboard'
18 | const Html = () => {
19 | const { isOpen, onOpen, onClose } = useDisclosure()
20 | const [placement, setPlacement] = useState('left')
21 | const [size, setSize] = useState('')
22 | const [clipboard , setClipboard] = useState(false)
23 | const toast = useToast()
24 |
25 | const handleClip = () => {
26 | setClipboard(true)
27 | toast({
28 | position: 'top-right',
29 | render: () => (
30 |
31 | Nusxa olindi!
32 |
33 | ),
34 | })
35 | }
36 |
37 | const handleClick = (newSize) => {
38 | setSize(newSize)
39 | onOpen()
40 | }
41 | const nandleClose = () => {
42 | onClose()
43 | }
44 | const sizes = ['md']
45 | useEffect(() => {
46 | window.scroll(0,0)
47 | }, [])
48 |
49 | return (
50 |
51 |
52 |
53 | {onOpen &&
54 |
55 | }
56 |
57 | {sizes.map((size) => (
58 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
59 |
60 |
61 |
62 | ))}
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | HTML DARSLARI
75 |
76 |
77 |
78 |
79 |
80 |
81 | HTML veb-sahifalar uchun standart belgilash tilidir.
82 | HTML yordamida siz o'z veb-saytingizni yaratishingiz mumkin.
83 | HTMLni o'rganish juda oson - bu sizga yoqadi!
84 |
85 |
86 |
87 | HTML nima?
88 |
89 |
90 |
91 |
92 | HTML stands for Hyper Text Markup Language
93 | HTML veb-sahifalarni yaratish uchun standart belgilash tilidir
94 | HTML Web-sahifaning tuzilishini tavsiflaydi
95 | HTML bir qator elementlardan iborat
96 | HTML elementlari brauzerga kontentni qanday ko'rsatishni aytadi
97 | HTML elementlari "bu sarlavha", "bu paragraf", "bu havola" va boshqalar kabi kontent qismlarini belgilaydi.
98 |
99 |
100 |
101 |
102 |
103 |
104 | HTML bilan oson o'rganish "O'zingiz sinab ko'ring"
105 |
106 |
107 | "O'zingiz sinab ko'ring" muharririmiz yordamida siz HTML kodni tahrirlashingiz va natijani ko'rishingiz mumkin:
108 |
109 |
110 |
111 |
112 | Misol
113 |
114 | {`{`html>`}
115 | {``}
116 | {``} Html darslari {` `}
117 | {``}
118 | {``} Bu heading {` `}
119 | {``} Bu paragraph {`
`}
120 | {``}
121 | {``}
122 |
123 |
124 |
125 | Nusxa olish
126 |
127 |
128 |
129 |
130 |
131 | )
132 | }
133 |
134 | export default Html
--------------------------------------------------------------------------------
/src/pages/html1dars.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Flex , Heading , Button , Text , Image} from '@chakra-ui/react'
2 | import { HamburgerIcon , CloseIcon } from '@chakra-ui/icons'
3 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
4 | import {
5 | Drawer,
6 | DrawerBody,
7 | DrawerFooter,
8 | DrawerHeader,
9 | DrawerOverlay,
10 | DrawerContent,
11 | DrawerCloseButton,
12 | useDisclosure,
13 | useToast,Divider
14 | } from '@chakra-ui/react'
15 | import AccordionItenm from '../components/accordion/accordion'
16 | import CopyToClipboard from 'react-copy-to-clipboard'
17 | import { useEffect, useState } from 'react'
18 | import { video, vsc, vsp } from '../assets'
19 | const Html1dars = () => {
20 | const { isOpen, onOpen, onClose } = useDisclosure()
21 | const [placement, setPlacement] = useState('left')
22 | const [size, setSize] = useState('')
23 | const [clipboard , setClipboard] = useState(false)
24 | const toast = useToast()
25 |
26 | const handleClip = () => {
27 | setClipboard(true)
28 | toast({
29 | position: 'top-right',
30 | render: () => (
31 |
32 | Nusxa olindi!
33 |
34 | ),
35 | })
36 | }
37 | const handleClick = (newSize) => {
38 | setSize(newSize)
39 | onOpen()
40 | }
41 | const nandleClose = () => {
42 | onClose()
43 | }
44 | const sizes = ['md']
45 | useEffect(() => {
46 | window.scroll(0,0)
47 | }, [])
48 | return (
49 |
50 |
51 |
52 | {onOpen &&
53 |
54 | }
55 |
56 | {sizes.map((size) => (
57 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
58 |
59 |
60 |
61 | ))}
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | HTML O’rnatish
74 |
75 |
76 |
77 |
78 |
79 |
80 | 1-Qadam
81 | Visuale studio dasturini yusklash
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | 2-Qadam
91 | VS code ga kirish va papka ochish
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | 3-Qadam
102 | Papkadan so’ng file ochish fileni nomi har doim projectda bitta index.html bo’lish kerak bo’ladi chunki brouser faqar index filenigina tushunadi html tehnalogiyasini o’rganyotdanizda file nomi ohiri tehnalogiya nomi bilan tugashi shart bo’ladi yani index.html
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 | 4-Qadam
113 | File ichiga kiriladi va boshlang’ich kodlar chaqirildi kodlarni ! shu belgi yoki html5 buyrug’i yordamida chiqiriladi.
114 |
115 | Misol
116 |
117 | {`{`html`} {`>`}
118 | {`lang= "en" {`>`}
119 | {` `}
120 |
121 | {` {`"UTF-8"`} {`>`}
122 | {` {`"X-UA-Compatible"`} {`content=`} {`"IE=edge"`} {`>`}
123 | {` "viewport" content= "width=device-width, initial-scale=1.0" {`>`}
124 | {` `} Document {` `}
125 | {` `}
126 | {` `}
127 | Kod yoziladi
128 | {` `}
129 | {` `}
130 |
131 |
132 |
133 | Nusxa olish
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 | )
142 | }
143 |
144 | export default Html1dars
--------------------------------------------------------------------------------
/src/pages/html2dars.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Flex , Heading , Button , Text , Image} from '@chakra-ui/react'
2 | import { HamburgerIcon , CloseIcon } from '@chakra-ui/icons'
3 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
4 | import {
5 | Drawer,
6 | DrawerBody,
7 | DrawerFooter,
8 | DrawerHeader,
9 | DrawerOverlay,
10 | DrawerContent,
11 | DrawerCloseButton,
12 | useDisclosure,
13 | useToast,Divider
14 | } from '@chakra-ui/react'
15 | import AccordionItenm from '../components/accordion/accordion'
16 | import CopyToClipboard from 'react-copy-to-clipboard'
17 | import { useEffect, useState } from 'react'
18 |
19 | const Html2dars = () => {
20 | const { isOpen, onOpen, onClose } = useDisclosure()
21 | const [placement, setPlacement] = useState('left')
22 | const [size, setSize] = useState('')
23 | const [clipboard , setClipboard] = useState(false)
24 | const toast = useToast()
25 |
26 | const handleClip = () => {
27 | setClipboard(true)
28 | toast({
29 | position: 'top-right',
30 | render: () => (
31 |
32 | Nusxa olindi!
33 |
34 | ),
35 | })
36 | }
37 | const handleClick = (newSize) => {
38 | setSize(newSize)
39 | onOpen()
40 | }
41 | const nandleClose = () => {
42 | onClose()
43 | }
44 | const sizes = ['md']
45 | useEffect(() => {
46 | window.scroll(0,0)
47 | }, [])
48 | return (
49 |
50 |
51 |
52 | {onOpen &&
53 |
54 | }
55 |
56 | {sizes.map((size) => (
57 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
58 |
59 |
60 |
61 | ))}
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | HTML asosiy misollar
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 | HTML hujjatlar
82 | Barcha HTML hujjatlari hujjat turi deklaratsiyasi bilan boshlanishi kerak: {`.`}
83 | HTML hujjatining o'zi {` bilan boshlanadi va `} bilan tugaydi.
84 | HTML hujjatining ko'rinadigan qismi {` va `} orasida joylashgan.
85 |
86 |
87 |
88 |
89 |
90 | Misol
91 |
92 | {`{`html`} {`>`}
93 | {`lang= "en" {`>`}
94 | {` `}
95 |
96 | {` `} Document {` `}
97 | {` `}
98 | {` `}
99 |
100 | {` `} Shu holatda {` `}
101 | {` `}Shu holatda {`
`}
102 |
103 | {` `}
104 | {` `}
105 |
106 |
107 |
108 | Nusxa olish
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 | {` Deklaratsiyasi`}
121 | {``} deklaratsiyasi hujjat turini ifodalaydi va brauzerlarga veb-sahifalarni to'g'ri ko'rsatishga yordam beradi.
122 | U faqat bir marta, sahifaning yuqori qismida (har qanday HTML teglaridan oldin) paydo bo'lishi kerak.
123 | {``} deklaratsiyasi katta-kichik harflarga sezgir emas.
124 | HTML5 uchun {``} deklaratsiyasi:
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 | {` {`html `} {`>`}
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 | )
146 | }
147 |
148 | export default Html2dars
--------------------------------------------------------------------------------
/src/pages/html3dars.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Flex , Heading , Button , Text , Image} from '@chakra-ui/react'
2 | import { HamburgerIcon , CloseIcon } from '@chakra-ui/icons'
3 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
4 | import {
5 | Drawer,
6 | DrawerBody,
7 | DrawerFooter,
8 | DrawerHeader,
9 | DrawerOverlay,
10 | DrawerContent,
11 | DrawerCloseButton,
12 | useDisclosure,
13 | useToast,Divider
14 | } from '@chakra-ui/react'
15 | import AccordionItenm from '../components/accordion/accordion'
16 | import CopyToClipboard from 'react-copy-to-clipboard'
17 | import { useEffect, useState } from 'react'
18 | import { vsc, vsp } from '../assets'
19 |
20 | const Html3dars = () => {
21 | const { isOpen, onOpen, onClose } = useDisclosure()
22 | const [placement, setPlacement] = useState('left')
23 | const [size, setSize] = useState('')
24 | const [clipboard , setClipboard] = useState(false)
25 | const toast = useToast()
26 |
27 | const handleClip = () => {
28 | setClipboard(true)
29 | toast({
30 | position: 'top-right',
31 | render: () => (
32 |
33 | Nusxa olindi!
34 |
35 | ),
36 | })
37 | }
38 | const handleClick = (newSize) => {
39 | setSize(newSize)
40 | onOpen()
41 | }
42 | const nandleClose = () => {
43 | onClose()
44 | }
45 | const sizes = ['md']
46 | useEffect(() => {
47 | window.scroll(0,0)
48 | }, [])
49 | return (
50 |
51 |
52 |
53 | {onOpen &&
54 |
55 | }
56 |
57 | {sizes.map((size) => (
58 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
59 |
60 |
61 |
62 | ))}
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 | HTML Hedinglar
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 | HTML sarlavhalari veb-sahifada ko'rsatmoqchi bo'lgan sarlavhalar yoki subtitrlardir.
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | Misol
91 |
92 | Heading 1
93 | Heading 2
94 | Heading 3
95 | Heading 4
96 | Heading 5
97 | Heading 6
98 |
99 |
100 | Nusxa olish
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 | HTML Hedinglar
111 | HTML sarlavhalari {` dan `} teglari bilan belgilanadi.
112 | {` eng muhim sarlavhani belgilaydi. `} eng muhim sarlavhani belgilaydi.
113 |
114 |
115 |
116 |
117 |
118 | Misol
119 |
120 | {``} Heading 1 {` `}
121 | {``} Heading 2 {` `}
122 | {``} Heading 3 {` `}
123 | {``} Heading 4 {` `}
124 | {``} Heading 5 {` `}
125 | {``} Heading 6 {` `}
126 |
127 |
128 | Nusxa olish
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 | )
138 | }
139 |
140 | export default Html3dars
--------------------------------------------------------------------------------
/src/pages/htmlCode.jsx:
--------------------------------------------------------------------------------
1 | import { Box , Flex , Heading , Button , Text , Image , Input , FormLabel, HStack, Radio, RadioGroup} from '@chakra-ui/react'
2 | import { HamburgerIcon , CloseIcon } from '@chakra-ui/icons'
3 | import Sidebar from '../components/sidebarhtml/sidebarhtml'
4 | import {
5 | Drawer,
6 | DrawerBody,
7 | DrawerFooter,
8 | DrawerHeader,
9 | DrawerOverlay,
10 | DrawerContent,
11 | DrawerCloseButton,
12 | useDisclosure,
13 | useToast,Divider,
14 | UnorderedList,
15 | ListItem
16 | } from '@chakra-ui/react'
17 | import AccordionItenm from '../components/accordion/accordion'
18 | import CopyToClipboard from 'react-copy-to-clipboard'
19 | import { useEffect, useState } from 'react'
20 | import {
21 | Table,
22 | Thead,
23 | Tbody,
24 | Tfoot,
25 | Tr,
26 | Th,
27 | Td,
28 | TableCaption,
29 | TableContainer,
30 | } from '@chakra-ui/react'
31 | import { Search2Icon } from '@chakra-ui/icons'
32 | import { data } from '../htmlCode'
33 | const HtmlCode = () => {
34 | const { isOpen, onOpen, onClose } = useDisclosure()
35 | const [placement, setPlacement] = useState('left')
36 | const [size, setSize] = useState('')
37 | const [clipboard , setClipboard] = useState(false)
38 | const toast = useToast()
39 | const [search , setSearch] = useState("")
40 | const handleClip = () => {
41 | setClipboard(true)
42 | toast({
43 | position: 'top-right',
44 | render: () => (
45 |
46 | Nusxa olindi!
47 |
48 | ),
49 | })
50 | }
51 | const handleClick = (newSize) => {
52 | setSize(newSize)
53 | onOpen()
54 | }
55 | const nandleClose = () => {
56 | onClose()
57 | }
58 | const sizes = ['md']
59 | useEffect(() => {
60 | window.scroll(0,0)
61 | }, [])
62 |
63 |
64 | let input = document.querySelector('#inp')
65 | document.addEventListener('keyup', e => {
66 | if(e.ctrlKey && e.key == "/"){
67 | input.focus();
68 | }
69 | })
70 | return (
71 |
72 |
73 |
74 | {onOpen &&
75 |
76 | }
77 |
78 | {sizes.map((size , i) => (
79 | handleClick(size)} bg={'#233242'} _hover={{bg: '#222'}} display={{base: 'block' , md: 'none'}}>
80 |
81 |
82 |
83 | ))}
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 | HTML Teglari Alifbo Tartibida Tartiblangan
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 | setSearch(e.target.value)}>
108 | Ctrl + /
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 | Turi
118 | Tavsif
119 |
120 |
121 |
122 | {data.filter((item => {
123 | return search.toLowerCase() == '' ? item : item.tag.toLowerCase().includes(search)
124 | })).map((item) => (
125 |
126 | {item.tag}
127 | {item.desc}
128 |
129 |
130 | ))}
131 |
132 |
133 |
134 |
135 |
136 |
137 | Taglar soni {data.length} ta dan iborat
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 | )
150 | }
151 |
152 | export default HtmlCode
--------------------------------------------------------------------------------
/src/pages/pageNotFound.jsx:
--------------------------------------------------------------------------------
1 | import {
2 | createStyles,
3 | Image,
4 | Container,
5 | Title,
6 | Text,
7 | Button,
8 | SimpleGrid,
9 | rem,
10 | } from '@mantine/core';
11 | import { notFound} from '../assets'
12 | import { Link } from 'react-router-dom';
13 | import { Box } from '@chakra-ui/react';
14 | import { ArrowBackIcon } from '@chakra-ui/icons';
15 |
16 | const useStyles = createStyles((theme) => ({
17 | root: {
18 | paddingTop: rem(80),
19 | paddingBottom: rem(80),
20 | },
21 |
22 | title: {
23 | fontWeight: 900,
24 | fontSize: rem(34),
25 | marginBottom: theme.spacing.md,
26 | fontFamily: `Greycliff CF, ${theme.fontFamily}`,
27 |
28 | [theme.fn.smallerThan('sm')]: {
29 | fontSize: rem(32),
30 | },
31 | },
32 |
33 | control: {
34 | [theme.fn.smallerThan('sm')]: {
35 | width: '100%',
36 | },
37 | },
38 |
39 | mobileImage: {
40 | [theme.fn.largerThan('sm')]: {
41 | display: 'none',
42 | },
43 | },
44 |
45 | desktopImage: {
46 | [theme.fn.smallerThan('sm')]: {
47 | display: 'none',
48 | },
49 | },
50 | }));
51 |
52 | const PageNotFound = () => {
53 | const { classes } = useStyles();
54 |
55 | return (
56 |
57 |
58 |
59 |
60 |
61 |
62 |
Nimadir noto‘g‘ri...
63 |
64 | Siz ochmoqchi bo'lgan sahifa mavjud emas. Siz manzilni yoki manzilni noto'g'ri kiritgan bo'lishingiz mumkin
65 | sahifa boshqa URL manziliga ko'chirildi. Agar buni xato deb hisoblasangiz, qo'llab-quvvatlash xizmatiga murojaat qiling.
66 |
67 |
68 | Bosh sahifaga qayting
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | );
79 | }
80 |
81 |
82 | export default PageNotFound
83 |
--------------------------------------------------------------------------------
/vite.config.js:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite'
2 | import react from '@vitejs/plugin-react'
3 |
4 | // https://vitejs.dev/config/
5 | export default defineConfig({
6 | plugins: [react()],
7 | })
8 |
--------------------------------------------------------------------------------