Skip to content

Commit

Permalink
fix: skill issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshd332 committed Dec 12, 2023
1 parent f32b49c commit 45f72a4
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/app/events/[clusterId]/[name]/[eventId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import Carousel from '@/components/Carousel/carousel';
import styles from '../../../carousel.module.css';

const events = ({ params }: { params: { clusterId: number; name: string; eventId: number } }) => {
console.log(params.clusterId, params.name, params.eventId);
return (
<div className={`min-h-screen w-full text-center lg:p-7 p-5 event + ${styles.event}`}>
<NavBar />
Expand Down
12 changes: 8 additions & 4 deletions src/app/gallery/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,13 @@ const History = () => {
>
{images.map(
(
data: { url: number; eventId: number; eventName: string },
data: {
url: number;
eventId: number;
eventName: string;
clusterID: number;
clusterName: string;
},
ind: number,
) => (
<SwiperSlide
Expand All @@ -157,9 +163,7 @@ const History = () => {
layout="fill"
onClick={() => {
router.push(
`/eventcluster/${data ? data.eventId : 0}/${
data ? data.eventName : ''
}`,
`/events/${data.clusterID}/${data.clusterName}/${data.eventId}`,
);
}}
objectFit="cover"
Expand Down
6 changes: 1 addition & 5 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

@font-face {
font-family: 'Nunito' !important;
font-family: 'Nunito';
src: url('../assets/fonts/Nunito-Regular.ttf');
}

Expand Down Expand Up @@ -288,10 +288,6 @@ body {
}
}

.markdown>* {
all: revert;
}

::-webkit-scrollbar {
width: 5px;
}
Expand Down
5 changes: 3 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import Footer from '@/components/Footer/Footer';
import './globals.css';
import type { Metadata } from 'next';
import { content } from '@/components/AboutCard/AboutContent.json';
import content from '@/components/AboutCard/AboutContent.json';
import Toast from '@/components/Toast/Toast';

export const metadata: Metadata = {
title: "Pragyan '24 | Let's Celebrate Technology",
description: content,
description: content.content,
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<div className="w-full min-h-screen bg-[#070B12]">{children}</div>
<Footer />
<Toast />
Expand Down
9 changes: 6 additions & 3 deletions src/components/AuthLayout/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,14 @@ export const SignUp: React.FC<SignupFormProps> = ({ setForm }) => {
user_recaptcha_code: registerForm.recaptcha_code,
user_voucher_code: registerForm.userVoucherName,
})
.then(res => console.log(res))
.catch(e => {
localStorage.setItem('token', e.message);
.then(res => {
// @ts-ignore-next-line
localStorage.setItem('token', res.message);
toast.success('Successfully created an account and logged In');
router.push('/home');
})
.catch(e => {
toast.error(e.message);
});
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/Carousel/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Carousel = ({ id, eventId }: { id: number; eventId: number }) => {
<div className={`${styles.leftArrow}`}></div>
</Swiper>
) : (
<p>Oombu</p>
<></>
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/Carousel/slideData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const SlideData: React.FC<SlideDataProps> = ({ details }) => {
<div
className={`w-full h-4/5 font-Nunito 2xl:text-base xl:text-sm lg:text-sm sm:text-xs text-sm p-3 ${styles.content}`}
>
<Markdown className={styles.markdown + ' markdown'}>{data}</Markdown>
<Markdown className={styles.markdown}>{data}</Markdown>
</div>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/utils/events_cms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export const getGallery = async () => {
height: dummy.height,
eventId: data.attributes.Event_ID,
eventName: data.attributes.Event_Name,
clusterID: data.attributes.Cluster_ID,
clusterName: data.attributes.Cluster_Name,
});
});
return details;
Expand Down

0 comments on commit 45f72a4

Please sign in to comment.