diff --git a/app/hackathons/[id]/page.tsx b/app/hackathons/[id]/page.tsx
index 6330ac6c..7ee9bb8c 100644
--- a/app/hackathons/[id]/page.tsx
+++ b/app/hackathons/[id]/page.tsx
@@ -235,20 +235,21 @@ export default function HackathonDetailPage() {
rulesArray = Object.values(hackathon.rules).map(String);
}
- // Default rules if no data is provided
+ // Don't show rules if no data is provided
if (rulesArray.length === 0) {
- rulesArray = [
- "All team members must be registered participants",
- "Original work only - no plagiarism or pre-built solutions",
- "Teams must work independently without external help",
- "All code must be written during the hackathon period",
- "Presentations must be completed within the allocated time",
- "Judges' decisions are final and binding",
- "Respect all participants and maintain professional conduct",
- "Follow the specified submission format and deadlines",
- "No use of proprietary or licensed software without permission",
- "Teams must be present for the entire duration of the event"
- ];
+ return (
+
+
+
+
Rules Coming Soon
+
+ The rules and guidelines for this hackathon will be announced soon. Stay tuned!
+
+
+
+ );
}
return (
@@ -319,17 +320,19 @@ export default function HackathonDetailPage() {
scheduleArray = Object.entries(hackathon.schedule).map(([date, label]) => ({ date, label: String(label) }));
}
- // Default schedule if no data is provided
+ // Don't show schedule if no data is provided
if (scheduleArray.length === 0) {
- scheduleArray = [
- { date: "Day 1 - Opening", label: "Registration & Team Formation" },
- { date: "Day 1 - Morning", label: "Opening Ceremony & Problem Statement Release" },
- { date: "Day 1 - Afternoon", label: "Coding & Development Phase" },
- { date: "Day 1 - Evening", label: "Mentorship Sessions & Networking" },
- { date: "Day 2 - Morning", label: "Continued Development & Prototyping" },
- { date: "Day 2 - Afternoon", label: "Final Submissions & Presentations" },
- { date: "Day 2 - Evening", label: "Judging & Award Ceremony" }
- ];
+ return (
+
+
+
+
Schedule Coming Soon
+
+ The detailed schedule for this hackathon will be announced soon. Stay tuned!
+
+
+
+ );
}
return (
@@ -383,8 +386,23 @@ export default function HackathonDetailPage() {
)
}
- const prizeAmount = hackathon?.prize || hackathon?.price || "₹50,000+";
- const prizeDetails = hackathon?.prize_details || "Exciting rewards, sponsor goodies, and recognition.";
+ const prizeAmount = hackathon?.prize || hackathon?.price || "";
+ const prizeDetails = hackathon?.prize_details || "";
+
+ // If no prize information is provided at all
+ if (!prizeAmount && !prizeDetails) {
+ return (
+
+
+
+
Prize Details Coming Soon
+
+ Prize information will be announced soon. Stay tuned for exciting rewards!
+
+
+
+ );
+ }
return (
@@ -396,72 +414,16 @@ export default function HackathonDetailPage() {
{/* Main Prize */}
-
{prizeAmount}
-
{prizeDetails}
-
-
- {/* Prize Categories */}
-
-
-
🥇
-
1st Place
-
Grand Prize Winner
-
-
-
🥈
-
2nd Place
-
Runner Up
-
-
-
🥉
-
3rd Place
-
Second Runner Up
-
-
-
- {/* Additional Rewards */}
-
-
Additional Rewards
-
-
-
🏆
-
-
Trophy & Certificates
-
Official recognition
-
-
-
-
💼
-
-
Internship Opportunities
-
With partner companies
-
-
-
-
🎁
-
-
Sponsor Goodies
-
Swag bags & merchandise
-
-
-
-
🌟
-
-
Networking
-
Connect with industry experts
-
+ {prizeAmount && (
+
{prizeAmount}
+ )}
+ {prizeDetails ? (
+
+ {prizeDetails}
-
-
-
-
-
💡 Pro Tips:
-
-
• Focus on innovation and problem-solving
-
• Present your solution clearly and confidently
-
• Network with other participants and mentors
-
• Have fun and learn from the experience!
-
+ ) : prizeAmount && (
+
Detailed prize breakdown coming soon!
+ )}
@@ -492,50 +454,19 @@ export default function HackathonDetailPage() {
faqArray = Object.entries(hackathon.faq).map(([question, answer]) => ({ question, answer: String(answer) }));
}
- // Default FAQ if no data is provided
+ // Don't show FAQ if no data is provided
if (faqArray.length === 0) {
- faqArray = [
- {
- question: "Who can participate in this hackathon?",
- answer: "This hackathon is open to all students, professionals, and coding enthusiasts. Whether you're a beginner or an expert, everyone is welcome to participate and showcase their skills."
- },
- {
- question: "What is the team size requirement?",
- answer: "Teams can consist of 1-5 members. You can participate individually or form a team with friends or colleagues. Team formation will be facilitated during the opening ceremony."
- },
- {
- question: "What technologies can I use?",
- answer: "You can use any programming language, framework, or technology stack of your choice. The focus is on innovation and problem-solving rather than specific technologies."
- },
- {
- question: "Do I need to bring my own equipment?",
- answer: "Yes, please bring your own laptop and any necessary peripherals. We'll provide power outlets and internet connectivity. Some hardware components may be available on request."
- },
- {
- question: "How will the judging process work?",
- answer: "Projects will be evaluated based on innovation, technical implementation, user experience, and presentation. A panel of industry experts will judge the final submissions."
- },
- {
- question: "What if I have dietary restrictions?",
- answer: "We'll provide meals and snacks throughout the event. Please inform us about any dietary restrictions during registration, and we'll accommodate your needs."
- },
- {
- question: "Can I work on a pre-existing project?",
- answer: "No, all work must be original and created during the hackathon period. You can plan and research beforehand, but coding and development must start after the problem statement is released."
- },
- {
- question: "What happens if I need help during the hackathon?",
- answer: "Mentors will be available throughout the event to provide guidance and answer questions. You can also reach out to the organizing team for any technical or logistical support."
- },
- {
- question: "How do I submit my project?",
- answer: "Detailed submission guidelines will be provided during the opening ceremony. Generally, you'll need to submit your code repository, a demo video, and present your solution to the judges."
- },
- {
- question: "What are the prizes and rewards?",
- answer: "Winners will receive cash prizes, trophies, certificates, and potential internship opportunities with partner companies. All participants will receive certificates and networking opportunities."
- }
- ];
+ return (
+
+
+
+
FAQ Coming Soon
+
+ Frequently asked questions will be added soon. For now, feel free to contact the organizers with any questions!
+
@@ -466,6 +615,215 @@ export function HackathonForm({ company, hackathon, mode, onSuccess }: Hackathon
+ {/* Social Media Links */}
+
+
+ Social Media & Links
+
+ Add social media links for participants to connect
+
+
+
+