-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from TEDx-SJEC/sponsor
add silver sponsors
- Loading branch information
Showing
6 changed files
with
70 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"use client"; | ||
|
||
import { motion } from "framer-motion"; | ||
|
||
export default function ScrollingBanner() { | ||
const sentence = " Registrations close soon • "; | ||
const repeatCount = 20; // Increase this number to add more repetitions | ||
|
||
return ( | ||
<div | ||
className=" | ||
// bg-gradient-to-b from-transparent from-60% via-redTheme via-75% to-transparent to-90% | ||
bg-redTheme h-fit text-whiteTheme overflow-hidden py-2" | ||
> | ||
<motion.div | ||
className="whitespace-nowrap inline-block" | ||
animate={{ | ||
x: ["0%", "-50%"], | ||
}} | ||
transition={{ | ||
x: { | ||
repeat: Infinity, | ||
repeatType: "loop", | ||
duration: 15, // Reduced from 20 to 15 to speed up the animation | ||
ease: "linear", | ||
}, | ||
}} | ||
> | ||
<span className="text-lg font-semibold px-4"> | ||
{sentence.repeat(repeatCount)} | ||
</span> | ||
</motion.div> | ||
</div> | ||
); | ||
} |
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