Skip to content

Commit

Permalink
feat: add new slides
Browse files Browse the repository at this point in the history
  • Loading branch information
hazigabriel committed Aug 18, 2023
1 parent 5564632 commit 5c04cde
Show file tree
Hide file tree
Showing 10 changed files with 174 additions and 36 deletions.
4 changes: 2 additions & 2 deletions src/Homepage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ function Homepage() {
<div className="panel unccd-logo-white">
<HerlandCTA />
</div>
{/* <div className="panel unccd-logo-white">
<div className="panel unccd-logo-black">
<Pledges />
</div> */}
</div>
<div className="panel unccd-logo-black">
<CampaignToolkit />
</div>
Expand Down
20 changes: 13 additions & 7 deletions src/assets/css/Homepage.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,23 @@ iframe {
padding: 0 5em;
min-height: unset;
}
/* Healv3rse */
.healverse-background {
background: linear-gradient(#002257, #460057);
}
.iframe-wrapper {
position: relative !important;
}
/* herland cta */
.herland-cta {
background: url("../../static/images/call-to-action.jpg") no-repeat right center;
background-color: #4D4399;
}
/* pledges */
.pledge-card {
aspect-ratio: 1/1;
}

@media only screen and (min-width: 0px) and (max-width: 640px) {
section {
padding: 0 1em;
Expand All @@ -195,13 +207,7 @@ iframe {
gap: 2em;
}
}
/* Healv3rse */
.healverse-background {
background: linear-gradient(#002257, #460057);
}
.iframe-wrapper {
position: relative !important;
}


/* detect when the user is on mobile */
@media (hover: none), (hover: on-demand) {
Expand Down
4 changes: 2 additions & 2 deletions src/slides/CampaignToolkit/CampaignToolkit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function CampaignToolkit() {
return (
<section className="full-height campaign-toolkit-background grid grid-cols-12 content-center panel-inner">
<div className="max-sm:col-span-12 sm:col-span-12 lg:col-span-6 text-black">
<h2 className="max-sm:text-base sm:text-2xl md:text-3xl lg:text-3xl xl:text-5xl font-light">
<h2 className="max-sm:text-2xl sm:text-2xl md:text-3xl lg:text-3xl xl:text-5xl font-light">
Campaign toolkit
</h2>
<p className="max-sm:text-base lg:text-base 2xl:text-2xl font-light mt-8">
Expand All @@ -18,7 +18,7 @@ function CampaignToolkit() {
</p>
<p className="max-sm:text-base lg:text-base 2xl:text-2xl font-light mt-4">
Also find out how to utilize hashtags like{" "}
<span className="font-bold">#HerLandHerRights</span> and
<span className="font-bold">#HerLandHerRights</span> and&nbsp;
<span className="font-bold">#LandHeroes</span>, engage with
influencers, and create a social media buzz that echoes our call for
gender equality in land rights.
Expand Down
14 changes: 7 additions & 7 deletions src/slides/CampaignVideo/CampaignVideo.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function CampaignVideo() {
return (
<section className="full-height bg-zinc-950 text-white panel-inner grid content-center ">
<section className="full-height bg-indigo-900 text-white panel-inner grid content-center ">
<div className="grid grid-cols-12 mt-24 gap-6 ">
<div
className="max-sm:col-span-12 sm:col-span-12 lg:col-span-6 flex panel-inner relative "
Expand All @@ -16,7 +16,7 @@ function CampaignVideo() {
</div>
<div className="max-sm:col-span-12 sm:col-span-12 lg:col-span-6 lg:ml-6 max-xs:ml-6 mb-10 font-light">
<p>
Together with partners, activists and influencers,
Together with partners, activists and influencers,&nbsp;
<a
href="https://www.unccd.int/convention/overview"
target="_blank"
Expand All @@ -25,7 +25,7 @@ function CampaignVideo() {
>
UNCCD
</a>
is spearheading the campaign
&nbsp; is spearheading the campaign&nbsp;
<a
href="https://trello.com/b/AuQjCPfN/unccd-herland-campaign"
target="_blank"
Expand All @@ -34,8 +34,8 @@ function CampaignVideo() {
>
#HerLand
</a>
to promote inspiring examples of women and girls’ leadership in
sustainable land management, mobilizing support to secure land
&nbsp; to promote inspiring examples of women and girls’ leadership
in sustainable land management, mobilizing support to secure land
rights for women and girls across the world.
</p>
<p className="mt-6 text-sm">
Expand Down Expand Up @@ -66,14 +66,14 @@ function CampaignVideo() {
</li>
<li>
All of us can support women-led initiatives in land restoration
and
and&nbsp;
<a
href="https://www.unccd.int/convention/overview"
target="_blank"
rel="noopener noreferrer"
className="underline"
>
&nbsp; join our call to action
join our call to action
</a>
.
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/slides/Events/Events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

function Events() {
return (
<section className="full-height bg-gray-200 flex flex-col justify-around panel-inner">
<section className="full-height bg-stone-200 flex flex-col justify-around panel-inner">
<div className="text-black mt-20">
<h2 className="max-sm:text-2xl text-4xl font-light">Events </h2>
<p className="max-sm:text-base text-2xl font-light mt-6">
Expand Down
2 changes: 1 addition & 1 deletion src/slides/Healverse/Healverse.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function Healverse() {
to inspire change and healing for our planet.
</p>
<a
href="https://trello.com/b/AuQjCPfN/unccd-herland-campaign flex"
href="https://trello.com/b/AuQjCPfN/unccd-herland-campaign"
target="_blank"
>
<div className="flex max-sm:gap-2 sm:gap-2 md:gap-5 mt-4 cursor-pointer">
Expand Down
19 changes: 9 additions & 10 deletions src/slides/HerlandCTA/HerlandCTA.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ function HerlandCTA() {
const pClassName = "mt-6";
return (
<section className="panel-inner grid grid-cols-12 items-center herland-cta">
<div className="col-span-12 grid grid-cols-12 gap-4 text-white mt-10 max-sm:mt-32 mb-32 max-sm:mb-50">
<div className="col-span-12 grid grid-cols-12 gap-4 text-white mt-10 max-sm:mt-12 mb-32 max-sm:mb-50">
<div className="col-span-12">
<h2 className="max-sm:text-base sm:text-2xl md:text-3xl lg:text-3xl xl:text-5xl lg:my-16 md:mt-32">
<h2 className="max-sm:text-xl sm:text-2xl md:text-3xl lg:text-3xl xl:text-5xl lg:my-16 md:mt-32">
HerLand call to action
</h2>
<h3 className="max-sm:text-base sm:text-2xl md:text-2xl lg:text-2xl xl:text-3xl font-bold md:mt-10 lg:m-0">
Make women's land rights a reality
<h3 className="max-sm:text-base sm:text-2xl md:text-2xl lg:text-2xl xl:text-3xl font-bold max-sm:mt-4 sm:mt-6 md:mt-10 lg:m-0">
Make women's land rights a reality
</h3>
</div>
<div className="max-sm:text-xs sm:text-base 2xl:col-span-4 lg:col-span-6 md:col-span-12 sm:col-span-12 max-sm:col-span-12 md:mr-32">
<p className={`${pClassName} md:mr-16 lg:mr-0`}>
<p className={`${pClassName} md:mr-32 lg:mr-0`}>
Healthy land is vital for human survival, it is the largest source
of income, jobs and livelihoods for poor, rural households. It is
also crucial for climate and biodiversity action. Yet, we are losing
productive land daily through desertification, poor land management
and worsening droughts.
</p>
<p className={`${pClassName} md:mr-16 lg:mr-0`}>
<p className={`${pClassName} md:mr-20 lg:mr-0`}>
As the main producers of food, when land is degraded women and girls
are impacted first and most. They are disproportionately affected by
poverty, hunger, displacement, and violence.
Expand Down Expand Up @@ -50,18 +50,17 @@ function HerlandCTA() {
their participation in land management, conservation, and
restoration.
</p>
<p className={`${pClassName} md:mr-0 sm:mr-32 max-sm:mr-0 `}>
<p className={`${pClassName} md:mr-0 sm:mr-48 max-sm:mr-0 `}>
We call upon the private sector and financial institutions to
unleash more access to finance so women can invest in the
technological inputs they need to improve land.
</p>
<p className={`${pClassName} md:mr-0 sm:mr-50 max-sm:mr-40 `}>
<p className={`${pClassName} md:mr-0 sm:mr-52 max-sm:mr-40 `}>
And we ask the public to join us by standing with women and girls
around the world in their pursuit for equal and full rights to land.
</p>
</div>
<div >
</div>
<div></div>
</div>
</section>
);
Expand Down
2 changes: 1 addition & 1 deletion src/slides/PhotoExhibition/PhotoExhibition.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function PhotoExhibition(props) {
return (
<section className="full-height bg-white flex flex-column justify-around panel-inner">
<div className="font-light">
<h2 className="max-sm:text-base sm:text-2xl md:text-3xl lg:text-3xl xl:text-4xl font-light text-black pt-32">
<h2 className="max-sm:text-2xl sm:text-2xl md:text-3xl lg:text-3xl xl:text-4xl font-light text-black pt-32">
#HerLand Photo Exhibition
</h2>
<div className="grid grid-cols-12 text-black">
Expand Down
141 changes: 137 additions & 4 deletions src/slides/Plegdes/Pledges.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,142 @@
import React from 'react'
import React from "react";
import ArrowRight from "../../static/icons/arrow-right.svg";
import Carousel from "react-multi-carousel";

import "react-multi-carousel/lib/styles.css";
function Pledge(props) {
const { author, authorOccupation, paragraphs } = props;
return (
<div className="pledge-card bg-violet-800 text-white grid content-between sm:p-4 md:p-8 max-sm:p-4 m-2">
<div>
{paragraphs.map((paragraph, index) => (
<p key={index} className="max-sm:text-sm md:text-sm mb-2">{paragraph}</p>
))}
</div>
<div className="text-right">
<h3 className="sm:text-xl md:text-lg max-sm:text-xl">{author}</h3>
<h4 className="sm:text-base md:text-base font-light">{authorOccupation}</h4>
</div>
</div>
);
}
function Pledges() {
const carouselResponsive = {
desktop: {
breakpoint: {
max: 3000,
min: 1024,
},
items: 3,
partialVisibilityGutter: 40,
},
mobile: {
breakpoint: {
max: 768,
min: 0,
},
items: 1,
partialVisibilityGutter: 30,
},
tablet: {
breakpoint: {
max: 1024,
min: 768,
},
items: 2,
partialVisibilityGutter: 30,
},
};
const pledgesArr = [
{
author: "António Guterres",
authorOccupation: "United Nations Secretary General",
paragraphs: [
"We depend on land for our survival. Yet, we treat it like dirt.",
],
},
{
author: "Ibrahim Thiaw",
authorOccupation: "UNCCD Executive Secretary",
paragraphs: [
"Investing in women's equal access to land is not just an act of justice.",
"It is an investment in our future, a commitment to the prosperity of our planet. It is an affirmation that we value not only the land beneath our feet, but the hands that work on it.",
],
},
{
author: "Hindou Oumarou Ibrahim",
authorOccupation: "Indigenous leader from Chad",
paragraphs: [
"Despite our innovation, despite the determination of the women of my community to preserve ecosystems to block the desert, despite our collective efforts to save and share water, our land is dying.",
"Stop pledging and start putting cash on the table to help us win the most important battle of our life.",
],
},
{
author: "António Guterres",
authorOccupation: "United Nations Secretary General",
paragraphs: [
"We depend on land for our survival. Yet, we treat it like dirt.",
],
},
{
author: "Ibrahim Thiaw",
authorOccupation: "UNCCD Executive Secretary",
paragraphs: [
"Investing in women's equal access to land is not just an act of justice.",
"It is an investment in our future, a commitment to the prosperity of our planet. It is an affirmation that we value not only the land beneath our feet, but the hands that work on it.",
],
},
{
author: "Hindou Oumarou Ibrahim",
authorOccupation: "Indigenous leader from Chad",
paragraphs: [
"Despite our innovation, despite the determination of the women of my community to preserve ecosystems to block the desert, despite our collective efforts to save and share water, our land is dying.",
"Stop pledging and start putting cash on the table to help us win the most important battle of our life.",
],
},
];

return (
<section className='panel-inner bg-amber-500'>Pledges</section>
)
<section className="panel-inner grid grid-cols-12 items-center bg-white">
<div className="col-span-12 grid grid-cols-12 gap-4 mt-10 max-sm:mt-12 mb-32 max-sm:mb-50">
<div className="col-span-12">
<h2 className="max-sm:text-xl sm:text-2xl md:text-2xl lg:text-3xl xl:text-4xl lg:my-16 md:mt-32">
Global leaders call to action on women’s land rights{" "}
</h2>
<p className="font-light mt-6 max-sm:text-base sm:text-xl">
United Nations General Assembly event to mark Desertification and
Drought Day brings together leaders to advance gender equality and
land restoration goals.{" "}
</p>
<a href="" target="_blank">
<div className="flex max-sm:gap-2 sm:gap-2 md:gap-5 mt-4 cursor-pointer text-violet-700">
<img src={ArrowRight} className="icon scale-150" />
<p className="font-bold m-0">Access the portal</p>
</div>
</a>
</div>
<div className="col-span-12">
<Carousel
arrows
draggable
infinite
keyBoardControl
responsive={carouselResponsive}
slidesToSlide={1}
swipeable
>
{pledgesArr.map((pledge, index) => (
<Pledge
key={index}
author={pledge.author}
authorOccupation={pledge.authorOccupation}
paragraphs={pledge.paragraphs}
/>
))}
</Carousel>
</div>
</div>
</section>
);
}

export default Pledges
export default Pledges;
2 changes: 1 addition & 1 deletion src/slides/VirtualExhibition/VirtualExhibition.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function VirtualExhibition() {
<section className="bg-white panel-inner grid grid-cols-2 gap- h-full">
<div className="lg:col-span-1 flex items-center sm:col-span-2 max-sm:col-span-2">
<div className="font-light mt-32 md:mr-16 sm:mr-4 max-sm:mr-0">
<h2 className="sm:text-2xl xs:text-3xl md:text-4xl lg:text-5xl max-xs:text-2xl font-light ">
<h2 className="sm:text-2xl xs:text-3xl md:text-4xl lg:text-5xl max-sm:text-2xl font-light ">
Interactive virtual exhibition
</h2>
<p className="max-sm:text-base lg:text-base 2xl:text-2xl text-gray-700 mt-8">
Expand Down

0 comments on commit 5c04cde

Please sign in to comment.