Skip to content

Commit 6e76404

Browse files
Updated Header text rotation
1 parent 6d57dff commit 6e76404

File tree

8 files changed

+64
-28
lines changed

8 files changed

+64
-28
lines changed

package-lock.json

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"react": "^18.3.1",
2020
"react-dom": "^18.3.1",
2121
"react-icons": "^5.3.0",
22-
"react-router-dom": "^6.26.0"
22+
"react-router-dom": "^6.26.0",
23+
"react-simple-typewriter": "^5.0.1"
2324
},
2425
"devDependencies": {
2526
"@eslint/js": "^9.8.0",

src/components/announce.jsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import React from "react";
22
const Announce = () => {
33
return(
4-
<section className="p-8 bg-blue-200 mt-4">
5-
<h2 className="text-2xl font-bold mb-4">Announcement</h2>
6-
<p className="text-gray-700">
7-
1. The last date for registration is September 4th. After the last date, students will not be allowed to participate.<p/>
4+
<section className="p-8 bg-[#0a1625] mt-4">
5+
<h2 className="text-2xl font-bold mb-4 text-white">Announcement</h2>
6+
<p className="text-white">
7+
1. The last date for registration is September 15th. After the last date, students will not be allowed to participate.<p/>
88
<p>2. Students can only register through the website, not through any other means or forms.</p>
9-
<p>3. The inter-college Hackathon will be organized on September 6th.</p>
9+
<p>3. The inter-college Hackathon will be organized on Soon.</p>
1010
<p>4. Students must come in proper attire with their devices.</p>
1111
<p>5. In case of an emergency, students should contact the coordinating teacher or the organizing student team.</p>
12+
<p>6. Their is some changes in Inner college hackathon. their is 16hr implimentation in the UNIVERSITY where student have to implement their products
13+
14+
</p>
1215
</p>
1316

1417
</section>

src/components/header.jsx

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,49 @@
11
import React from "react";
2-
2+
import { Typewriter } from "react-simple-typewriter";
33

44
const Header = () => {
55
return (
6-
76
<div className="relative h-screen overflow-hidden">
7+
{/* Background Video */}
88
<video
99
className="absolute inset-0 w-full h-full object-cover bg-dark-blue-600"
10-
src="/new.mp4"
10+
src="/new.mp4"
1111
autoPlay
1212
loop
1313
muted
14+
playsInline
1415
/>
15-
16+
17+
{/* Text Section */}
1618
<div className="absolute inset-0 flex flex-col items-center justify-center text-center p-4">
1719
<div className="p-4">
18-
<h2 className="text-4xl sm:text-6xl lg:text-9xl text-blue-50 font-bold mb-4 sm:mb-8">Let's Build Something</h2>
19-
<p className="text-2xl sm:text-4xl lg:text-6xl text-blue-50 font-bold mb-4">Innovative</p>
20+
<h2 className="text-4xl sm:text-6xl lg:text-9xl text-blue-50 font-bold mb-4 sm:mb-8">
21+
<Typewriter
22+
words={[
23+
"Code the Future",
24+
"Hack Today, Lead Tomorrow",
25+
"Dream. Design. Disrupt.",
26+
"Ideas Into Impact",
27+
"Your Code, Your Legacy",
28+
"Redefine What’s Possible",
29+
"Think. Create. Elevate."
30+
]}
31+
loop={0} // infinite
32+
cursor
33+
cursorStyle="_"
34+
typeSpeed={100}
35+
deleteSpeed={60}
36+
delaySpeed={5000} // waits 30s before switching text
37+
/>
38+
</h2>
2039
</div>
21-
<button className="mt-4 sm:mt-8 bg-blue-600 text-white px-4 sm:px-6 py-2 sm:py-3 text-lg rounded-full hover:bg-black">
22-
<a href="#registration">
23-
Register Now
24-
</a>
40+
41+
{/* Button */}
42+
<button className="mt-4 sm:mt-8 bg-blue-600 text-white px-4 sm:px-6 py-2 sm:py-3 text-lg rounded-full hover:bg-black transition">
43+
<a href="#registration">Register Now</a>
2544
</button>
2645
</div>
2746
</div>
28-
2947
);
3048
};
3149

src/components/nav.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22

33
const Nav = () => {
44
return (
5-
<nav className="bg-blue-900 p-4 flex justify-center items-center">
5+
<nav className="bg-[#0a1625] p-4 flex justify-center items-center">
66
<ul className="flex flex-col sm:flex-row gap-2 md:gap-12 justify-center items-center">
77
<li><a href="#home" className="text-white text-lg hover:bg-[#00008B] p-1 rounded-lg">Home</a></li>
88
<li><a href="#rules" className="text-white text-lg hover:bg-[#00008B] p-1 rounded-lg">Rules</a></li>

src/components/registrationform.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ const RegistrationForm = () => {
6464

6565

6666

67-
<section className="p-4 sm:p-8 bg-blue-200 mt-4 flex flex-col items-center ">
68-
<h2 className="text-xl sm:text-2xl font-bold mb-4">Registration Form</h2>
67+
<section className="p-4 sm:p-8 bg-[#0a1625] mt-4 flex flex-col items-center ">
68+
<h2 className="text-xl text-white sm:text-2xl font-bold mb-4">Registration Form</h2>
6969

7070
{
7171
isSubmitting ?

src/components/rules.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import React from "react";
33
const Rules = () => {
44
return(
55
<div className="">
6-
<section className="p-8 bg-blue-200">
7-
<h2 className="text-2xl font-bold mb-4">Rules & Regulation</h2>
6+
<section className="p-8 bg-[#0a1625]">
7+
<h2 className="text-2xl text-white font-bold mb-4">Rules & Regulation</h2>
88
< p
9-
className="text-gray-700">1. All team members should be from the same college; no inter-college teams are allowed. However, members from different branches of the same college/institute are encouraged to form a team including Atleast one girl candidiate.
9+
className="text-white">1. All team members should be from the same college; no inter-college teams are allowed. However, members from different branches of the same college/institute are encouraged to form a team including Atleast one girl candidiate.
1010
<p>2. Each team must mandatorily comprise 6 members, including...</p>
1111

1212
<p>3. For the Software Edition, after teams are shortlisted, each team will have the option of selecting 2 mentors from industry or academia.</p>

src/components/task.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React from "react";
22
const Task = () => {
33
return(
4-
<section className="p-9 bg-blue-200 mt-5">
5-
<h1 className="text-2xl mb-42"> <b>
4+
<section className="p-9 bg-[#0a1625] mt-5">
5+
<h1 className="text-2xl text-white mb-42"> <b>
66
PROBLEM STATEMENTS AND PRIZES TO BE WON
77
</b>
88

99
</h1>
10-
<p className="text-gray-700"><br />
10+
<p className="text-white"><br />
1111

12-
<p>1. SIH2024 brings you problem statements from leading public and private organizations, union
12+
<p>1. SIH2025 brings you problem statements from leading public and private organizations, union
1313
ministries, state governments and NGOs in India.</p>
1414
<p>2. There would be ONE single winning team for every problem statement posted on the portal. The
1515
prize money will be given by the collaborating ministry/ industry ONLY IF that organization likes

0 commit comments

Comments
 (0)