diff --git a/src/components/shared/buttons/backtotopbutton/BackToTop.scss b/src/components/shared/buttons/backtotopbutton/BackToTop.scss index a4d9fefd..f1ee9377 100644 --- a/src/components/shared/buttons/backtotopbutton/BackToTop.scss +++ b/src/components/shared/buttons/backtotopbutton/BackToTop.scss @@ -10,8 +10,8 @@ background-color: #ff5b31; border-radius: 10px; position: fixed; - bottom: 5rem; - right: 5rem; + bottom: 30px; + right: 30px; z-index: 999; display: flex; justify-content: center; diff --git a/src/components/shared/cards/club/ClubCard.jsx b/src/components/shared/cards/club/ClubCard.jsx index 07b5f132..77ab6302 100644 --- a/src/components/shared/cards/club/ClubCard.jsx +++ b/src/components/shared/cards/club/ClubCard.jsx @@ -5,34 +5,39 @@ import "./ClubCard.scss"; const ClubCard = ({ club }) => { return (
+ {/* Top Section */}
- + {`${club?.name
-

{club?.name}

-

{club?.tagLine}

+

{club?.name || "The Monk community"}

+

+ {club?.description || + "Organizing @Hack4Bengal, Engineering @Edilitics • Worked w/ 5+ startups • Building OSS product with 200+ users • Open to Frontend Roles"} +

+ {/* Call to Action Section */}
-
-
- - - -
-

200+ Members

+
+

+ 1.25k Followers +

+ +

+ 231 Events +

- + { viewBox="0 0 29 29" fill="none" className="clubcard_cta_arrow" + role="img" > { - const { data: clubs, isLoading } = useQuery({ + const { data, isLoading } = useQuery({ queryKey: ["clubsData"], queryFn: getClubs, refetchOnMount: true, @@ -14,22 +14,30 @@ const Clubs = () => { retry: 2, }); + // demo 20 array of clubs + const clubs = Array.from({ length: 20 }, (_, i) => ({ + _id: "673ac2814c6e89e58af8ca11", + userType: "club", + userName: "tamalcodes", + name: "God Father Org", + email: "tamalcodes@gmail.com", + password: "$2a$10$90vC9McfHXpXpLlzUOFeuulorPR9dIQ2ns37uIP5sX5ehyO5C.Mmm", + cart: [], + __v: 0, + })); + return ( <> -
-
-
- {isLoading || !clubs || clubs?.length === 0 ? ( - - ) : ( - clubs?.map((club, id) => ) - )} -
-
- +
+ {isLoading || !clubs || clubs?.length === 0 ? ( + + ) : ( + clubs?.map((club, id) => ) + )} +