Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion frontend/src/components/LandingComponents/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Button } from '../../ui/button';
import { buttonVariants } from '../../ui/button';
import { HeroCards } from './HeroCards';
import { GitHubLogoIcon } from '@radix-ui/react-icons';
import { motion } from 'framer-motion';

export const Hero = () => {
return (
Expand Down Expand Up @@ -51,7 +52,25 @@ export const Hero = () => {
<HeroCards />
</div>

<div className="shadow"></div>
<motion.div
className="absolute top-[200px] w-[300px] h-[400px] lg:w-[400px] lg:h-[400px] md:top-[150px] md:w-[200px] md:h-[300px]"
style={{
filter: 'blur(150px)',
}}
animate={{
background: [
'hsla(330, 100%, 50%, 20%)',
'hsla(240, 100%, 50%, 80%)',
'hsla(330, 100%, 50%, 20%)',
],
right: ['460px', '160px', '460px'],
}}
transition={{
duration: 8,
repeat: Infinity,
ease: 'linear',
}}
/>
</section>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ exports[`Hero component using snapshot renders correctly 1`] = `
</div>
</div>
<div
class="shadow"
class="absolute top-[200px] w-[300px] h-[400px] lg:w-[400px] lg:h-[400px] md:top-[150px] md:w-[200px] md:h-[300px]"
style="filter: blur(150px);"
/>
</section>
</DocumentFragment>
Expand Down
62 changes: 0 additions & 62 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
@@ -1,65 +1,3 @@
html {
scroll-behavior: smooth;
}

/* HeroCards background shadow */
.shadow {
position: absolute;
background: hsla(330, 100%, 50%, 0%);
border-radius: 24px;
rotate: 35deg;

width: 260px;
top: 200px;
height: 400px;
filter: blur(150px);
animation: shadow-slide infinite 4s linear alternate;
}

@keyframes shadow-slide {
from {
background: hsla(330, 100%, 50%, 20%); /* Pink shadow color */
right: 460px;
}
to {
background: hsla(240, 100%, 50%, 80%); /* Blue shadow color */
right: 160px;
}
}

@media (max-width: 1024px) {
.shadow {
top: 70px;
}

@keyframes shadow-slide {
from {
background: hsla(330, 100%, 50%, 20%); /* Pink shadow color */
right: 460px;
}
to {
background: hsla(240, 100%, 50%, 50%); /* Blue shadow color */
right: 160px;
}
}
}

@media (max-width: 768px) {
.shadow {
top: 70px;
width: 100px;
height: 350px;
filter: blur(60px);
}

@keyframes shadow-slide {
from {
background: hsla(330, 100%, 50%, 20%); /* Pink shadow color */
right: 280px;
}
to {
background: hsla(240, 100%, 50%, 30%); /* Blue shadow color */
right: 100px;
}
}
}
Loading