Skip to content

Commit

Permalink
feat: courses
Browse files Browse the repository at this point in the history
  • Loading branch information
0xk4b1r committed Jul 27, 2022
1 parent 753fe3c commit d3b0945
Show file tree
Hide file tree
Showing 23 changed files with 226 additions and 77 deletions.
20 changes: 20 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,23 @@
margin:0;
padding:0;
}

body {background: #010606; height: auto;}
html {
scrollbar-face-color: #646464;
scrollbar-base-color: #646464;
scrollbar-3dlight-color: #646464;
scrollbar-highlight-color: #646464;
scrollbar-track-color: #000;
scrollbar-arrow-color: #000;
scrollbar-shadow-color: #646464;
/*scrollbar-dark-shadow-color: #646464;*/
}

::-webkit-scrollbar { width: 8px; height: 3px;}
::-webkit-scrollbar-button { background-color: #666; }
::-webkit-scrollbar-track { background-color: #646464;}
::-webkit-scrollbar-track-piece { background-color: #000;}
::-webkit-scrollbar-thumb { height: 50px; background-color: #666; border-radius: 3px;}
::-webkit-scrollbar-corner { background-color: #646464;}
::-webkit-resizer { background-color: #666;}
15 changes: 5 additions & 10 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,21 @@ import './App.css';
import {Route, Routes} from "react-router-dom";

import Homepage from './pages/Homepage';
import {Footer, Navbar, Sidebar} from "./components";
import {Footer} from "./components";
import ScrollToTop from "./components/ScrollToTop";
import {Navigate} from "react-router";
import {YoutubeCourses} from './components'
import Resources from "./pages/Resources";

const App = () => {
const [isOpen, setIsOpen] = useState(false);
const toggle = () => setIsOpen(!isOpen);
return (
<>
<Sidebar isOpen={isOpen} toggle={toggle}/>
<Navbar toggle={toggle}/>
<div>
<ScrollToTop>
<Routes>
<Route exact path={"/"} element={<Homepage/>}/>
<Route exact path={"/courses"} element={<YoutubeCourses/>}/>
<Route exact path={"/resources"} element={<Resources/>}/>
</Routes>
</ScrollToTop>
<Footer/>
</>
</div>
);
};

Expand Down
44 changes: 38 additions & 6 deletions src/components/Buttons/ButtonElements.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,30 @@ export const Button = styled(ScrollLink)`
`

export const RouterButton = styled(RouterLink)`
border-radius: 10px;
text-decoration: none;
border-radius: 5px;
border-width: 1px;
border-style: solid;
border-color: #343434;
background: transparent;
margin-right: 20px; //border-radius: 50px;
background: ${({primary}) => primary ? '#01BF71' : '#010606'};
white-space: nowrap;
padding: ${({big}) => (big ? '14px 48px' : '12px 30px')};
color: ${({dark}) => dark ? '#010606' : '#fff'};
//color: ${({dark}) => dark ? '#ffffff' : '#0e0e0e'};
font-size: ${({fontBig}) => (fontBig ? '20px' : '16px')};
outline: none;
border: none;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.2s ease-in-out;
text-decoration: none;
color: #47cf73;
&:hover {
transition: all 0.2s ease-in-out;
background: ${({primary}) => primary ? '#fff' : '#01BF71'};
background: transparent;
border-color: #343434;
font-size: 18px;
}
`

Expand All @@ -80,6 +85,33 @@ export const ButtonLink = styled.a`
transition: all 0.2s ease-in-out;
text-decoration: none;
&:hover {
transition: all 0.2s ease-in-out;
background: transparent;
color: #47cf73;
border-color: #343434;
font-size: 18px;
}
`

export const ButtonRouterLink = styled(RouterLink)`
border-width: 1px;
border-style: solid;
border-color: #343434;
background: transparent;
margin-right: 20px;
white-space: nowrap;
padding: ${({big}) => (big ? '14px 48px' : '12px 30px')};
color: ${({dark}) => dark ? '#ffffff' : '#0e0e0e'};
font-size: ${({fontBig}) => (fontBig ? '20px' : '16px')};
outline: none;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.2s ease-in-out;
text-decoration: none;
&:hover {
transition: all 0.2s ease-in-out;
background: transparent;
Expand Down
6 changes: 3 additions & 3 deletions src/components/Courses.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import YoutubeCoursesNavbar from "./Courses/YoutubeCoursesNavbar/YoutubeCoursesNavbar";
import YoutubeCourses from "./Courses/YoutubeCourses";
import ResourcesNavbar from "./Resources/ResourcesNavbar/ResourcesNavbar";
import YoutubeCourses from "./Resources/Courses/YoutubeCourses";

const Courses = () => {
return (
<div>
{/*<YoutubeCoursesNavbar/>*/}
{/*<ResourcesNavbar/>*/}
<YoutubeCourses/>
</div>
);
Expand Down
11 changes: 6 additions & 5 deletions src/components/Homepage/Info/Data.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import contributeSvg from '../../../assets/images/open-source-contribution.svg';
import VersionControlSvg from '../../../assets/images/Servies/undraw_version_control_re_mg66.svg';
import communitySvg from '../../../assets/images/undraw_public_discussion_re_w9up.svg';
import coursesSvg from '../../../assets/images/undraw_programming_re_kg9v.svg';
import ResourcesSvg from '../../../assets/images/undraw_programming_re_kg9v.svg';
import logo_thecyberworld from '../../../assets/LogoTrans_theCyberw0rld.png';

import {FaGithub} from "react-icons/fa";
import {IconsSpacing} from "../../Buttons/ButtonElements";
import {IconsSpacing2} from "../../Buttons/ButtonElements";
Expand Down Expand Up @@ -43,8 +44,8 @@ export const aboutData = {
export const ResourcesData = {
id: 'resources',
idTo: 'resources',
buttonType: 'link',
link: "/courses",
buttonType: 'router',
link: "/resources",
lightBg: false,
lightText: true,
lightTextDesc: true,
Expand All @@ -57,8 +58,8 @@ export const ResourcesData = {
</p>,
buttonLabel: <> Explore <IconsSpacing2> <BsFillPlayFill/> </IconsSpacing2> </>,
imgStart: true,
img: coursesSvg,
alt: 'coursesSvg',
img: ResourcesSvg,
alt: 'ResourcesSvg',
dark: true,
primary: true,
darkText: false,
Expand Down
28 changes: 22 additions & 6 deletions src/components/Homepage/Info/Info.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import {Button, ButtonLink} from '../../Buttons/ButtonElements';
import {Button, ButtonLink, RouterButton} from '../../Buttons/ButtonElements';
import {
InfoContainer,
InfoWrapper,
Expand All @@ -15,6 +15,7 @@ import {
Img,
ScrollText
} from "./InfoElements";
import {Link} from "react-router-dom";

const InfoSection = ({
id,
Expand Down Expand Up @@ -49,8 +50,21 @@ const InfoSection = ({
<Heading lightText={lightText}> {headline} </Heading>
<Subtitle darkText={darkText}> {description} </Subtitle>
<BtnWrap>
{buttonType === 'scroll' ?
(
{buttonType === 'router' && (
// <Link to='/resources'>
<RouterButton
to='/resources'
primary={primary ? 'true' : ''}
dark={dark ? 1 : 0}
dark2={dark2 ? 1 : 0}
>
{buttonLabel}
</RouterButton>
// </Link>

)}

{buttonType === 'scroll' && (
<Button
to={idTo}
smooth={true}
Expand All @@ -64,7 +78,9 @@ const InfoSection = ({
>
{buttonLabel}
</Button>
) : (
) }

{buttonType === 'link' && (
<ButtonLink
href={link}
primary={primary ? 'true' : ''}
Expand All @@ -73,8 +89,8 @@ const InfoSection = ({
>
{buttonLabel}
</ButtonLink>
)
}
) }

<ScrollText
to={"contribute"}
smooth={true}
Expand Down
12 changes: 1 addition & 11 deletions src/components/Homepage/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@ import React, {useEffect, useState} from 'react'
import {IconContext} from 'react-icons/lib';
import {animateScroll as scroll} from 'react-scroll';
import {FaBars} from 'react-icons/fa';
import {
Nav,
NavbarContainer,
NavLogo,
MobileIcon,
NavMenu,
NavItem,
NavLinks,
NavLinkRouter,
NavBtn,
NavBtnLink
import {Nav, NavbarContainer, NavLogo, MobileIcon, NavMenu, NavItem, NavLinks, NavLinkRouter, NavBtn, NavBtnLink
} from "./NavbarElements";
import {Button} from "../../Buttons/ButtonElements";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@

.videoHeading{
text-decoration:none;
color: inherit;
color: #e8e6e3;

}

.ChannelHeading{
text-decoration:none;
color: inherit;
color: #e8e6e3;
}

.paddingTop{
Expand Down Expand Up @@ -61,9 +62,7 @@ img {
overflow: hidden;
box-shadow: 0 .1rem 1rem rgba(0, 0, 0, 0.1);
border-radius: 1em;
background: #ECE9E6;
background: linear-gradient(to right, #FFFFFF, #ECE9E6);

background: #1a1c1d;
}

.card__body {
Expand Down Expand Up @@ -93,7 +92,7 @@ img {

.tag-brown {
background: #D1913C;
background: linear-gradient(to bottom, #29254f, #171e26);
background: linear-gradient(to right, #0e0e0e, #2a2a2a);
color: #fafafa;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const LinuxYoutubeVideosCard = LinuxCourses__Youtube.map(
</div>
<div className="card__body">
<span className="tag tag-brown">{data.tag}</span>
<h3><a href={data.videoLink} target={"_blank"} className={"videoHeading"}>{data.videoHeading}</a></h3>
<h3 className={"courseHeading"}><a href={data.videoLink} target={"_blank"} className={"videoHeading"}>{data.videoHeading}</a></h3>
</div>

<hr/>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const CyberSecFreeYoutubeVideosData = [
channelName: "The Cyber Mentor",
channelLogo: "https://yt3.ggpht.com/ytc/AKedOLRGnc0be-YXi3zenYi6s8uwgPxi_IrLBZ7Rigv7=s48-c-k-c0x00ffffff-no-rj",
timeStamp: "Today",
alt: 'coursesSvg',
alt: 'ResourcesSvg',
channelLink: "https://www.youtube.com/c/TheCyberMentor",
}
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const LinuxCourses__Youtube = [
channelName: "The Cyber Mentor",
channelLogo: "https://yt3.ggpht.com/ytc/AKedOLRGnc0be-YXi3zenYi6s8uwgPxi_IrLBZ7Rigv7=s48-c-k-c0x00ffffff-no-rj",
timeStamp: "Today",
alt: 'coursesSvg',
alt: 'ResourcesSvg',
channelLink: "https://www.youtube.com/c/TheCyberMentor",
}
];
21 changes: 21 additions & 0 deletions src/components/Resources/CyberNews/CyberNews.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react';

const CyberNews = () => {
return (
<div>
<buttons>
<h1>Cyber News Soon</h1>

</buttons>
<h2>Cyber News Soon</h2>
<h3>Cyber News Soon</h3>
<h4>Cyber News Soon</h4>
<h5>Cyber News Soon</h5>
<h6>Cyber News Soon</h6>
<p>Cyber News Soon</p>
<a>Cyber News Soon</a>
</div>
);
};

export default CyberNews;
Loading

0 comments on commit d3b0945

Please sign in to comment.