@@ -7,6 +7,7 @@ import TwitterSvg from "@/public/images/social/twitter.svg";
77import SlackSvg from "@/public/images/social/slack.svg" ;
88import YoutubeSvg from "@/public/images/social/youtube.svg" ;
99import LinkedinSvg from "@/public/images/social/linkedin.svg" ;
10+ import { OrbitingCircles } from "./magicui/orbitcircle" ;
1011import Link from "next/link" ;
1112
1213type cardSurrondStyle = {
@@ -27,6 +28,9 @@ type CardData = {
2728 svgIcon : string ;
2829 platformName : string ;
2930 description : string ;
31+ radius : number ;
32+ duration : number ;
33+ delay : number ;
3034} ;
3135
3236const createCircleStyles = (
@@ -59,7 +63,7 @@ function SocialLinkCard({
5963 rel = "noopener noreferrer"
6064 style = { showExtraStyle ? { ...style } : { } }
6165 className = { `${
62- showExtraStyle ? "circle" : "w-3/4 mx-auto mb-5"
66+ showExtraStyle ? "circle" : "w-[280px] mx-auto mb-5"
6367 } z-10 bg-white shadow-md rounded-lg border border-accent-500 p-4 hover:shadow-xl flex items-center justify-start group transition duration-300`}
6468 >
6569 < div className = "w-12 h-12 text-center sm:mr-2" >
@@ -83,30 +87,45 @@ export default function Community() {
8387 svgIcon : TwitterSvg ,
8488 platformName : "Twitter" ,
8589 description : "Let's talk about regression testing!" ,
90+ radius : 300 ,
91+ duration : 20 ,
92+ delay : 1 ,
8693 } ,
8794 {
8895 link : "https://github.com/keploy/keploy" ,
8996 svgIcon : GithubSvg ,
9097 platformName : "Github" ,
9198 description : "Contribute code to Keploy or report a bug" ,
99+ radius : 300 ,
100+ duration : 20 ,
101+ delay : 5 ,
92102 } ,
93103 {
94104 link : "https://join.slack.com/t/keploy/shared_invite/zt-2dno1yetd-Ec3el~tTwHYIHgGI0jPe7A" ,
95105 svgIcon : SlackSvg ,
96106 platformName : "Slack" ,
97107 description : "Connect and chat with other Keploy users" ,
108+ radius : 300 ,
109+ duration : 20 ,
110+ delay : 9 ,
98111 } ,
99112 {
100113 link : "https://www.youtube.com/channel/UC6OTg7F4o0WkmNtSoob34lg" ,
101114 svgIcon : YoutubeSvg ,
102115 platformName : "Youtube" ,
103116 description : "Learn with Keploy team and community videos" ,
117+ radius : 300 ,
118+ duration : 20 ,
119+ delay : 13 ,
104120 } ,
105121 {
106122 link : "https://www.linkedin.com/company/74471957" ,
107123 svgIcon : LinkedinSvg ,
108124 platformName : "Linkedin" ,
109125 description : "Follow us and connect with other Keploy engineers!" ,
126+ radius : 300 ,
127+ duration : 20 ,
128+ delay : 17 ,
110129 } ,
111130 ] ;
112131
@@ -139,21 +158,36 @@ export default function Community() {
139158 ) ) ;
140159
141160 return (
142- < section className = "relative py-8 " >
161+ < section className = "relative py-8" >
143162 < div className = "max-w-3xl mx-auto text-center" >
144163 < h2 className = "h2 text-secondary-300" >
145164 🐰 Join the Keploy community ✨
146165 </ h2 >
147166 </ div >
148167
149168 < div className = "mx-auto w-fit" >
150- < div className = "ciclegraph hidden md:block relative w-[600px] h-[600px] mx-auto mt-24 mb-24" >
151- { cardsSurround }
152- < Image
153- src = { CommunityBunny }
154- alt = "Image"
155- className = "absolute -translate-x-1/2 -translate-y-1/2 bg-white top-1/2 left-1/2"
156- />
169+ < div className = "relative hidden md:block m-auto h-[600px] w-[600px] mt-24 mb-24 items-center justify-center bg-background" >
170+ < div >
171+ < Image src = { CommunityBunny } alt = "Image" className = "absolute pl-5 -translate-x-1/2 translate-y-1/5 left-1/2 bg-background max-w-2xl" />
172+ </ div >
173+ < div className = "flex justify-center items-center" >
174+ { cardsData . map ( ( card , index ) => (
175+ < OrbitingCircles
176+ key = { index }
177+ className = "size-[60px] border-none bg-transparent top-72 z-10"
178+ duration = { card . duration }
179+ delay = { card . delay }
180+ radius = { card . radius }
181+ >
182+ < SocialLinkCard
183+ link = { card . link }
184+ svgIcon = { card . svgIcon }
185+ platformName = { card . platformName }
186+ description = { card . description }
187+ />
188+ </ OrbitingCircles >
189+ ) ) }
190+ </ div >
157191 </ div >
158192 < div className = "md:hidden" >
159193 < Image src = { CommunityBunny } alt = "Image" className = "w-3/4 mx-auto" />
0 commit comments