Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Everything #55

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
afa2d98
Merge pull request #41 from nditc/Club
RafsanAmin Sep 29, 2024
956abc5
Merge pull request #42 from nditc/Club
The-XENO-Studios Sep 30, 2024
4990246
sdsd
RafsanAmin Oct 1, 2024
fd845ad
Merge branch 'master' into rafsan
RafsanAmin Oct 1, 2024
1dcaaae
f
RafsanAmin Oct 1, 2024
94c6fef
Merge pull request #43 from nditc/rafsan
RafsanAmin Oct 1, 2024
9ef7c34
Merge pull request #44 from nditc/Club
The-XENO-Studios Oct 3, 2024
f9e21a3
Tweak
The-XENO-Studios Oct 4, 2024
f633542
Event Details Page Eligibility Tweak
The-XENO-Studios Oct 4, 2024
3ef837c
Tweak
The-XENO-Studios Oct 4, 2024
9de039f
Roll Enter Pop Up Added
The-XENO-Studios Oct 6, 2024
09acf40
User Counting System
The-XENO-Studios Oct 7, 2024
bd868ee
up
RafsanAmin Oct 10, 2024
fa5ad89
up
RafsanAmin Oct 11, 2024
dab3d31
Merge pull request #45 from nditc/rafsan
RafsanAmin Oct 11, 2024
1fba7ff
up
RafsanAmin Oct 11, 2024
f835648
UP
RafsanAmin Oct 11, 2024
22b7913
Merge pull request #46 from nditc/rafsan
RafsanAmin Oct 11, 2024
3cd0fda
Added Markdown Preview
RafsanAmin Oct 11, 2024
beef07d
Merge pull request #47 from nditc/rafsan
RafsanAmin Oct 11, 2024
913f4a6
fixed height
RafsanAmin Oct 11, 2024
1c7c670
Merge pull request #48 from nditc/rafsan
RafsanAmin Oct 11, 2024
b0e3268
up again
RafsanAmin Oct 11, 2024
a1fd574
Merge pull request #49 from nditc/rafsan
RafsanAmin Oct 11, 2024
9c79af7
up
RafsanAmin Oct 12, 2024
4d1b841
Merge pull request #50 from nditc/rafsan
RafsanAmin Oct 12, 2024
9ee8ebc
run
RafsanAmin Oct 12, 2024
0f63593
Merge pull request #51 from nditc/rafsan
RafsanAmin Oct 12, 2024
1fff720
up
RafsanAmin Oct 12, 2024
b2e3948
Merge pull request #52 from nditc/rafsan
RafsanAmin Oct 12, 2024
17aec96
fixed visuals
RafsanAmin Oct 12, 2024
1a520eb
fixed preview
RafsanAmin Oct 12, 2024
fb85bd5
Merge pull request #53 from nditc/rafsan
RafsanAmin Oct 12, 2024
d59d8a8
Download User Data System Added
The-XENO-Studios Oct 13, 2024
c8990af
User Data Download System Updated / Tweaked
The-XENO-Studios Oct 14, 2024
85a575a
Announcement Tweak
The-XENO-Studios Oct 14, 2024
34cecd1
Ranker Download System
The-XENO-Studios Oct 14, 2024
14f184c
Ranker Answers Tweaks
The-XENO-Studios Oct 15, 2024
82ead73
Tweak
The-XENO-Studios Oct 15, 2024
c76900e
Tweak
The-XENO-Studios Oct 15, 2024
5861dc4
push
RafsanAmin Oct 18, 2024
0c77fe3
Merge pull request #54 from nditc/rafsan
RafsanAmin Oct 18, 2024
9168e32
Club Portal Removed
The-XENO-Studios Oct 22, 2024
f233596
Removal Fixed
The-XENO-Studios Oct 22, 2024
daa71c8
.
The-XENO-Studios Oct 22, 2024
1c554a3
Final Touch
The-XENO-Studios Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
366 changes: 366 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
"react-markdown": "^9.0.1",
"react-toastify": "^10.0.5",
"react-zoom-pan-pinch": "^3.4.3",
"rehype-highlight": "^7.0.0",
"rehype-katex": "^7.0.1",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"tailwind-datepicker-react": "^1.4.3",
"tailwind-gradient-mask-image": "^1.1.0",
"xlsx": "^0.18.5"
Expand All @@ -48,6 +51,7 @@
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-syntax-highlighter": "^15.5.13",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.1.4",
Expand Down
17 changes: 1 addition & 16 deletions src/app/(main)/Components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Image from "next/image";
import Link from "next/link";
import { usePathname, useSearchParams } from "next/navigation";
import { RxCross2 } from "react-icons/rx";
import ClubNavbar from "../../club/Components/Layout/Navbar";

