Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 26389fc

Browse files
committed
feat: v1 patches done
1 parent 6631ab6 commit 26389fc

File tree

9 files changed

+142
-79
lines changed

9 files changed

+142
-79
lines changed

.yarn/install-state.gz

2.19 KB
Binary file not shown.

src/assets/css/footer.css

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
* {
2-
font-size: 16px;
3-
}
4-
51
.footer {
62
display: flex;
73
justify-content: center;

src/assets/images/v1/etalk.png

725 KB
Loading

src/assets/images/v1/roborace.png

830 KB
Loading

src/components/Contact.jsx

+51-15
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,85 @@
11
import React, { useState } from 'react';
22
import emailjs from 'emailjs-com';
33
import '../assets/css/contact.css';
4+
import { toast } from 'react-toastify';
45

56
function Contact() {
6-
const [successMessage, setSuccessMessage] = useState('');
7+
const [fromName, setFromName] = useState('');
8+
const [fromEmail, setFromEmail] = useState('');
9+
const [subject, setSubject] = useState('');
10+
const [htmlMessage, setHtmlMessage] = useState('');
711

812
function sendEmail(e) {
913
e.preventDefault();
1014

11-
emailjs.sendForm('service_1n01ek5', 'template_c4bir93', e.target, 'LqKAhPE3L0Md4zlV3')
15+
const templateParams = {
16+
to_name: 'Recipient Name',
17+
from_name: fromName,
18+
message: htmlMessage,
19+
reply_to: fromEmail,
20+
};
21+
22+
emailjs.send('service_1n01ek5', 'template_riovy6p', templateParams, 'OKkhesuDlW6tfPh_x')
1223
.then((result) => {
13-
setSuccessMessage('Your email has been sent successfully!');
14-
e.target.reset();
15-
setTimeout(() => setSuccessMessage(''), 4000);
24+
setFromName('');
25+
setFromEmail('');
26+
setSubject('');
27+
setHtmlMessage('');
28+
toast("Your email has been sent successfully!")
1629
}, (error) => {
17-
console.log(error.text);
30+
console.log(error.text); // Log errors if any
1831
});
1932
}
2033

2134
return (
2235
<section id="Contact">
2336
<h2 className='heading_title_contact'>Contact</h2>
2437
<div className="container">
25-
{successMessage && (
26-
<div className="prompt-message">
27-
{successMessage}
28-
</div>
29-
)}
3038
<form className="contact-form col-md-8" onSubmit={sendEmail}>
3139
<div className="row">
3240
<div className="col-md-12">
3341
<input type="hidden" name="contact_number" />
3442
</div>
3543
<div className="col-md-12">
36-
<input type="text" name="subject" placeholder='SUBJECT' required/>
44+
<input
45+
type="text"
46+
name="subject"
47+
placeholder='SUBJECT'
48+
value={subject}
49+
onChange={(e) => setSubject(e.target.value)}
50+
required
51+
/>
3752
</div>
3853
<div className="col-md-12">
39-
<textarea name="html_message" rows={5} placeholder='WRITE YOUR MESSAGE' required/>
54+
<textarea
55+
name="html_message"
56+
rows={5}
57+
placeholder='WRITE YOUR MESSAGE'
58+
value={htmlMessage}
59+
onChange={(e) => setHtmlMessage(e.target.value)}
60+
required
61+
/>
4062
</div>
4163
<div className="two_col_contact">
4264
<div className="col-md-6">
43-
<input type="text" name="from_name" placeholder='YOUR NAME' required/>
65+
<input
66+
type="text"
67+
name="from_name"
68+
placeholder='YOUR NAME'
69+
value={fromName}
70+
onChange={(e) => setFromName(e.target.value)}
71+
required
72+
/>
4473
</div>
4574
<div className="col-md-6">
46-
<input type="email" name="from_email" placeholder='YOUR EMAIL' required/>
75+
<input
76+
type="email"
77+
name="from_email"
78+
placeholder='YOUR EMAIL'
79+
value={fromEmail}
80+
onChange={(e) => setFromEmail(e.target.value)}
81+
required
82+
/>
4783
</div>
4884
</div>
4985
</div>

src/components/EventPage.jsx

+40-40
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ import CodeOLympics from '../assets/images/v1/col.png';
1010
import PitchAndWin from '../assets/images/v1/paw.png';
1111
import BeyondBoundaries from '../assets/images/v1/tech-talk.png';
1212
import Autobot from '../assets/images/v1/autobot.png';
13-
import RoboRace from '../assets/images/v1/digicast.png';
1413
import BuildABot from '../assets/images/v1/bab.png';
14+
import Etalk from '../assets/images/v1/etalk.png';
15+
import RoboRace from '../assets/images/v1/roborace.png';
1516

1617
function EventPage() {
1718
return (
@@ -35,80 +36,79 @@ function EventPage() {
3536
<EventCard
3637
title="CraftNCode 2024"
3738
image={CraftNCode}
38-
description="This national-level hackathon invites brilliant minds from across the country to innovate, collaborate, and solve real-world challenges. In the first phase, participating colleges will host hackathons in their respective states. The final round will feature the top teams from this phase, who will earn an invitation to compete at IIIT Bhubaneswar."
39-
date="Date: 20th - 21st march 2024"
40-
prize_pool="INR 50,000"
39+
description="This national-level hackathon invites brilliant minds from across the country to innovate, collaborate, and solve real-world challenges."
40+
date="Date: 8th Nov 2024, 10:00 PM - 9th Nov 2024, 8:00 AM"
41+
prize_pool="Price Pool: INR 50,000"
4142
coordinators="Co-ordinators: Soubhik Gon, Saswat Parasar Behera"
4243
/>
4344
<EventCard
4445
title="CyberSec Battle"
4546
image={CyberSecBattle}
46-
description="This competition challenges you to address critical issues like financial fraud, security breaches, national security threats, and emerging cyberattacks. The top teams will converge in Bhubaneswar for a final showdown, vying for the prestigious title of CyberSec Battle Champions!"
47-
date="Date: 20th - 21st march 2024"
48-
prize_pool="INR 50,000"
49-
coordinators="Co-ordinators: Soubhik Gon, Saswat Parasar Behera"
47+
description="This competition challenges you to address critical issues like financial fraud, security breaches, national security threats, and emerging cyberattacks."
48+
date="Date: 9th Nov 2024, 10:00 PM - 10th Nov 2024, 8:00 AM"
49+
prize_pool="Price Pool: INR 16,000"
50+
coordinators="Co-ordinators: Gourav Munjan, Soubhik Gon"
5051
/>
5152
<EventCard
5253
title="Code-O-Lympics"
5354
image={CodeOLympics}
54-
description="Cod-o-lympics is an ICPC-inspired programming competition where each team competes to solve a set of problems within a given time frame. The team that solves the most problems in the least amount of time will be declared the winner. Participants must form a team of exactly 3 members, and each team must have exactly 2 laptops during the event. The maximum allotted time is 3 hours."
55-
date="Date: 20th - 21st march 2024"
56-
prize_pool="INR 50,000"
57-
coordinators="Co-ordinators: Soubhik Gon, Saswat Parasar Behera"
55+
description="Cod-o-lympics is an ICPC-inspired programming competition where each team competes to solve a set of problems within a given time frame."
56+
date="Date: 9th Nov 2024, 4:00 PM - 7:30 PM"
57+
prize_pool="Price Pool: INR 16,000"
58+
coordinators="Co-ordinators: Krishna Kalra, Saswat Parasar Behera"
5859
/>
5960
<EventCard
6061
title="Pitch and Win"
6162
image={PitchAndWin}
62-
description="The Pitch and Win competition challenges participants to create groundbreaking solutions to existing problems, pitch them to industry experts, and make their ideas a reality. Do you have what it takes to impress the panel and walk away with the title of Pitch and Win Champion?"
63-
date="Date: 20th - 21st march 2024"
64-
prize_pool="INR 50,000"
65-
coordinators="Co-ordinators: Soubhik Gon, Saswat Parasar Behera"
63+
description="The Pitch and Win competition challenges participants to create groundbreaking solutions to existing problems and pitch them to industry experts."
64+
date="Date: 10th Nov 2024, 10:00 AM - 1:00 PM"
65+
prize_pool="Price Pool: INR 35,000"
66+
coordinators="Co-ordinators: Anirudh Pradhan, Pinaki RS"
6667
/>
6768
<EventCard
68-
title="Beyond Boundaries"
69+
title="Tech Talk"
6970
image={BeyondBoundaries}
70-
description="Industry experts and passionate developers converge to share insights on the latest trends, tools, and innovations in software development. Engage in thought-provoking discussions, interactive workshops, and networking opportunities that will inspire your tech journey!"
71-
date="Date: 20th - 21st march 2024"
72-
prize_pool="INR 50,000"
71+
description="Industry experts and passionate developers converge to share insights on the latest trends, tools, and innovations in software development."
72+
date="Date: 8th Nov 2024, 7:00 PM - 9:00 PM"
7373
coordinators="Co-ordinators: Soubhik Gon, Saswat Parasar Behera"
7474
/>
75-
7675
<EventCard
7776
title="Digicast"
7877
image={Digicast}
79-
description="A dynamic forum where hardware enthusiasts and industry leaders come together to explore cutting-edge technologies, emerging trends, and practical applications in hardware development. Participate in engaging talks, hands-on demonstrations, and collaborative discussions that will elevate your understanding of the hardware landscape!"
80-
date="Date: 20th - 21st march 2024"
81-
prize_pool="INR 50,000"
82-
coordinators="Co-ordinators: Soubhik Gon, Saswat Parasar Behera"
78+
description="A dynamic forum where hardware enthusiasts and industry leaders come together to explore cutting-edge technologies."
79+
date="Date: 10th Nov 2024, 4:00 PM - 5:00 PM"
80+
coordinators="Co-ordinators: Abhijeet Mukherjee, Preetam"
8381
/>
8482
<EventCard
8583
title="E-Talk"
86-
image={BeyondBoundaries}
87-
description="Industry experts and passionate developers converge to share insights on the latest trends, tools, and innovations in software development. Engage in thought-provoking discussions, interactive workshops, and networking opportunities that will inspire your tech journey!"
84+
image={Etalk}
85+
description="A captivating session where industry leaders and visionary developers will dive into the latest advancements and future directions in technology. Discover innovative tools, gain fresh perspectives on emerging trends, and participate in a lively Q&A session. This is an unmissable opportunity to expand your knowledge, network with experts, and get inspired to drive innovation in your own projects."
86+
date="Date: 10th Nov 2024, 5:00 PM - 6:00 PM"
87+
coordinators="Co-ordinators: Anirudh Pradhan, Pinaki R.S."
8888
/>
8989
<EventCard
90-
title="Autobot"
90+
title="AutoBot"
9191
image={Autobot}
92-
description="This competition challenges you to build and program a fully autonomous robot capable of navigating a complex course filled with sharp turns, unexpected obstacles, and high-speed demands. Whether you’re a seasoned robotics pro or a passionate newcomer, AutoBot offers the perfect platform to compete with fellow enthusiasts and showcase your cutting-edge designs."
93-
date="Date: 20th - 21st march 2024"
94-
prize_pool="INR 50,000"
95-
coordinators="Co-ordinators: Soubhik Gon, Saswat Parasar Behera"
92+
description="This competition challenges you to build and program a fully autonomous robot capable of navigating a complex course."
93+
date="Date: 10th Nov 2024, 10:00 AM - 3:00 PM"
94+
prize_pool="Price Pool: INR 15,000"
95+
coordinators="Co-ordinators: Abhijeet Mukherjee, Preetam"
9696
/>
9797
<EventCard
9898
title="Robo Race"
9999
image={RoboRace}
100-
description="Competitors will design and construct robots capable of navigating a specially designed obstacle course that challenges not just speed, but also precision and agility. Your task is to create a robot that can overcome every hurdle and complete the course in the shortest time possible. Every second counts!"
101-
date="Date: 20th - 21st march 2024"
102-
prize_pool="INR 50,000"
103-
coordinators="Co-ordinators: Soubhik Gon, Saswat Parasar Behera"
100+
description="Competitors will design and construct robots capable of navigating a specially designed obstacle course."
101+
date="Date: 9th Nov 2024, 10:00 AM - 6:00 PM"
102+
prize_pool="Price Pool: INR 10,000"
103+
coordinators="Co-ordinators: Abhijeet Mukherjee, Preetam"
104104
/>
105105
<EventCard
106106
title="Build A Bot"
107107
image={BuildABot}
108-
description="This event invites students to engage in a thrilling 24-hour challenge where they design and build a functional bot using Arduino or Raspberry Pi. Build a Bot is designed to showcase innovative creations while testing participants' creativity and technical skills."
109-
date="Date: 20th - 21st march 2024"
110-
prize_pool="INR 50,000"
111-
coordinators="Co-ordinators: Soubhik Gon, Saswat Parasar Behera"
108+
description="This event invites students to engage in a thrilling 24-hour challenge where they design and build a functional bot."
109+
date="Date: 8th Nov 2024, 10:00 PM - 9th Nov 2024, 8:00 AM"
110+
prize_pool="Price Pool: INR 30,000"
111+
coordinators="Co-ordinators: Abhijeet Mukherjee, Preetam"
112112
/>
113113
</div>
114114
</div>

src/components/Events.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const EventCard = ({ title, image, description, prize_pool, coordinators, date})
5050
<div className="event-content">
5151
<div className='event-header'>
5252
<h3 className='event-title' >{title}</h3>
53-
<span className='prize_pool'>Prize Pool : {prize_pool}</span>
53+
<span className='prize_pool'>{prize_pool}</span>
5454
</div>
5555
<p className='event-description' ref={descriptionRef}>{description}
5656
</p>

src/components/Footer.jsx

+30-19
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ const Tooltip = ({ text, position }) => {
1414
return (
1515
<p
1616
style={{
17-
backgroundColor: 'white',
18-
color:'black',
19-
position: 'absolute',
20-
left: position.x,
17+
backgroundColor: 'white',
18+
color: 'black',
19+
position: 'absolute',
20+
left: position.x,
2121
top: position.y + 20,
22-
background:'black',
23-
color: '#fff',
24-
padding: '5px 10px',
25-
borderRadius: '5px',
26-
zIndex: 1000
22+
background: 'black',
23+
color: '#fff',
24+
padding: '5px 10px',
25+
borderRadius: '5px',
26+
zIndex: 1000
2727
}}
2828
>
2929
{text}
@@ -105,36 +105,47 @@ function Footer() {
105105
<a href="https://www.linkedin.com/company/tech-society-iiitbh/">Linkedin</a>
106106
</li>
107107
<li className='social-item'>
108-
<Mail />
108+
<Mail />
109109
<a href="mailto:[email protected]">Mail</a>
110110
</li>
111111
</div>
112112

113113
<div className='contact'>
114114
<li onMouseEnter={(e) => showTooltip(contact_A, e)} onMouseLeave={() => hideTooltip()} style={{ cursor: 'pointer' }}>
115-
<p>Ehtisham Mohd <p className='contact-item' onClick={() => copyPhoneNumber(contact_A.no.split(' ').join(''))}>
116-
{contact_A.no}</p>
115+
<p>
116+
Ehtisham Mohd
117+
<span className='contact-item' onClick={() => copyPhoneNumber(contact_A.no.split(' ').join(''))}>
118+
{contact_A.no}
119+
</span>
117120
</p>
118121
</li>
119122
<li onMouseEnter={(e) => showTooltip(contact_B, e)} onMouseLeave={() => hideTooltip()} style={{ cursor: 'pointer' }}>
120-
<p>Soubhik Kumar Gon <p className='contact-item' onClick={() => copyPhoneNumber(contact_B.no.split(' ').join(''))}>
121-
{contact_B.no}</p>
123+
<p>
124+
Soubhik Kumar Gon
125+
<span className='contact-item' onClick={() => copyPhoneNumber(contact_B.no.split(' ').join(''))}>
126+
{contact_B.no}
127+
</span>
122128
</p>
123129
</li>
124130
<li onMouseEnter={(e) => showTooltip(contact_C, e)} onMouseLeave={() => hideTooltip()} style={{ cursor: 'pointer' }}>
125-
<p>Saswat Parasar Behera <p className='contact-item' onClick={() => copyPhoneNumber(contact_C.no.split(' ').join(''))} >
126-
{contact_C.no}</p>
131+
<p>
132+
Saswat Parasar Behera
133+
<span className='contact-item' onClick={() => copyPhoneNumber(contact_C.no.split(' ').join(''))}>
134+
{contact_C.no}
135+
</span>
127136
</p>
128137
</li>
129138
<li onMouseEnter={(e) => showTooltip(contact_D, e)} onMouseLeave={() => hideTooltip()} style={{ cursor: 'pointer' }}>
130-
<p>Abhijeet <p className='contact-item' onClick={() => copyPhoneNumber(contact_D.no.split(' ').join(''))} >
131-
{contact_D.no}</p>
139+
<p>
140+
Abhijeet
141+
<span className='contact-item' onClick={() => copyPhoneNumber(contact_D.no.split(' ').join(''))}>
142+
{contact_D.no}
143+
</span>
132144
</p>
133145
</li>
134146
</div>
135147

136148

137-
138149
<div className='footer-address'>
139150
<p>IIIT Bhubaneswar, Gothapatna, Bhubaneswar, Odisha, 751003</p>
140151
<p>Email: [email protected]</p>

yarn.lock

+20
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,7 @@ __metadata:
10831083
react: "npm:^18.3.1"
10841084
react-dom: "npm:^18.3.1"
10851085
react-router-dom: "npm:^6.26.2"
1086+
react-toastify: "npm:^10.0.5"
10861087
vite: "npm:^5.4.1"
10871088
languageName: unknown
10881089
linkType: soft
@@ -1169,6 +1170,13 @@ __metadata:
11691170
languageName: node
11701171
linkType: hard
11711172

1173+
"clsx@npm:^2.1.0":
1174+
version: 2.1.1
1175+
resolution: "clsx@npm:2.1.1"
1176+
checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839
1177+
languageName: node
1178+
linkType: hard
1179+
11721180
"color-convert@npm:^1.9.0":
11731181
version: 1.9.3
11741182
resolution: "color-convert@npm:1.9.3"
@@ -3088,6 +3096,18 @@ __metadata:
30883096
languageName: node
30893097
linkType: hard
30903098

3099+
"react-toastify@npm:^10.0.5":
3100+
version: 10.0.5
3101+
resolution: "react-toastify@npm:10.0.5"
3102+
dependencies:
3103+
clsx: "npm:^2.1.0"
3104+
peerDependencies:
3105+
react: ">=18"
3106+
react-dom: ">=18"
3107+
checksum: 10c0/66c68ec3d6c017d9f32652d73bb925224921c6a80b629b9d481430d5b4fd504abb7a99995a64b9aef0fc31326c74f3cbe088b3287b978dd0c355079c4bbf4158
3108+
languageName: node
3109+
linkType: hard
3110+
30913111
"react@npm:^18.3.1":
30923112
version: 18.3.1
30933113
resolution: "react@npm:18.3.1"

0 commit comments

Comments
 (0)