From 3192774455676843c985b2979f29e07fe4789c98 Mon Sep 17 00:00:00 2001 From: M-ZubairAhmed Date: Sun, 22 Oct 2017 08:47:49 +0530 Subject: [PATCH 1/5] 1. top banner component seperated out 2. top-banner included in events and space page --- components/top-banner.js | 25 +++++++++++++++++++++++++ pages/events.js | 20 +++++--------------- pages/space.js | 18 +++++++++++------- 3 files changed, 41 insertions(+), 22 deletions(-) create mode 100644 components/top-banner.js diff --git a/components/top-banner.js b/components/top-banner.js new file mode 100644 index 000000000..d8fbdaaaf --- /dev/null +++ b/components/top-banner.js @@ -0,0 +1,25 @@ +import React from 'react'; + +export default props => ( +
+
+
+

{props.pageTitle}

+

{props.pageSubTitle}

+
+ +
+
+); diff --git a/pages/events.js b/pages/events.js index ffc2e5cff..dcc8fb61f 100644 --- a/pages/events.js +++ b/pages/events.js @@ -3,6 +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 { baseEventsURL, futureEventsURL, pastEventsURL } from '../utils/urls'; import RowEvent from '../components/row-events'; @@ -98,10 +99,10 @@ class Events extends React.Component { render() { return (
-
-

Events

-

Because you cannot change the world alone

-
+
{this.state.loading ? ( @@ -124,17 +125,6 @@ class Events extends React.Component { align-items: center; flex-direction: column; } - .top_banner_root { - background-color: #f4f7fb; - min-height: 200px; - text-align: center; - } - .top_banner_headline { - padding-top: 20px; - font-size: 4em; - color: #df1cb5; - font-weight: 900; - } `}
); diff --git a/pages/space.js b/pages/space.js index 579be93c6..2d6e90fda 100644 --- a/pages/space.js +++ b/pages/space.js @@ -1,19 +1,23 @@ import React from 'react'; -import Icon from '../components/icon'; +import TopBanner from '../components/top-banner'; import publicPage from '../hocs/public-page'; export default publicPage(() => (
-
- -

Under Construction, Coming Soon!...

-
+ +
llll
From b35d126471b51a5da9dfb0313f4eefeafc024dc5 Mon Sep 17 00:00:00 2001 From: M-ZubairAhmed Date: Sun, 22 Oct 2017 12:19:25 +0530 Subject: [PATCH 3/5] rest of spaces design complete --- pages/space.js | 67 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 64 insertions(+), 3 deletions(-) diff --git a/pages/space.js b/pages/space.js index f99226b2e..51f1b10f5 100644 --- a/pages/space.js +++ b/pages/space.js @@ -1,5 +1,5 @@ import React from 'react'; -import { Card, Segment } from 'semantic-ui-react'; +import { Card, Segment, Header, Divider } from 'semantic-ui-react'; import TopBanner from '../components/top-banner'; import publicPage from '../hocs/public-page'; @@ -13,7 +13,7 @@ export default publicPage(() => (
- + These are dynamic learning environments, where everyone learns at their own pace and compliments each other. You can also @@ -62,9 +62,66 @@ export default publicPage(() => ( We will help you pick a technology and provide you with learning guides to learn and build something on a daily basis. + +

Daily

+ You will engage in daily code review and pair programming exercise + with other members. +
+ +

Wednesday

+ We will have an Open Source Evening, where everyone will be + encouraged to find open source projects and contribute to them. +
+ +

Thursday

+ We will have a casual coding competition, where members will + participate to solve coding challenges together. +
+ +

Friday - Saturday

+ We will have a casual hackathons, where everyone will participate + to build a project, big or small. +
+ +

Saturday

+ In evening, we will screen a tech related documentary, movie or TV + show. +
+ +

Sunday

+ Members will present their work i.e projects or new topics they + have made or learned in the past week +
+ + + +
+

Pricing

+
+ + + +
+ INR 1000/- + per month +
+
+ + For membership mail us
space@coderplex.org +
+
+
+
+

Mode of payment

+ + UPI + PayTM + Cash + +
From abf1974ed7020e43a7e4d1537bc42badc45a1eef Mon Sep 17 00:00:00 2001 From: M-ZubairAhmed Date: Sun, 22 Oct 2017 15:02:32 +0530 Subject: [PATCH 4/5] check for no image tag in desc --- components/header.js | 2 +- components/row-events.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/header.js b/components/header.js index b44475dff..caa250b39 100644 --- a/components/header.js +++ b/components/header.js @@ -87,7 +87,7 @@ export default props => { padding: 5px 20px; width: 100%; background: #fff; - z-index: 1000 + z-index: 1000; } .header__container { max-width: 1280px; diff --git a/components/row-events.js b/components/row-events.js index 258150198..872b4544d 100644 --- a/components/row-events.js +++ b/components/row-events.js @@ -5,7 +5,8 @@ import PropTypes from 'prop-types'; const extractImageUrl = input => { const regex = / { From b00cc7c2667135a4068c7252c5ce31fbcd9ffa3b Mon Sep 17 00:00:00 2001 From: M-ZubairAhmed Date: Sun, 22 Oct 2017 20:53:10 +0530 Subject: [PATCH 5/5] semantic ui updated --- package.json | 31 +++++++++++++++---------------- yarn.lock | 2 +- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 97ea5cccf..25694cd4e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "test": "xo", - "lint": "prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' --write --single-quote --print-width='80' --trailing-comma='all' && xo --fix", + "lint": + "prettier 'utils/**/*.js' 'components/**/*.js' 'pages/**/*.js' 'lib/**/*.js' 'hocs/**/*.js' '*.js' --write --single-quote --print-width='80' --trailing-comma='all' && xo --fix", "precommit": "lint-staged", "analyze": "cross-env ANALYZE=1 next build", "dev": "cross-env NODE_ENV=development next", @@ -15,24 +16,15 @@ }, "xo": { "parser": "babel-eslint", - "extends": [ - "prettier", - "prettier/react", - "plugin:react/recommended" - ], - "env": [ - "browser", - "node" - ], + "extends": ["prettier", "prettier/react", "plugin:react/recommended"], + "env": ["browser", "node"], "rules": { "linebreak-style": 0, "react/display-name": 0, "react/prop-types": 0 }, "space:": 2, - "ignores": [ - "next.config.js" - ] + "ignores": ["next.config.js"] }, "lint-staged": { "*.js": [ @@ -42,8 +34,15 @@ ] }, "keywords": [], - "author": "Vinay Puppal (https://www.vinaypuppal.com/)", - "license": "BSD", + "contributors": [ + "Vinay Puppal (https://www.vinaypuppal.com/)", + "M-ZubairAhmed (https://github.com/M-ZubairAhmed)" + ], + "repository": { + "type": "git", + "url": "https://github.com/coderplex/coderplex.git" + }, + "license": "BSD-3-Clause", "dependencies": { "date-fns": "1.29.0", "feathers-rest": "^1.8.0", @@ -58,7 +57,7 @@ "react-headroom": "^2.1.6", "react-icons": "^2.2.5", "react-textgradient": "0.0.2", - "semantic-ui-react": "^0.71.3" + "semantic-ui-react": "^0.71.5" }, "devDependencies": { "axios": "0.16.2", diff --git a/yarn.lock b/yarn.lock index 6ad2a5879..0e13fb73b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5190,7 +5190,7 @@ semantic-release@^8.0.3: require-relative "^0.8.7" semver "^5.4.1" -semantic-ui-react@^0.71.3: +semantic-ui-react@^0.71.5: version "0.71.5" resolved "https://registry.yarnpkg.com/semantic-ui-react/-/semantic-ui-react-0.71.5.tgz#c8713f1cbdd63815843949fb611602541d3a20d8" dependencies: