-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sponsors, partners and agenda updated
- Loading branch information
1 parent
7837288
commit 9c7e9f5
Showing
11 changed files
with
127 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.sponsors-section { | ||
padding: 40px 20px; | ||
text-align: center; | ||
background-color: rgb(131, 76, 232); | ||
} | ||
|
||
.sponsors-section h2 { | ||
margin-bottom: 20px; | ||
font-size: 30px; | ||
color: #fff; | ||
text-align: center; | ||
} | ||
|
||
.sponsor-logo { | ||
padding: 10px; | ||
} | ||
|
||
.sponsor-logo img { | ||
max-width: 100%; | ||
max-height: 120px; | ||
display: block; | ||
margin: 0 auto; | ||
} | ||
|
||
.sponsor-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; | ||
} | ||
|
||
.sponsor-button:hover { | ||
background-color: #854eeb; | ||
color: #fff; | ||
opacity: 0.75; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import React from "react"; | ||
import Slider from "react-slick"; | ||
import "slick-carousel/slick/slick.css"; | ||
import "slick-carousel/slick/slick-theme.css"; | ||
import "./Sponsors.css"; | ||
|
||
const sponsors = [ | ||
{ id: 1, logo: "/img/icp_hub.jpeg", name: "ICP HUB" }, | ||
{ id: 2, logo: "/img/ton_society.png", name: "TON SOCIETY" }, | ||
]; | ||
|
||
const Sponsors = () => { | ||
const settings = { | ||
dots: false, | ||
infinite: true, | ||
speed: 500, | ||
slidesToShow: sponsors.length, | ||
slidesToScroll: 1, | ||
autoplay: true, | ||
autoplaySpeed: 2000, | ||
responsive: [ | ||
{ | ||
breakpoint: 1024, | ||
settings: { | ||
slidesToShow: Math.min(sponsors.length, 3), | ||
slidesToScroll: 1, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 600, | ||
settings: { | ||
slidesToShow: Math.min(sponsors.length, 2), | ||
slidesToScroll: 1, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 480, | ||
settings: { | ||
slidesToShow: 1, | ||
slidesToScroll: 1, | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
const handleButtonClick = () => { | ||
window.location.href = "#"; | ||
}; | ||
|
||
return ( | ||
<div className="sponsors-section"> | ||
<h2>Official Sponsors</h2> | ||
<Slider {...settings}> | ||
{sponsors.map((sponsor) => ( | ||
<div key={sponsor.id} className="sponsor-logo"> | ||
<img src={sponsor.logo} alt={sponsor.name} /> | ||
</div> | ||
))} | ||
</Slider> | ||
<button className="sponsor-button" onClick={handleButtonClick}> | ||
Become a Sponsor | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Sponsors; |