Skip to content

Commit

Permalink
fix: changes for mentors
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalCodes committed Jun 27, 2024
1 parent 7ad507e commit c94d430
Show file tree
Hide file tree
Showing 14 changed files with 349 additions and 68 deletions.
9 changes: 9 additions & 0 deletions src/assets/data/HeaderContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ const HeaderData = {
frontWord: "Venue & Education Partner",
frontWordMobile: "Location",
},
spotlight: {
backWord: "Featured",
backWordSize_mobile: "80px",
backWordSize: "150px",
backWordSpacing: "0.3rem",
backWordSpacing_mobile: "0.2rem",
frontWord: "SpotLight",
frontWordMobile: "Featured",
},
timeline: {
backWord: "Roadmap",
backWordMobile: "Plan",
Expand Down
21 changes: 15 additions & 6 deletions src/assets/data/MentorsContent.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
import abhay from "../images/MentorImages/abhay.jpg";
import anubhav_singh from "../images/MentorImages/anubhav_singh.png";
import arghya from "../images/MentorImages/arghya.png";
import ashutosh from "../images/MentorImages/ashutosh.jpeg";
import batrick from "../images/MentorImages/batrick.jpg";
import boidushya from "../images/MentorImages/boidushya.jpg";
import debajit from "../images/MentorImages/debajit.jpg";
import hrittik from "../images/MentorImages/hrittik.jpg";
import imran from "../images/MentorImages/imran.jpg";
import jaydip from "../images/MentorImages/jaydip.jpg";
import joshua from "../images/MentorImages/joshua.jpg";
import kaustav from "../images/MentorImages/kaustav.jpg";
import kazi_haque from "../images/MentorImages/kazi_haque.png";
import md_nasirul_haque from "../images/MentorImages/md_nasirul_haque.png";
import niloy from "../images/MentorImages/niloy.jpg";
import rajdip from "../images/MentorImages/rajdip.jpg";
import richik from "../images/MentorImages/richik.jpg";
import sarnavo from "../images/MentorImages/sarnavo.jpg";
import sawan from "../images/MentorImages/sawan.jpg";
import snehangshu_bhattacharya from "../images/MentorImages/snehangshu_bhattacharya.png";
import sunit from "../images/MentorImages/sunit.jpg";
import varun from "../images/MentorImages/varun.jpg";
import arghya from "../images/MentorImages/arghya.png";
import soumyadip from "../images/MentorImages/soumyadip.jpg";
import sarnavo from "../images/MentorImages/sarnavo.jpg";
import sunit from "../images/MentorImages/sunit.jpg";
import surya from "../images/MentorImages/surya.jpg";
import joshua from "../images/MentorImages/joshua.jpg";
import ashutosh from "../images/MentorImages/ashutosh.jpeg";
import varun from "../images/MentorImages/varun.jpg";

export const mentorContent = [
{
Expand All @@ -31,6 +32,14 @@ export const mentorContent = [
twitter: "https://x.com/AbhayNath001",
image: abhay,
},
{
name: "Imran Roshan",
designation: "Senior Executive - RA",
company: "Deloitte",
linkedin: "https://www.linkedin.com/in/imranfosec",
twitter: "https://x.com/imranfosec",
image: imran,
},
{
name: "Arghya",
designation: "Dev Ambassador",
Expand Down
6 changes: 3 additions & 3 deletions src/assets/data/SpeakersContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import uiux101 from "../images/EventsImages/uiux101.webp";

const speakers = [
{
topic: "UI/UX 101 | Hack4Bengal 3.0",
topic: "UI/UX 101",
date: "Apr 27, 2024",
button: {
text: "Learn More",
Expand All @@ -14,7 +14,7 @@ const speakers = [
image: uiux101,
},
{
topic: "ML 101 | Hack4Bengal 3.0",
topic: "ML 101",
date: "Mar 17, 2024",
button: {
text: "Learn More",
Expand All @@ -25,4 +25,4 @@ const speakers = [
},
];

export default speakers;
export default speakers;
28 changes: 28 additions & 0 deletions src/assets/data/SpotLightContent.js
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;
Binary file added src/assets/images/MentorImages/imran.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions src/components/private/mentors/singleMentors/SingleMentors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ const SingleMentors = ({ mentor }) => {
<hr />
<div className="mentor__social_wrapper">
{mentor.twitter && (
<a href={mentor?.twitter} target="_blank" rel="noopener noreferrer">

<svg aria-label="Twitter"
<a
href={mentor?.twitter}
target="_blank"
rel="noopener noreferrer"
>
<svg
aria-label="Twitter"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
Expand All @@ -41,7 +45,8 @@ const SingleMentors = ({ mentor }) => {
target="_blank"
rel="noopener noreferrer"
>
<svg aria-label="LinkedIn"
<svg
aria-label="LinkedIn"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
Expand Down
10 changes: 5 additions & 5 deletions src/components/private/prizes/Prizes.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
import HeaderData from "../../../assets/data/HeaderContent";
import { ComingSoon, Header } from "../../shared";
import "./Prizes.scss";
import first from "../../../assets/images/PrizesImages/first.png";
import second from "../../../assets/images/PrizesImages/second.png";
import third from "../../../assets/images/PrizesImages/third.png";
import { Header } from "../../shared";
import "./Prizes.scss";

const Prizes = () => {
return (
Expand All @@ -15,18 +15,18 @@ const Prizes = () => {
<div className="prizes_container">
<div className="second_prize prize_box desktop">
<img src={second} className="prize_logo first_prize_logo" alt="" />
<h1>30K INR</h1>
<h1>₹ 30,000</h1>
<p>1st Runner Up</p>
</div>
<div className="first_prize prize_box desktop">
<img src={first} className="prize_logo first_prize_logo" alt="" />

<h1>50K INR</h1>
<h1>₹ 50,000</h1>
<p>Winner</p>
</div>
<div className="third_prize prize_box desktop">
<img src={third} className="prize_logo first_prize_logo" alt="" />
<h1>20K INR</h1>
<h1>₹ 20,000</h1>
<p>2nd Runner Up</p>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/components/private/prizes/Prizes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
h1,
p {
font-family: var(--heading-font);
font-weight: 800;
}

@media screen and (max-width: 576px) {
Expand Down Expand Up @@ -132,4 +133,4 @@
}
}
}
}
}
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;
40 changes: 40 additions & 0 deletions src/components/private/spotlight/Spotlight.jsx
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;
Loading

0 comments on commit c94d430

Please sign in to comment.