-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ad507e
commit c94d430
Showing
14 changed files
with
349 additions
and
68 deletions.
There are no files selected for viewing
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,28 @@ | ||
import link_icon from "../images/EventsImages/Icons/link.svg"; | ||
import ml101 from "../images/EventsImages/ml101.webp"; | ||
import uiux101 from "../images/EventsImages/uiux101.webp"; | ||
|
||
const spotlightContent = [ | ||
{ | ||
topic: "Tamal becomes Famous", | ||
date: "Apr 27, 2024", | ||
button: { | ||
text: "Learn More", | ||
link: "https://x.com/hack4bengal/status/1784566736127164703", | ||
icon: link_icon, | ||
}, | ||
image: uiux101, | ||
}, | ||
{ | ||
topic: "Tamal - The discord", | ||
date: "Mar 17, 2024", | ||
button: { | ||
text: "Learn More", | ||
link: "https://x.com/hack4bengal/status/1769654472643625243", | ||
icon: link_icon, | ||
}, | ||
image: ml101, | ||
}, | ||
]; | ||
|
||
export default spotlightContent; |
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
55 changes: 13 additions & 42 deletions
55
src/components/private/speakerschedule/singlespeaker/SingleSpeaker.jsx
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 |
---|---|---|
@@ -1,53 +1,24 @@ | ||
import React from "react"; | ||
import "./SingleSpeaker.scss"; | ||
import propTypes from "prop-types"; | ||
import { Link } from "react-router-dom"; | ||
|
||
const SingleSpeaker = ({ speaker }) => { | ||
SingleSpeaker.propTypes = { | ||
speaker: propTypes.shape({ | ||
image: propTypes.string, | ||
topic: propTypes.string, | ||
date: propTypes.string, | ||
time: propTypes.string, | ||
button: propTypes.shape({ | ||
icon: propTypes.string, | ||
text: propTypes.string, | ||
link: propTypes.string, | ||
}), | ||
}), | ||
}; | ||
|
||
return ( | ||
<div className="singlespeaker"> | ||
<span className="singlespeaker__shadow" /> | ||
<div | ||
className="singlespeaker__left" | ||
style={{ | ||
backgroundImage: `url(${speaker.image})` | ||
}} | ||
/> | ||
<div className="singlespeaker__right"> | ||
<h3>{speaker.topic}</h3> | ||
<div className="singlespeaker__right__container"> | ||
<div className="singlespeaker__right__date"> | ||
<p> | ||
{speaker.date} | ||
</p> | ||
</div> | ||
<Link | ||
className="singlespeaker__right__button" | ||
to={speaker.button.link} | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
> | ||
<img src={speaker.button.icon} alt="Button Icon" /> | ||
<p>{speaker.button.text}</p> | ||
</Link> | ||
<div className="nft"> | ||
<div className="main"> | ||
<img | ||
className="tokenImage" | ||
src={speaker?.image} | ||
alt={speaker?.name} | ||
loading="lazy" | ||
/> | ||
<div className="mentor__info"> | ||
<h2>{speaker?.topic}</h2> | ||
<p className="description">{speaker?.date}</p> | ||
<p className="description">{speaker?.company}</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SingleSpeaker; | ||
export default SingleSpeaker; |
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,40 @@ | ||
import React from "react"; | ||
import HeaderData from "../../../assets/data/HeaderContent"; | ||
import spotlightContent from "../../../assets/data/SpotLightContent"; | ||
import { Header } from "../../shared"; | ||
import "./Spotlight.scss"; | ||
|
||
const Spotlight = () => { | ||
const data = [{}]; | ||
|
||
return ( | ||
<> | ||
<div className="spotlight_parent" id="venue"> | ||
<Header {...HeaderData.spotlight} /> | ||
|
||
<div className="spotlight_container"> | ||
{spotlightContent?.map((data, index) => { | ||
return ( | ||
<div className="nft"> | ||
<div className="main"> | ||
<img | ||
className="tokenImage" | ||
src="https://assets.telegraphindia.com/telegraph/2024/Jun/1719311267_edugraph-26.jpg" | ||
alt={data?.name} | ||
loading="lazy" | ||
/> | ||
<div className="mentor__info"> | ||
<h2>{data?.topic}</h2> | ||
<p className="description">The Telegraph | {data?.date}</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default Spotlight; |
Oops, something went wrong.