Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Header urls change #63

Merged
merged 24 commits into from
Nov 2, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
top banner name changed => common banner
  • Loading branch information
M-ZubairAhmed committed Nov 2, 2017
commit cc6fdc93444975c5867b03047ee51b4da11de0e7
8 changes: 4 additions & 4 deletions components/top-banner.js → components/common-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import React from 'react';
export default props => (
<div>
<div>
<div className="top_banner_root">
<h1 className="top_banner_headline">{props.pageTitle}</h1>
<div className="root">
<h1 className="headline">{props.pageTitle}</h1>
<h2>{props.pageSubTitle}</h2>
</div>
<style jsx>{`
.top_banner_root {
.root {
background-color: #f4f7fb;
min-height: 200px;
text-align: center;
}
.top_banner_headline {
.headline {
padding-top: 20px;
font-size: 4em;
color: #df1cb5;
Expand Down
4 changes: 2 additions & 2 deletions pages/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fetch from 'isomorphic-unfetch';
import { Card, Divider, Dimmer, Loader } from 'semantic-ui-react';

import publicPage from '../hocs/public-page';
import TopBanner from '../components/top-banner';
import CommonBanner from '../components/common-banner';
import { baseEventsURL, futureEventsURL, pastEventsURL } from '../utils/urls';
import RowEvent from '../components/row-events';

Expand Down Expand Up @@ -99,7 +99,7 @@ class Events extends React.Component {
render() {
return (
<div>
<TopBanner
<CommonBanner
pageTitle="Events"
pageSubTitle="Because you cannot change the world alone"
/>
Expand Down
4 changes: 2 additions & 2 deletions pages/learn/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import Link from 'next/link';

import publicPage from '../../hocs/public-page';
import TopBanner from '../../components/top-banner';
import CommonBanner from '../../components/common-banner';

import { listOfSubjects, listOfDomains } from '../../utils/mock-data';

Expand Down Expand Up @@ -41,7 +41,7 @@ class Learn extends React.Component {
render() {
return (
<div className="root">
<TopBanner
<CommonBanner
pageTitle="Learn"
pageSubTitle="Open Source Learning Guides to master your favorite technology"
/>
Expand Down
4 changes: 2 additions & 2 deletions pages/space.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import { Card, Segment, Header, Divider } from 'semantic-ui-react';

import TopBanner from '../components/top-banner';
import CommonBanner from '../components/common-banner';
import publicPage from '../hocs/public-page';

export default publicPage(() => (
<div>
<TopBanner
<CommonBanner
pageTitle="Space"
pageSubTitle="Physical spaces for collaboration, peer-learning and self-learning"
/>
Expand Down