Compare commits
6 Commits
version_13
...
version_16
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74df44500f | ||
| d6a4924d7c | |||
|
|
743e9fdbf6 | ||
| ee65977fb0 | |||
|
|
4aa2a57150 | ||
| 8113fd7d7d |
15
src/components/custom/AnimatedBackground.tsx
Normal file
15
src/components/custom/AnimatedBackground.tsx
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
const AnimatedBackground = () => {
|
||||||
|
return (
|
||||||
|
<div className="absolute inset-0 z-0 overflow-hidden">
|
||||||
|
<div className="absolute inset-0 bg-gradient-to-br from-background-light via-background to-background-dark" />
|
||||||
|
<div className="absolute inset-0 animate-pulse-slow">
|
||||||
|
<div className="absolute top-1/4 left-1/4 w-96 h-96 bg-primary/10 rounded-full filter blur-3xl opacity-50" />
|
||||||
|
<div className="absolute bottom-1/4 right-1/4 w-96 h-96 bg-secondary/10 rounded-full filter blur-3xl opacity-50" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default AnimatedBackground;
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import AnimatedBackground from "@/components/custom/AnimatedBackground";
|
||||||
import type { LucideIcon } from "lucide-react";
|
import type { LucideIcon } from "lucide-react";
|
||||||
import Button from "@/components/ui/Button";
|
import Button from "@/components/ui/Button";
|
||||||
import TextAnimation from "@/components/ui/TextAnimation";
|
import TextAnimation from "@/components/ui/TextAnimation";
|
||||||
@@ -24,7 +25,8 @@ const AboutFeaturesSplit = ({
|
|||||||
videoSrc,
|
videoSrc,
|
||||||
}: AboutFeaturesSplitProps) => {
|
}: AboutFeaturesSplitProps) => {
|
||||||
return (
|
return (
|
||||||
<section aria-label="About section" className="py-20">
|
<section aria-label="About section" className="py-20 relative">
|
||||||
|
<AnimatedBackground />
|
||||||
<div className="flex flex-col gap-8 mx-auto w-content-width">
|
<div className="flex flex-col gap-8 mx-auto w-content-width">
|
||||||
<div className="flex flex-col items-center gap-2">
|
<div className="flex flex-col items-center gap-2">
|
||||||
<span className="px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
|
<span className="px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
|
||||||
@@ -54,7 +56,7 @@ const AboutFeaturesSplit = ({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col md:flex-row md:items-stretch gap-5">
|
<div className="flex flex-col md:flex-row md:items-stretch gap-5">
|
||||||
<div className="flex flex-col justify-center gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5 w-full md:w-4/10 2xl:w-3/10 card rounded bg-white/10 backdrop-blur-lg border border-white/20">
|
<div className="flex flex-col justify-center gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5 w-full md:w-4/10 2xl:w-3/10 card rounded bg-transparent backdrop-blur-lg border border-white/20">
|
||||||
{items.map((item, index) => {
|
{items.map((item, index) => {
|
||||||
const ItemIcon = resolveIcon(item.icon);
|
const ItemIcon = resolveIcon(item.icon);
|
||||||
return (
|
return (
|
||||||
@@ -74,7 +76,7 @@ const AboutFeaturesSplit = ({
|
|||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="p-3 xl:p-4 2xl:p-5 w-full md:w-6/10 2xl:w-7/10 h-80 md:h-auto card rounded overflow-hidden">
|
<div className="p-3 xl:p-4 2xl:p-5 w-full md:w-6/10 2xl:w-7/10 h-80 md:h-auto card rounded overflow-hidden bg-transparent">
|
||||||
<div className="relative size-full">
|
<div className="relative size-full">
|
||||||
<ImageOrVideo imageSrc={imageSrc} videoSrc={videoSrc} className="absolute inset-0 object-cover rounded" />
|
<ImageOrVideo imageSrc={imageSrc} videoSrc={videoSrc} className="absolute inset-0 object-cover rounded" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
--background-accent: #6bbfb8;
|
--background-accent: #6bbfb8;
|
||||||
|
|
||||||
/* @layout/border-radius/rounded */
|
/* @layout/border-radius/rounded */
|
||||||
--radius: 1rem;
|
--radius: 1.5rem;
|
||||||
|
|
||||||
/* @layout/content-width/medium */
|
/* @layout/content-width/medium */
|
||||||
--width-content-width: clamp(40rem, 72.5vw, 100rem);
|
--width-content-width: clamp(40rem, 72.5vw, 100rem);
|
||||||
|
|||||||
@@ -50,6 +50,10 @@ export default function HomePage() {
|
|||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
imageSrc="http://img.b2bpic.net/free-photo/people-making-notes-about-flower_23-2147768470.jpg"
|
imageSrc="http://img.b2bpic.net/free-photo/people-making-notes-about-flower_23-2147768470.jpg"
|
||||||
|
primaryButton={{
|
||||||
|
text: "Learn More",
|
||||||
|
href: "#",
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -212,3 +212,18 @@
|
|||||||
77% { opacity: 0.05; }
|
77% { opacity: 0.05; }
|
||||||
88% { opacity: 0; }
|
88% { opacity: 0; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes pulse-slow {
|
||||||
|
0%, 100% {
|
||||||
|
transform: scale(1);
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: scale(1.1);
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.animate-pulse-slow {
|
||||||
|
animation: pulse-slow 8s infinite ease-in-out;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user