Skip to content

Commit

Permalink
Add partner section (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
RajatRajdeep authored Sep 23, 2023
1 parent b511ab3 commit 6291638
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 6 deletions.
18 changes: 12 additions & 6 deletions components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ const navBarItems = [
id: "attend",
openInNewTab: false,
},
{
name: "Community Partners",
href: "/#community-partners",
id: "community-partners",
openInNewTab: false,
},
{
name: "Partners",
href: "/#partners",
id: "partners",
openInNewTab: false,
},
],
},
{
Expand All @@ -44,12 +56,6 @@ const navBarItems = [
id: "sponsors",
openInNewTab: false,
},
{
name: "Community Partners",
href: "/#community-partners",
id: "community-partners",
openInNewTab: false,
},
{
name: "Speakers",
href: "/speakers",
Expand Down
28 changes: 28 additions & 0 deletions components/partners.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import Link from "next/link";
import PartnersData from "data/partners.yml";

const Partners = () => {
return (
<section className="home-section" id="partners">
<div className="container pt-5 pb-5">
<div className="row align-items-center">
<h2 className="col-auto com-head" data-aos="fade-down" data-aos-duration="1000">Partners</h2>
</div>
<div className="row justify-content-center mt-3 py-5">
{PartnersData.map((partner, index) => (
<div className="col-md-3 col-6 bt-circle my-2 text-center" key={index}>
<img
src={partner.logo}
className={`img-fluid partners-logo ${partner.paddingClass}`}
alt={partner.name}
/>
<p className="pt-2">{partner.title}</p>
</div>
))}
</div>
</div>
</section >
);
};

export default Partners;
12 changes: 12 additions & 0 deletions data/partners.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- name: JNTU, Hyderabad
title: Academic Partner
logo: images/partners/jntu.png
paddingClass: p-1
- name: Black Buck
title: Academic Partner
logo: images/partners/black-buck.png
paddingClass: p-1
- name: Phenom People
title: Venue Partner
logo: images/partners/phenom-people.png
paddingClass: p-0
2 changes: 2 additions & 0 deletions pages/pycon-landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import ConventionCenterSection from "../components/conventioncenter";
import SubscribeSection from "../components/subscribe";
import RegistrationSection from "../components/registration";
import ConferenceSchedule from "../components/schedule";
import Partners from "components/partners";

export default function PyConIndiaWeb() {
return (
Expand All @@ -19,6 +20,7 @@ export default function PyConIndiaWeb() {
<RegistrationSection />
<SponsorComponent />
<CommunityPartners />
<Partners/>
{/* <section className="bg-latest">
<div className="container">
<div className="row pt-5 pb-5">
Expand Down
Binary file added public/images/partners/black-buck.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/partners/jntu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/partners/phenom-people.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions styles/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,14 @@ button a {
background: #1b726f;
}

.partners-logo {
object-fit: contain;
object-position: center;
width: 100%;
height: 100%;
background-color: #eac141;
}

.community-partners-avatar {
height: 40px;
width: 40px;
Expand Down

0 comments on commit 6291638

Please sign in to comment.