Skip to content

Commit

Permalink
Add present sponsors
Browse files Browse the repository at this point in the history
  • Loading branch information
darkenergy96 committed Oct 24, 2018
1 parent 629abbc commit a4eb168
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
import React, { Component } from "react";
import SponsorsView from "./SponsorsView";
const pastsponsors = {
const sponsors = {
present: [
// { name: "Eat On", img: "/static/img/sponsors/dell.png" },
{ name: "Malt", img: "/static/img/sponsors/malt.png" },
{ name: "Lifafa", img: "/static/img/sponsors/lifafa.jpg" },
// { name: "HungerHunt", img: "/static/img/sponsors/dell.png" },
{ name: "khunnoo lal", img: "/static/img/sponsors/khunnoo.png" },
// { name: "HotelPlacid", img: "/static/img/sponsors/dell.png" },
// { name: "AIEFA", img: "/static/img/sponsors/dell.png" },
{ name: "Made Easy", img: "/static/img/sponsors/made-easy.jpg" },
{ name: "Vidyalankar", img: "/static/img/sponsors/vidyalankar.png" },
{ name: "Being Zero", img: "/static/img/sponsors/being-zero.png" },
{ name: "Paytm", img: "/static/img/sponsors/paytm.jpg" },
// { name: "IES Master", img: "/static/img/sponsors/ies-master.png" },
{ name: "Oyo", img: "/static/img/sponsors/oyo.png" },
{ name: "Engineer Circle", img: "/static/img/sponsors/ec.png" },
{ name: "Top coder", img: "/static/img/sponsors/topcoder.png" },
{ name: "Hacker Earth", img: "/static/img/sponsors/hackerearth.png" }
],
first: [
{ name: "DELL", img: "/static/img/past-sponsors/dell.png" },
{ name: "Pepsi", img: "/static/img/past-sponsors/pepsi.png" },
Expand Down Expand Up @@ -53,34 +71,67 @@ const pastsponsors = {
{ name: "Autodesk", img: "/static/img/past-sponsors/autodesk.jpg" },
{ name: "Levis", img: "/static/img/past-sponsors/levis.png" }
],
all: [
past: [
{ name: "DELL", img: "/static/img/past-sponsors/dell_edited.jpg" },
{ name: "Pepsi", img: "/static/img/past-sponsors/pepsi_edited.jpg" },
{ name: "Coca Cola", img: "/static/img/past-sponsors/coca-cola_edited.jpg" },
{name: "Dominos Pizza",img: "/static/img/past-sponsors/dominos-pizza_edited.jpg"},
{ name: "Bikanervala", img: "/static/img/past-sponsors/bikanervala_edited.jpg" },
{name: "Godrej interio",img: "/static/img/past-sponsors/godrej-interio_edited.jpg"},
{ name: "Dhyeya IAS", img: "/static/img/past-sponsors/dhyeya-ias_edited.jpg" },
{ name: "Indian Oil", img: "/static/img/past-sponsors/indian-oil_edited.jpg" },
{ name: "Made Easy", img: "/static/img/past-sponsors/made-easy_edited.jpg" },
{
name: "Coca Cola",
img: "/static/img/past-sponsors/coca-cola_edited.jpg"
},
{
name: "Dominos Pizza",
img: "/static/img/past-sponsors/dominos-pizza_edited.jpg"
},
{
name: "Bikanervala",
img: "/static/img/past-sponsors/bikanervala_edited.jpg"
},
{
name: "Godrej interio",
img: "/static/img/past-sponsors/godrej-interio_edited.jpg"
},
{
name: "Dhyeya IAS",
img: "/static/img/past-sponsors/dhyeya-ias_edited.jpg"
},
{
name: "Indian Oil",
img: "/static/img/past-sponsors/indian-oil_edited.jpg"
},
{
name: "Made Easy",
img: "/static/img/past-sponsors/made-easy_edited.jpg"
},
{ name: "IMS", img: "/static/img/past-sponsors/ims_edited.jpg" },
{ name: "KTPL", img: "/static/img/past-sponsors/ktpl_edited.jpg" },
{ name: "Gate Forum", img: "/static/img/past-sponsors/gate-forum_edited.jpg" },
{
name: "Gate Forum",
img: "/static/img/past-sponsors/gate-forum_edited.jpg"
},
{ name: "KTM", img: "/static/img/past-sponsors/ktm_edited.jpg" },
{name: "Royal Enfield", img: "/static/img/past-sponsors/royal-enfield_edited.jpg" },
{
name: "Royal Enfield",
img: "/static/img/past-sponsors/royal-enfield_edited.jpg"
},
{ name: "Hero", img: "/static/img/past-sponsors/hero_edited.jpg" },
{ name: "TATA", img: "/static/img/past-sponsors/tata_edited.jpg" },
{ name: "Toyota", img: "/static/img/past-sponsors/toyota_edited.jpg" },
{ name: "Hyundai", img: "/static/img/past-sponsors/hyundai_edited.jpg" },
{ name: "Jagran", img: "/static/img/past-sponsors/jagran.svg" },
{ name: "Sonata", img: "/static/img/past-sponsors/sonata_edited.jpg" },
{ name: "SBI", img: "/static/img/past-sponsors/sbi_edited.jpg" },
{ name: "Vijaya Bank", img: "/static/img/past-sponsors/vijaya-bank_edited.jpg" },
{
name: "Vijaya Bank",
img: "/static/img/past-sponsors/vijaya-bank_edited.jpg"
},
{
name: "Allahabad Bank",
img: "/static/img/past-sponsors/allahabad-bank_edited.jpg"
},
{ name: "Hackerearth", img: "/static/img/past-sponsors/hackerearth_edited.jpg" },
{
name: "Hackerearth",
img: "/static/img/past-sponsors/hackerearth_edited.jpg"
},
{
name: "Hindustantimes",
img: "/static/img/past-sponsors/hindustan-times_edited.jpg"
Expand All @@ -89,14 +140,15 @@ const pastsponsors = {
{ name: "Levis", img: "/static/img/past-sponsors/levis_edited.jpg" }
]
};
class PastSponsors extends Component {
class Sponsors extends Component {
render() {
return (
<div>
<SponsorsView people={pastsponsors.all} heading="Past Sponsors" />
<SponsorsView people={sponsors.present} heading="Present Sponsors" />
<SponsorsView people={sponsors.past} heading="Past Sponsors" />
</div>
);
}
}

export default PastSponsors;
export default Sponsors;
2 changes: 1 addition & 1 deletion components/sponsors/SponsorsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default ({ people, heading }) => {
<div className="container">
{people.map(function(sponsor) {
return (
<div className="img-container">
<div key={sponsor.name} className="img-container">
<img src={sponsor.img} alt={sponsor.name} />
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions pages/sponsors.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, { Component } from "react";
import Meta from "../components/Meta";
import PastSponsors from "../components/sponsors/PastSponsors";
import Sponsors from "../components/sponsors/Sponsors";
import Footer from "../components/Footer";
export default class extends Component {
render() {
return (
<div>
<Meta />
<PastSponsors />
<Sponsors />
<Footer />
</div>
);
Expand Down

0 comments on commit a4eb168

Please sign in to comment.