Update banner and new video link

pull/1657/head
Kamran Ahmed 5 years ago
parent 90004e69a6
commit 013522148a
  1. 6
      components/sponsor-banner/index.js
  2. 14
      components/sponsor-banner/style.js
  3. 20
      pages/watch.js

@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import { BannerWrap, CloseSponsor, EmojiWrap, SponsorLogo } from './style'; import { BannerWrap, CloseSponsor, SponsorLogo } from './style';
export function SponsorBanner({ onCloseBanner = () => null }) { export function SponsorBanner({ onCloseBanner = () => null }) {
return ( return (
@ -11,9 +11,7 @@ export function SponsorBanner({ onCloseBanner = () => null }){
className='alert alert-info' className='alert alert-info'
> >
<SponsorLogo src='/sponsors/youtube.svg' /> <SponsorLogo src='/sponsors/youtube.svg' />
We now have a youtube channel We now have a youtube channel. <span className='d-none d-sm-inline-block'>Subscribe for the video content.</span>
<EmojiWrap src={'/sponsors/heart-eyes.svg'} />
<span className='d-none d-sm-inline-block'>Subscribe for the video content.</span>
<CloseSponsor <CloseSponsor
onClick={(e) => { onClick={(e) => {

@ -2,8 +2,11 @@ import styled from 'styled-components';
export const BannerWrap = styled.a` export const BannerWrap = styled.a`
margin-bottom: 0; margin-bottom: 0;
background: #101010; //background: #101010;
color: white; //color: white;
background: #ffe0b2;
color: #d8362a;
font-weight: 600;
border: 0; border: 0;
border-radius: 0; border-radius: 0;
padding: 10px 15px; padding: 10px 15px;
@ -12,7 +15,8 @@ export const BannerWrap = styled.a`
transition: all 200ms; transition: all 200ms;
&:hover { &:hover {
color: white; background: #ffd698;
color: #bd2015;
text-decoration: none; text-decoration: none;
} }
`; `;
@ -32,14 +36,14 @@ export const EmojiWrap = styled.img`
`; `;
export const CloseSponsor = styled.span` export const CloseSponsor = styled.span`
color: white;
text-shadow: none; text-shadow: none;
margin-right: 15px; margin-right: 15px;
position: relative; position: relative;
top: -2px; top: -2px;
color: #101010;
&:hover { &:hover {
opacity: 1; opacity: 1;
color: white; color: #101010;
} }
`; `;

@ -14,18 +14,18 @@ const WatchList = () => (
<DefaultLayout> <DefaultLayout>
<Helmet title='Watch' desciption='List of videos published on our youtube channel so far' /> <Helmet title='Watch' desciption='List of videos published on our youtube channel so far' />
<SiteNav /> <SiteNav />
<div className="container"> <div className='container'>
<PageHeader <PageHeader
title={'Watch'} title={'Watch'}
subtitle={'List of videos published on our youtube channel so far'}> subtitle={'List of videos published on our youtube channel so far'}>
<BadgesList className="mt-4"> <BadgesList className='mt-4'>
<BadgeLink href='https://www.youtube.com/channel/UCA0H2KIWgWTwpTFjSxp0now?sub_confirmation=1' target="_blank"> <BadgeLink href='https://www.youtube.com/channel/UCA0H2KIWgWTwpTFjSxp0now?sub_confirmation=1' target='_blank'>
<SecondaryBadge> <SecondaryBadge>
<FontAwesomeIcon icon={faYoutube} /> <FontAwesomeIcon icon={faYoutube} />
YouTube Channel YouTube Channel
</SecondaryBadge> </SecondaryBadge>
</BadgeLink> </BadgeLink>
<BadgeLink href="/signup"> <BadgeLink href='/signup'>
<PrimaryBadge> <PrimaryBadge>
<FontAwesomeIcon icon={faEnvelope} /> <FontAwesomeIcon icon={faEnvelope} />
Send me Updates Send me Updates
@ -34,9 +34,15 @@ const WatchList = () => (
</BadgesList> </BadgesList>
</PageHeader> </PageHeader>
</div> </div>
<div className="pt-5 pb-5 bg-light border-top"> <div className='pt-5 pb-5 bg-light border-top'>
<div className="container"> <div className='container'>
<div className="row"> <div className='row'>
<RowBlock
openExternal
title={'JavaScript Fetch API'}
subtitle="Learn how to make API calls with vanilla JavaScript using browser's builtin Fetch API."
url='https://www.youtube.com/watch?v=a2rcgzludDU'
/>
<RowBlock <RowBlock
openExternal openExternal
title={'Scaling an Application'} title={'Scaling an Application'}

Loading…
Cancel
Save