Skip to content

Commit

Permalink
Updated partners and sponsors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jedidiah-Solomon committed Oct 22, 2024
1 parent 9c7e9f5 commit c373b78
Show file tree
Hide file tree
Showing 46 changed files with 1,256 additions and 45 deletions.
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"react-dom": "^18.2.0",
"react-modal": "^3.16.1",
"react-router-dom": "^6.23.1",
"react-router-hash-link": "^2.4.3",
"react-slick": "^0.30.2",
"slick-carousel": "^1.8.1"
},
Expand Down
Binary file added public/img/abc.jpeg
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/img/adanian.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/img/arnagon.jpg
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/img/atc.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/img/aviation_partner.jpeg
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/img/b_chain.jpeg
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/img/based_africa.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/img/blasu.jpeg
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/img/block_space.jpeg
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/img/blockchain_4_good.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/img/blockchain_club.jpg
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/img/dlt.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/img/dsa.jpeg
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/img/eth_ng.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/img/felbeth.jpeg
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/img/giva.jpeg
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/img/gs_cm.jpeg
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/img/intmax.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/img/medics_in_web3.jpeg
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/img/nucleusdao.jpeg
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/img/onramp.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/img/palremit.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/img/pe.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/img/sippy.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/img/starknet_africa.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/img/tech_next.png
Binary file added public/img/teen_girls.jpeg
Binary file added public/img/unchain_union.png
Binary file added public/img/web3_africa.png
Binary file added public/img/web3bridge.jpg
Binary file modified public/img/wib_africa.png
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import About from "./components/About/About";
import Reasons from "./components/Reason/Reasons";
import Sponsors from "./components/Sponsors/Sponsors";
import Speakers from "./components/Speakers/Speakers";
import MediaPartners from "./components/MediaPartners/MediaPartners";
import Partners from "./components/Partners/Partners";
import Newsletter from "./components/Newsletter/Newsletter";
import Agenda from "./components/Agenda/Agenda";
Expand All @@ -27,6 +28,7 @@ const App = () => {
<Reasons />
<Sponsors />
<Speakers />
<MediaPartners />
<Partners />
<Newsletter />
</>
Expand Down
6 changes: 5 additions & 1 deletion src/components/Agenda/Agenda.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import React, { useState, useEffect } from "react";
import "./Agenda.css";
import Navbar from "../Navbar/Navbar";
import Newsletter from "../Newsletter/Newsletter";
Expand All @@ -7,6 +7,10 @@ import Countdown from "../Countdown/Countdown";
const Agenda = () => {
const [selectedDay, setSelectedDay] = useState("day1");

useEffect(() => {
document.title = "W3GC | Agenda";
}, []);

const handleDayClick = (day) => {
setSelectedDay(day);
};
Expand Down
4 changes: 4 additions & 0 deletions src/components/Countdown/Countdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
margin-right: 8px; /* Adds some space between the icon and text */
}

.expired-message {
font-size: 1.5rem;
}

@media (max-width: 768px) {
.follow-us {
padding-left: 20px;
Expand Down
28 changes: 21 additions & 7 deletions src/components/Countdown/Countdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Countdown = ({ venue }) => {
seconds: Math.floor((difference / 1000) % 60),
};
} else {
timeLeft = { days: 0, hours: 0, minutes: 0, seconds: 0 };
timeLeft = null;
}

return timeLeft;
Expand All @@ -38,12 +38,16 @@ const Countdown = ({ venue }) => {
return () => clearInterval(timer);
}, [targetDate]);

return (
<div className="countdown-section">
<p className="location-text">
<i className="fas fa-map-marker-alt"></i> The Zone, Gbagada, Lagos
State.
</p>
const renderCountdown = () => {
if (!timeLeft) {
return (
<p className="expired-message">
The event is today! Don't miss out🎉🎉
</p>
);
}

return (
<div className="box-content">
<div className="time-unit">
<div className="time-value">{timeLeft.days}</div>
Expand All @@ -62,6 +66,16 @@ const Countdown = ({ venue }) => {
<div className="time-label">Secs</div>
</div>
</div>
);
};

return (
<div className="countdown-section">
<p className="location-text">
<i className="fas fa-map-marker-alt"></i> The Zone, Gbagada, Lagos
State.
</p>
{renderCountdown()}
</div>
);
};
Expand Down
41 changes: 41 additions & 0 deletions src/components/MediaPartners/MediaPartners.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.media-partners-section {
padding: 40px 20px;
text-align: center;
background-color: rgb(131, 76, 232);
}

.media-partners-section h2 {
margin-bottom: 20px;
font-size: 30px;
color: #fff;
text-align: center;
}

.media-partner-logo {
padding: 10px;
}

.media-partner-logo img {
max-width: 100%;
max-height: 120px;
display: block;
margin: 0 auto;
}

.media-partner-button {
margin-top: 20px;
padding: 10px 20px;
font-size: 20px;
color: #854eeb;
background-color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color color 0.3s;
}

.media-partner-button:hover {
background-color: #854eeb;
color: #fff;
opacity: 0.75;
}
66 changes: 66 additions & 0 deletions src/components/MediaPartners/MediaPartners.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import React from "react";
import Slider from "react-slick";
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
import "./MediaPartners.css";

const media_partners = [
{ id: 1, logo: "/img/tech_next.png", name: "TechNext" },
];

const MediaPartners = () => {
const settings = {
dots: false,
infinite: media_partners.length > 1,
speed: 500,
slidesToShow: media_partners.length,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 2000,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: Math.min(media_partners.length, 1),
slidesToScroll: 1,
},
},
{
breakpoint: 600,
settings: {
slidesToShow: Math.min(media_partners.length, 1),
slidesToScroll: 1,
},
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
},
},
],
};

const handleButtonClick = () => {
window.location.href = "#";
};

return (
<div className="media-partners-section">
<h2>Media Partner</h2>
<Slider {...settings}>
{media_partners.map((media_partner) => (
<div key={media_partner.id} className="media-partner-logo">
<img src={media_partner.logo} alt={media_partner.name} />
</div>
))}
</Slider>
{/* <button className="media-partner-button" onClick={handleButtonClick}>
Become a Partner
</button> */}
</div>
);
};

export default MediaPartners;
Loading

0 comments on commit c373b78

Please sign in to comment.