Skip to content

Commit

Permalink
mentor form confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
IngridFuentes committed Feb 12, 2024
1 parent 821cbbd commit 1a24ae6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
32 changes: 15 additions & 17 deletions src/components/EmojiRain/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,21 @@ const EmojiRain = () => {
}));

return (
<div className="relative">
<div className="fixed top-0 left-0 w-full h-full pointer-events-none z-50 overflow-hidden">
{emojis.map((emojiObj) => (
<div
key={emojiObj.id} // Using the unique ID as key
style={{
position: "absolute",
left: `${Math.random() * 100}%`,
top: `${Math.random() * 100}%`,
animation: "fall 5s linear forwards",
}}
>
{emojiObj.emoji}
</div>
))}
</div>
</div>
<div className="fixed top-0 left-0 w-full h-full pointer-events-none z-50 overflow-hidden">
{emojis.map((emojiObj) => (
<div
key={emojiObj.id} // Using the unique ID as key
style={{
position: "absolute",
left: `${Math.random() * 100}%`,
top: `${Math.random() * 100}%`,
animation: "fall 5s linear forwards",
}}
>
{emojiObj.emoji}
</div>
))}
</div>
);
};

Expand Down
3 changes: 1 addition & 2 deletions src/components/forms/mentor-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const MentorForm = () => {
setMessage("Thank you for your registration!");
setShowEmojiRain(true);

setTimeout(() => setShowEmojiRain(false),5000);
setTimeout(() => setShowEmojiRain(false), 5000);

reset();
} catch (error) {
Expand All @@ -45,7 +45,6 @@ const MentorForm = () => {
return (
<div className="tw-px-4 md:tw-px-[250px]">
<h3 className="tw-text-h2 tw-mb-5">Register</h3>
{/* {message && <p>{message}</p>} */}
<form onSubmit={handleSubmit(onSubmit)} noValidate>
<div className="tw-mb-7.5">
<label
Expand Down

0 comments on commit 1a24ae6

Please sign in to comment.