Results Page + Contacts
This commit is contained in:
1 parent
cc73a8e3da
commit
601d5ac89d
23 files changed
+277
-81
No files matched your search
@@ -0,0 +1,41 @@
|
||||
import { useState } from "react";
|
||||
import WesiteCards from "./WesiteCards";
|
||||
import Buttons from "./Buttons";
|
||||
import MarketingCards from "./MarketingCards";
|
||||
import CameraCards from "./CameraCards";
|
||||
import SocialMediaCards from "./SocialMedia";
|
||||
|
||||
const CardGroup = () => {
|
||||
const [activeGroup, setActiveGroup] = useState("webCards");
|
||||
|
||||
const changeActiveGroup = (group: string) => {
|
||||
setActiveGroup(group);
|
||||
};
|
||||
|
||||
let ActiveCards;
|
||||
switch (activeGroup) {
|
||||
case "markCards":
|
||||
ActiveCards = MarketingCards;
|
||||
break;
|
||||
case "webCards":
|
||||
ActiveCards = WesiteCards;
|
||||
break;
|
||||
case "smCards":
|
||||
ActiveCards = SocialMediaCards;
|
||||
break;
|
||||
case "camCards":
|
||||
ActiveCards = CameraCards;
|
||||
break;
|
||||
default:
|
||||
ActiveCards = null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="h-full font-medium md:px-8 py-3 text-2xl md:text-3xl bg-gradient-to-br from-custom-bglight to-custom-bgdark rounded-xl flex flex-col">
|
||||
{ActiveCards && <ActiveCards />}
|
||||
<Buttons changeActiveGroup={changeActiveGroup} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default CardGroup;
|
||||
Reference in new issue
Block a user