const Navbar = () => {
const [showOptions, setShowOptions] = useState(false);
Expand Down Expand Up @@ -58,9 +57,7 @@ const Navbar = () => {
};
}, [Route, Params]);

return Route.includes("club") ? (
<ClubNavbar />
) : (
return (
<nav
ref={navRef}
className={
Expand Down Expand Up @@ -241,18 +238,6 @@ const Navbar = () => {
</Link>
</li>
)}

<li>
<Link
onClick={() => {
setShowOptions(false);
}}
href="/club"
className="block rounded bg-blue-500 px-3 py-2 text-white hover:bg-gray-200 md:bg-transparent md:p-0 md:text-primary-500 md:hover:bg-transparent md:hover:text-blue-500"
>
Club
</Link>
</li>
</ul>
</div>
</div>
Expand Down
22 changes: 6 additions & 16 deletions src/app/(main)/activities/Upcoming.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ interface Props {
description: string;
actionButtonTitle1: string;
actionButtonRedirect1: string;
actionButtonTitle2: string;
actionButtonRedirect2: string;
image: string;
timestamp: number;
}
Expand Down Expand Up @@ -74,8 +72,6 @@ const Upcoming = ({
description,
actionButtonTitle1,
actionButtonRedirect1,
actionButtonTitle2,
actionButtonRedirect2,
image,
timestamp,
}: Props) => {
Expand All @@ -86,16 +82,16 @@ const Upcoming = ({
const firstTwoWords = words.slice(0, 2).join(" ");
const restOfSentence = words.slice(2).join(" ");

const detailsEncrypt = encrypt(actionButtonRedirect2);
const detailsEncrypt = encrypt(actionButtonRedirect1);

return (
<div id="upcoming_event_container relative bg-white">
<div id="upcoming_event_container relative bg-white z-30">
<div className="blog-section shadow-[09px_13px_40px_10px_#00000024]">
<div className="absolute right-0 -z-10 h-full w-full">
<div className="absolute right-0 -z-10 h-full w-full bg-white">
<img
src={image}
alt={"Image"}
className="object-cover object-right gradient-mask-b-10 md:gradient-mask-l-40"
className="object-cover object-right opacity-60 gradient-mask-b-30 md:gradient-mask-l-0"
/>
</div>
<div className="left-part m-5 md:ml-10 md:mr-0">
Expand All @@ -105,21 +101,15 @@ const Upcoming = ({
{restOfSentence}
</h1>
</div>
<p className="blog-content line-clamp-5">{description}</p>
<p className="blog-content line-clamp-5 text-base">{description}</p>
<div className="buttons mt-2 flex flex-col gap-2 sm:mt-4 sm:flex-row sm:gap-5">
<a
href={actionButtonRedirect1}
className="register-button flex items-center justify-center"
>
<div>{actionButtonTitle1}</div>
</a>
<Link
href={`/details/${encodeURIComponent(
detailsEncrypt.toString(),
)}/${category}/${timestamp}`}
className="learn-more-button flex items-center justify-center"
>
<div>{actionButtonTitle2}</div>
<div>{actionButtonTitle1}</div>
</Link>
</div>
</div>
Expand Down
27 changes: 15 additions & 12 deletions src/app/(main)/activities/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,21 @@ const Activities = async ({
<h1 className="pb-1 text-3xl md:text-5xl">UPCOMING</h1>
<h1 className="text-5xl text-blue-500 md:text-7xl">EVENT</h1>
</div>
<section className="h-fit w-full">
<Upcoming
category={upcoming[0].category}
title={upcoming[0].title}
description={upcoming[0].short_description}
actionButtonTitle1="Register"
actionButtonTitle2="Learn More"
actionButtonRedirect1="https://init.nditc.net/registration/participant"
actionButtonRedirect2={upcoming[0].details_url}
image={upcoming[0].image_url}
timestamp={upcoming[0].timestamp}
/>
<section className="mb-8 flex h-fit w-full flex-col gap-8">
{upcoming.map((d, ind) => {
return (
<Upcoming
key={ind}
category={d.category}
title={d.title}
description={d.short_description}
actionButtonTitle1="Learn More"
actionButtonRedirect1={d.details_url}
image={d.image_url}
timestamp={d.timestamp}
/>
);
})}
</section>
</>
) : null}
Expand Down
38 changes: 33 additions & 5 deletions src/app/(main)/styles/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,25 @@
.markdown p {
padding-bottom: 0.5rem;
}

.markdown p::first-line {
padding-left: 1rem;
}
.markdown a {
color: #3b82f6;
}
.markdown h1 {
font-size: 2.25rem;
padding-top: 1.25rem;
padding-bottom: 0.5rem;
padding-top: 2.5rem;
padding-bottom: 1rem;
font-weight: 400;
}
/* .markdown h1::first-letter {
color: #2f4770;
} */
.markdown h2 {
font-size: 1.875rem;
padding-top: 1.15rem;
padding-top: 2.5rem;
padding-bottom: 0.5rem;
font-weight: 400;
}
Expand All @@ -30,11 +37,17 @@
.markdown h5,
.markdown h6 {
font-size: 1.5rem;
padding-top: 0.65rem;
padding-bottom: 0.5rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
font-family: Nunito;
font-weight: 700;
}

.markdown h4,
.markdown h5,
.markdown h6 {
font-size: 1.25rem !important;
}
.markdown table {
border: 1px solid #e4e4e7;
border-radius: 2px;
Expand All @@ -53,3 +66,18 @@
padding: 0.5rem 2rem;
border: 1px solid #d1d5db;
}

.markdown ul {
list-style-type: circle;
list-style-position: inside;
}

.markdown ol {
list-style-type: decimal;
list-style-position: inside;
}

.markdown li::marker {
color: #3b82f6;
font-weight: bold;
}
4 changes: 4 additions & 0 deletions src/app/api/getevents/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ export async function POST(req: NextRequest) {
imageURL: e.data().imageURL,
description: e.data().description,
category: e.data().category,
participated:
userParticipated && Array.isArray(userParticipated)
? userParticipated.includes(e.id)
: false,
}));

return NextResponse.json({
Expand Down
5 changes: 1 addition & 4 deletions src/app/api/getquestion/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ export async function POST(req: NextRequest) {
{ status: 404 },
);
} else if (now > endTime) {
return NextResponse.json(
{ error: "The exam was over decades ago" },
{ status: 404 },
);
return NextResponse.json({ error: "The exam is over" }, { status: 404 });
}

if ((data.ndc_id == "" || data.ndc_id == "none") && intra) {
Expand Down
2 changes: 0 additions & 2 deletions src/app/api/memberdata/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export async function POST(req: NextRequest) {

const member = await memberDOC.json();

console.log(member);

if (!memberDOC.ok) {
return NextResponse.json(
{ error: "No such Club Member exists" },
Expand Down
133 changes: 0 additions & 133 deletions src/app/club/(user-handle)/delete-account/page.tsx

This file was deleted.

Loading
Loading