Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Dashboard() {
// User hasn't registered or payment pending
router.push("/register");
break;

case Progress.incompleteRegistration:
// User registered but not in team yet
router.push("/confirmation");
Expand All @@ -36,13 +36,13 @@ export default function Dashboard() {
case Progress.notYetTeamMember:
router.push("/profile");
break;

case Progress.completeRegistration:
case Progress.completeRegistrationTeamLead:
// User is fully registered with team
router.push("/profile");
break;

default:
// Fallback to profile
router.push("/profile");
Expand All @@ -59,7 +59,7 @@ export default function Dashboard() {

if (loading) {
return (
<div className="fixed top-0 bg-white w-full h-full">
<div className="fixed top-0 bg-white dark:bg-[#0a0a0a] w-full h-full">
<Loader />
</div>
);
Expand Down
16 changes: 8 additions & 8 deletions src/app/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useAuthContext } from "@/context/AuthContext";
import addData from "@/utils/addData";
import Loader from "@/components/LoadingAnimation/page";
import { auth, db } from "@/lib/firebase";
import { useRouter } from "next/navigation";
import { useRouter, useSearchParams } from "next/navigation";
import {
collection,
doc,
Expand Down Expand Up @@ -184,7 +184,7 @@ const MyForm: React.FC = () => {

const teamDoc = teamSnapshot.docs[0];
const teamData = teamDoc.data();

// Check if team is full (max 5 members)
if (teamData.participants && teamData.participants.length >= 5) {
alert("This team is full (maximum 5 members). Please use a different referral code.");
Expand Down Expand Up @@ -227,12 +227,12 @@ const MyForm: React.FC = () => {
["payment_status"]: "captured",
["teamName"]: teamInfo?.teamName || "",
});

// If team lead, show referral code before redirecting
if (isTeamLead && generatedCode) {
alert(`Team created successfully! Your referral code is: ${generatedCode}\n\nShare this code with your team members.`);
}

// Redirect to dashboard
window.location.href = "/dashboard";
};
Expand Down Expand Up @@ -263,7 +263,7 @@ const MyForm: React.FC = () => {
<img
src="gdsc_sc.webp"
className="md:h-56 -scale-x-100 translate-y-1 md:translate-y-2"
/>
/>
</div>
<div className="md:w-4/5 md:mr-auto md:mt-10 p-[20px] pb-0 md:p-[unset] md:ml-auto bg-white dark:bg-[#141414]">
<h3 className="text-xl font-medium text-gray-900 dark:text-white">Create a developer profile</h3>
Expand Down Expand Up @@ -326,7 +326,7 @@ const MyForm: React.FC = () => {
</select>
</div>
<div className="flex flex-col md:flex-row md:space-x-8 gap-y-4 md:gap-y-[unset">

<div className="md:w-1/2 ">
<select
className="w-full register-input h-max"
Expand Down Expand Up @@ -501,7 +501,7 @@ const MyForm: React.FC = () => {
<span className="text-gray-900 dark:text-gray-300">No, I'll join a team</span>
</label>
</div>

{isTeamLead === true && (
<div className="mt-3">
<label className="block text-sm font-medium text-gray-900 dark:text-white mb-2">
Expand All @@ -522,7 +522,7 @@ const MyForm: React.FC = () => {
</p>
</div>
)}

{isTeamLead === false && (
<div className="mt-3">
<label className="block text-sm font-medium text-gray-900 dark:text-white mb-2">
Expand Down
56 changes: 52 additions & 4 deletions src/data/speakers.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"designation": "Front-end Engineer"
},
"community_title": "GDGoC GITAM Core Team",
"image": "https://res.cloudinary.com/dlhw4q5rh/image/upload/c_fill,w_200,h_200,g_face,f_auto,q_auto/v1766991615/Varshita_Palleti_xl2pyd.jpg",
"image": "https://res.cloudinary.com/dlhw4q5rh/image/upload/c_fill,w_200,h_200,g_face,f_auto,q_auto/v1767189232/Varshita_fqkkzb.jpg",
"bio": "",
"social": {
"linkedin": "",
Expand All @@ -55,7 +55,7 @@
"designation": "Backend Engineer"
},
"community_title": "GDGoC GITAM Core Team",
"image": "https://github.com/U-Jayadhar.png",
"image": "https://res.cloudinary.com/dlhw4q5rh/image/upload/c_fill,w_200,h_200,g_face,f_auto,q_auto/v1767189233/Jayadhar_Ummadisingu_gts2vw.jpg",
"bio": "",
"social": {
"linkedin": "",
Expand All @@ -74,9 +74,9 @@
"image": "https://res.cloudinary.com/dlhw4q5rh/image/upload/c_fill,w_200,h_200,g_face,f_auto,q_auto/v1766991613/Yashwanth_Kamireddi_os8fu1.jpg",
"bio": "",
"social": {
"linkedin": "",
"linkedin": "https://www.linkedin.com/in/yashwanthkamireddi/?originalSubdomain=in",
"twitter": "",
"web": ""
"web": "https://www.yashwanthkamireddi.dev/"
}
},
{
Expand Down Expand Up @@ -286,5 +286,53 @@
"twitter": "",
"web": ""
}
},
{
"id": "127",
"name": "Aashita",
"company": {
"name": "",
"designation": ""
},
"community_title": "GDGoC GITAM Team",
"image": "https://res.cloudinary.com/dlhw4q5rh/image/upload/c_fill,w_200,h_200,g_face,f_auto,q_auto/v1767021669/Aashita_fq7qbd.jpg",
"bio": "",
"social": {
"linkedin": "",
"twitter": "",
"web": ""
}
},
{
"id": "128",
"name": "Srinivasam Konchada",
"company": {
"name": "",
"designation": ""
},
"community_title": "GDGoC GITAM Team",
"image": "https://res.cloudinary.com/dlhw4q5rh/image/upload/c_fill,w_200,h_200,g_face,f_auto,q_auto/v1767021669/Srinivasam_Konchada_rfp5ku.jpg",
"bio": "",
"social": {
"linkedin": "",
"twitter": "",
"web": ""
}
},
{
"id": "129",
"name": "Dheeraj",
"company": {
"name": "",
"designation": ""
},
"community_title": "GDGoC GITAM Team",
"image": "https://res.cloudinary.com/dlhw4q5rh/image/upload/c_fill,w_200,h_200,g_face,f_auto,q_auto/v1767189232/Dheeraj_epn8gi.jpg",
"bio": "",
"social": {
"linkedin": "",
"twitter": "",
"web": ""
}
}
]