-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3090810
commit 302cf7a
Showing
21 changed files
with
637 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Web site created using create-react-app" | ||
/> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>Coding Hub</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
}, | ||
{ | ||
"src": "logo192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "logo512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * | ||
Disallow: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'; | ||
import Footer from './components/Footer'; | ||
import Header from './components/Header'; | ||
import Home from './components/Home'; | ||
import Login from './components/Login'; | ||
import Upload from './components/Upload'; | ||
import Videos from './components/Videos'; | ||
import Signup from './components/Signup'; | ||
|
||
function App() { | ||
return ( | ||
<Router> | ||
<Header /> | ||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="/videos" element={<Videos />} /> | ||
<Route path="/upload" element={<Upload />} /> | ||
<Route path="/login" element={<Login />} /> | ||
<Route path="/signup" element={<Signup />} /> | ||
</Routes> | ||
<Footer /> | ||
</Router> | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import { useColorMode, useColorModeValue, IconButton } from '@chakra-ui/react'; | ||
import { FaMoon, FaSun } from 'react-icons/fa'; | ||
|
||
const ColorModeSwitcher = props => { | ||
const { toggleColorMode } = useColorMode(); | ||
const SwitchIcon = useColorModeValue(FaMoon, FaSun); | ||
|
||
return ( | ||
<IconButton | ||
variant="ghost" | ||
color="current" | ||
pos={'fixed'} | ||
top={'4'} | ||
right={'4'} | ||
zIndex={'overlay'} | ||
onClick={toggleColorMode} | ||
icon={<SwitchIcon />} | ||
{...props} | ||
/> | ||
); | ||
}; | ||
|
||
export default ColorModeSwitcher; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
import { | ||
Box, | ||
Button, | ||
Heading, | ||
HStack, | ||
Input, | ||
Stack, | ||
Text, | ||
VStack, | ||
} from '@chakra-ui/react'; | ||
import React from 'react'; | ||
import { AiOutlineSend } from 'react-icons/ai'; | ||
|
||
const Footer = () => { | ||
return ( | ||
<Box bgColor={'blackAlpha.900'} minH={'40'} p="16" color={'white'}> | ||
<Stack direction={['column', 'row']}> | ||
<VStack alignItems={'stretch'} w={'full'} px={'4'}> | ||
<Heading | ||
size="md" | ||
textTransform={'uppercase'} | ||
textAlign={['center', 'left']} | ||
> | ||
Subscribe to get updates | ||
</Heading> | ||
<HStack borderBottom={'2px solid white'} py="2"> | ||
<Input | ||
placeholder="Enter Email Here..." | ||
border={'none'} | ||
borderRadius="none" | ||
outline={'none'} | ||
focusBorderColor="none" | ||
/> | ||
<Button | ||
p={'0'} | ||
colorScheme={'purple'} | ||
variant={'ghost'} | ||
borderRadius={'0 20px 20px 0'} | ||
> | ||
<AiOutlineSend size={20} /> | ||
</Button> | ||
</HStack> | ||
</VStack> | ||
|
||
<VStack | ||
w={'full'} | ||
borderLeft={['none', '1px solid white']} | ||
borderRight={['none', '1px solid white']} | ||
> | ||
<Heading textTransform={'uppercase'} textAlign={'center'}> | ||
CODING HUB | ||
</Heading> | ||
<Text>All rights received</Text> | ||
</VStack> | ||
|
||
<VStack w={'full'}> | ||
<Heading size={'md'} textTransform={'uppercase'}> | ||
Social Media | ||
</Heading> | ||
<Button variant={'link'} colorScheme={'white'}> | ||
<a target={'black'} href="https://www.youtube.com/@GAUTAM_OP"> | ||
Youtube | ||
</a> | ||
</Button> | ||
<Button variant={'link'} colorScheme={'white'}> | ||
<a target={'black'} href="https://www.instagram.com/gautam_op_/"> | ||
</a> | ||
</Button> | ||
|
||
<Button variant={'link'} colorScheme={'white'}> | ||
<a target={'black'} href="https://github.com/gautamop01"> | ||
Github | ||
</a> | ||
</Button> | ||
</VStack> | ||
</Stack> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
import React from 'react'; | ||
import { | ||
Drawer, | ||
DrawerBody, | ||
DrawerHeader, | ||
DrawerOverlay, | ||
DrawerContent, | ||
DrawerCloseButton, | ||
Button, | ||
useDisclosure, | ||
VStack, | ||
HStack, | ||
} from '@chakra-ui/react'; | ||
import { Link } from 'react-router-dom'; | ||
import { BiMenuAltLeft } from 'react-icons/bi'; | ||
|
||
const Header = () => { | ||
const { isOpen, onOpen, onClose } = useDisclosure(); | ||
|
||
return ( | ||
<> | ||
<Button | ||
zIndex={'overlay'} | ||
pos={'fixed'} | ||
top={'4'} | ||
left={'4'} | ||
colorScheme="purple" | ||
p={'0'} | ||
w={'10'} | ||
h={'10'} | ||
borderRadius={'full'} | ||
onClick={onOpen} | ||
> | ||
<BiMenuAltLeft size={'20'} /> | ||
</Button> | ||
|
||
<Drawer isOpen={isOpen} placement="left" onClose={onClose}> | ||
<DrawerOverlay /> | ||
|
||
<DrawerContent> | ||
<DrawerCloseButton /> | ||
<DrawerHeader>VIDEO HUB</DrawerHeader> | ||
<DrawerBody> | ||
<VStack alignItems={'flex-start'}> | ||
<Button | ||
onClick={onClose} | ||
variant={'ghost'} | ||
colorScheme={'purple'} | ||
> | ||
<Link to={'/'}>Home</Link> | ||
</Button> | ||
|
||
<Button | ||
onClick={onClose} | ||
variant={'ghost'} | ||
colorScheme={'purple'} | ||
> | ||
<Link to={'/videos'}>Videos</Link> | ||
</Button> | ||
|
||
<Button | ||
onClick={onClose} | ||
variant={'ghost'} | ||
colorScheme={'purple'} | ||
> | ||
<Link to={'/videos?category=free'}>Free Videos</Link> | ||
</Button> | ||
|
||
<Button | ||
onClick={onClose} | ||
variant={'ghost'} | ||
colorScheme={'purple'} | ||
> | ||
<Link to={'/upload'}>Upload Video</Link> | ||
</Button> | ||
</VStack> | ||
|
||
<HStack | ||
pos={'absolute'} | ||
bottom={'10'} | ||
left={'0'} | ||
w={'full'} | ||
justifyContent={'space-evenly'} | ||
> | ||
<Button onClick={onClose} colorScheme={'purple'}> | ||
<Link to={'/login'}>Log In</Link> | ||
</Button> | ||
<Button | ||
onClick={onClose} | ||
colorScheme={'purple'} | ||
variant={'outline'} | ||
> | ||
<Link to={'/signup'}>Sign Up</Link> | ||
</Button> | ||
</HStack> | ||
</DrawerBody> | ||
</DrawerContent> | ||
</Drawer> | ||
</> | ||
); | ||
}; | ||
|
||
export default Header; |
Oops, something went wrong.