Skip to content

Commit

Permalink
fix: some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bhoopesh369 committed Dec 12, 2023
1 parent e3c235a commit ccd8943
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const notFound = () => {
<NavBar />
</div>
<div className="flex flex-col justify-center items-center h-screen w-screen font-ROG 2xl:text-4xl xl:text-3xl lg:text-2xl md:text-xl sm:text-lg text-sm text-center">
<GlitchText text="You have come to the wrong timeline traveler!!!" />
<GlitchText text="You have come to the wrong timeline traveller!!!" />
</div>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/BackButton/back.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ImageChanger = (props: ImageChangerProps) => {
<Image
src={isHovered ? props.hoverImage : props.defaultImage}
alt="Back to cluster"
className={`${styles.Back} xl:w-52 lg:w-44 md:w-32 sm:w-24 w-16 absolute left-28 top-32 max-md:hidden`}
className={`${styles.Back} xl:w-52 lg:w-44 md:w-32 sm:w-24 w-16 absolute left-28 top-32 max-md:hidden z-20`}
onClick={() => {
router.push('/clusters');
}}
Expand Down
15 changes: 10 additions & 5 deletions src/components/ClusterCarousel/ClusterCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ const ClusterCarousel = ({ id, name }: { id: number; name: string }) => {
}
};

const navigateToEvent = () => {
router.push(`/events/${id}/${name}/${details[index].id}`);
};

return (
<div className="relative w-full md:w-3/4 h-full flex items-center justify-center max-2xl:px-10 max-md:p-2">
<Image src={leftPortal} className="absolute max-lg:hidden left-0 w-80" alt="<" />
Expand Down Expand Up @@ -111,11 +115,9 @@ const ClusterCarousel = ({ id, name }: { id: number; name: string }) => {
height={Math.min(data.image?.height, 100)}
objectPosition="center"
objectFit="contain"
className={`rounded-lg lg:max-h[20vh] lg:max-w-[20vw]`}
className={`rounded-lg lg:max-h[20vh] lg:max-w-[20vw] cursor-pointer`}
alt="cluster"
onClick={() => {
router.push(`/events/${id}/${name}/${data.id}`);
}}
onClick={navigateToEvent}
/>
</div>
</SwiperSlide>
Expand All @@ -125,7 +127,10 @@ const ClusterCarousel = ({ id, name }: { id: number; name: string }) => {
<div className="prevArrow absolute -left-10 w-10 hover:scale-110 animate-pulse hover:cursor-pointer">
<Image src={leftArrow} alt="<" />
</div>
<div className="font-Orbitron text-sm md:text-xl border-white border py-2 rounded-full w-[40vw] md:w-52 text-center overflow-hidden">
<div
className="font-Orbitron text-sm md:text-xl border-white border py-2 rounded-full w-[40vw] md:w-52 text-center overflow-hidden cursor-pointer"
onClick={navigateToEvent}
>
{details[index] ? details[index].name : 'Loading'}
</div>
<div className="nextArrow absolute -right-10 w-10 hover:scale-110 animate-pulse hover:cursor-pointer">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Toast = () => {
gutter={8}
containerClassName="toasty"
containerStyle={{
fontFamily: 'DotMatrix_TR',
fontFamily: 'Orbitron',
}}
toastOptions={{
className: '',
Expand Down

0 comments on commit ccd8943

Please sign in to comment.