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

Commit

Permalink
Merge pull request #534 from krushiraj/issue-529-add
Browse files Browse the repository at this point in the history
Issue 529 add
  • Loading branch information
vinaypuppal authored Sep 6, 2019
2 parents 5503281 + 0c26990 commit a9853d1
Show file tree
Hide file tree
Showing 10 changed files with 2,015 additions and 3,269 deletions.
12 changes: 11 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,19 @@
"contributions": [
"code"
]
},
{
"login": "krushiraj",
"name": "Krushi Raj Tula",
"avatar_url": "https://avatars0.githubusercontent.com/u/19507241?v=4",
"profile": "http://krushiraj.github.io",
"contributions": [
"code"
]
}
],
"repoType": "github",
"repoHost": "https://github.com",
"contributorsPerLine": 7
"contributorsPerLine": 7,
"commitConvention": "none"
}
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Coderplex Website

[![Build Status](https://travis-ci.org/coderplex/coderplex.svg?branch=master)](https://travis-ci.org/coderplex/coderplex) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) ![coderplex](https://david-dm.org/coderplex/coderplex.svg) [![All Contributors](https://img.shields.io/badge/all_contributors-27-orange.svg?style=flat-square)](#contributors) [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/coderplex/coderplex/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/coderplex/coderplex.svg?branch=master)](https://travis-ci.org/coderplex/coderplex) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) ![coderplex](https://david-dm.org/coderplex/coderplex.svg) [![All Contributors](https://img.shields.io/badge/all_contributors-28-orange.svg?style=flat-square)](#contributors-) [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/coderplex/coderplex/blob/master/LICENSE)

## Follow our community here at [https://www.coderplex.org](https://www.coderplex.org)

Expand All @@ -23,7 +23,8 @@ We welcome pull requests from beginners and seasoned javaScript developers alike
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://www.vinaypuppal.com/"><img src="https://avatars1.githubusercontent.com/u/8843216?v=4" width="100px;" alt="Vinay Puppal"/><br /><sub><b>Vinay Puppal</b></sub></a><br /><a href="https://github.com/coderplex/coderplex/issues?q=author%3Avinaypuppal" title="Bug reports">🐛</a> <a href="https://github.com/coderplex/coderplex/commits?author=vinaypuppal" title="Code">💻</a> <a href="#ideas-vinaypuppal" title="Ideas, Planning, & Feedback">🤔</a> <a href="#review-vinaypuppal" title="Reviewed Pull Requests">👀</a></td>
Expand Down Expand Up @@ -59,7 +60,10 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
<td align="center"><a href="https://shahednasser.herokuapp.com"><img src="https://avatars1.githubusercontent.com/u/27354907?v=4" width="100px;" alt="Shahed Nasser"/><br /><sub><b>Shahed Nasser</b></sub></a><br /><a href="https://github.com/coderplex/coderplex/commits?author=shahednasser" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/addictd"><img src="https://avatars2.githubusercontent.com/u/23260049?v=4" width="100px;" alt="deep"/><br /><sub><b>deep</b></sub></a><br /><a href="https://github.com/coderplex/coderplex/commits?author=addictd" title="Code">💻</a> <a href="https://github.com/coderplex/coderplex/commits?author=addictd" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/VickyAbishek"><img src="https://avatars3.githubusercontent.com/u/9305700?v=4" width="100px;" alt="VickyAbishek"/><br /><sub><b>VickyAbishek</b></sub></a><br /><a href="https://github.com/coderplex/coderplex/commits?author=VickyAbishek" title="Code">💻</a></td>
<td align="center"><a href="http://krushiraj.github.io"><img src="https://avatars0.githubusercontent.com/u/19507241?v=4" width="100px;" alt="Krushi Raj Tula"/><br /><sub><b>Krushi Raj Tula</b></sub></a><br /><a href="https://github.com/coderplex/coderplex/commits?author=krushiraj" title="Code">💻</a></td>
</tr>
</table>

<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
32 changes: 32 additions & 0 deletions components/common/airtable-form.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from 'react';
import Head from 'next/head';
import styled from 'react-emotion';

import Layout from './layout';

export default ({ formId, height }) => {
return (
<Layout>
<Head>
<script src="https://static.airtable.com/js/embed/embed_snippet_v1.js" />
</Head>
<IframeContainer>
<iframe
className="airtable-embed airtable-dynamic-height"
src={`https://airtable.com/embed/${formId}?backgroundColor=green`}
frameBorder="0"
onmousewheel=""
width="100%"
height={height}
style={{ background: `transparent`, border: `1px solid #ccc` }}
/>
</IframeContainer>
</Layout>
);
};

const IframeContainer = styled.div`
background-image: url('https://res.cloudinary.com/vinaypuppal/image/upload/c_scale,w_102/v1528992906/Spinner-1s-200px_wnlnc6.gif');
background-position: center top;
background-repeat: no-repeat;
`;
9 changes: 8 additions & 1 deletion components/common/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class NavBar extends React.Component {
title: 'Join',
path: '/join',
},
{
title: 'Feedback',
path: '/feedback',
},
{
title: 'Blog',
path: 'https://coderplex.org/blog',
Expand Down Expand Up @@ -88,6 +92,7 @@ class NavBar extends React.Component {
this.props.router.query.subject.slice(1)} | Coderplex`
: metaData.title;
const { description, image } = metaData;
const navCollapseStyle = { top: `-${(this.state.navItems.length - 1) * 100}%` };
return (
<Headroom>
<Header>
Expand All @@ -105,7 +110,9 @@ class NavBar extends React.Component {
/>
</Link>
</NavLogo>
<NavLinks className={this.state.menuOpen ? 'open' : ''}>
<NavLinks
className={this.state.menuOpen ? 'open' : ''}
style={this.state.menuOpen ? {} : navCollapseStyle}>
{this.state.navItems
.filter(item => !item.external)
.map(item => (
Expand Down
1 change: 0 additions & 1 deletion components/common/header/index.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const NavLinks = styled.ul`
width: 100%;
position: fixed;
z-index: -1;
top: -600%;
left: 0;
background: #fbfbfb;
border-bottom: 1px solid #eee;
Expand Down
17 changes: 9 additions & 8 deletions config/meta-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
},
"learn": {
"title": "Free and Open Source Learning Guides | Coderplex",
"description":
"Curated guides with crowd-sourced recommendations of the best free online resources to learn various modern technologies",
"description": "Curated guides with crowd-sourced recommendations of the best free online resources to learn various modern technologies",
"image": ""
},
"space": {
"title": "Offline Co-learning Spaces | Coderplex",
"description":
"A network of off-learning spaces for autodidacts to come and engage in peer-learning and collaboration",
"description": "A network of off-learning spaces for autodidacts to come and engage in peer-learning and collaboration",
"image": ""
},
"events": {
Expand All @@ -26,21 +24,24 @@
"description": "Join the biggest and most active developer community in Hyderabad!",
"image": ""
},
"feedback": {
"title": "Coderplex - Feedback",
"description": "Help in shaping Coderplex to it's best by providing your views and thoughts with us.",
"image": ""
},
"members": {
"title": "Our community member | Coderplex",
"description": "List of all our community members",
"image": ""
},
"privacy": {
"title": "Privacy Policy of Coderplex Foundation",
"description":
"This page is used to inform website visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service, the Coderplex website.",
"description": "This page is used to inform website visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service, the Coderplex website.",
"image": ""
},
"terms": {
"title": "Privacy Policy of Coderplex Foundation",
"description":
"This page is used to inform website visitors regarding our terms and conditions which outline the rules and regulations for the use of Coderplex Foundation's Website.",
"description": "This page is used to inform website visitors regarding our terms and conditions which outline the rules and regulations for the use of Coderplex Foundation's Website.",
"image": ""
}
}
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module.exports = {
'/learn': { page: '/learn' },
'/space': { page: '/space' },
'/join': { page: '/join' },
'/feedback': { page: '/feedback' },
'/terms': { page: '/terms' },
'/privacy': { page: '/privacy' },
};
Expand Down
7 changes: 7 additions & 0 deletions pages/feedback.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';

import Form from '../components/common/airtable-form';

export default () => {
return <Form formId="shrhz9WWHYRzNhJNl" height="2190" />;
};
29 changes: 2 additions & 27 deletions pages/join.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,7 @@
import React from 'react';
import Head from 'next/head';
import styled from 'react-emotion';

import Layout from '../components/common/layout';
import Form from '../components/common/airtable-form';

export default () => {
return (
<Layout>
<Head>
<script src="https://static.airtable.com/js/embed/embed_snippet_v1.js" />
</Head>
<IframeContainer>
<iframe
className="airtable-embed airtable-dynamic-height"
src="https://airtable.com/embed/shrY3VfShFqerCJmX?backgroundColor=green"
frameBorder="0"
onmousewheel=""
width="100%"
height="1881"
style={{ background: `transparent`, border: `1px solid #ccc` }}
/>
</IframeContainer>
</Layout>
);
return <Form formId="shrY3VfShFqerCJmX" height="1881" />;
};

const IframeContainer = styled.div`
background-image: url('https://res.cloudinary.com/vinaypuppal/image/upload/c_scale,w_102/v1528992906/Spinner-1s-200px_wnlnc6.gif');
background-position: center top;
background-repeat: no-repeat;
`;
Loading

1 comment on commit a9853d1

@vercel
Copy link

@vercel vercel bot commented on a9853d1 Sep 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.