/* Scordemy v5 — Seven Landing Page Hero Concepts & Interactive Preview Switcher */
(() => {
const D = window.SC;
const { useState, useEffect } = React;
const { Ic, rupee, Img, useUI, ExamStatus } = window;
const PICK = [
['govt', 'ADRE 3.0'],
['apsc', 'APSC CCE'],
['police', 'Assam Police'],
['teacher', 'TET / CTET'],
['ssc', 'SSC · Bank']
];
const CONCEPTS = [
{ id: 'concept-1', num: '1', title: 'Modern Minimal', tag: 'Clean & Airy', desc: 'Pure white canvas, generous whitespace, refined typography, zero clutter.' },
{ id: 'concept-2', num: '2', title: 'Premium Education', tag: 'Academic Prestige', desc: 'Deep midnight navy, gold accents, high-contrast stately composition.' },
{ id: 'concept-3', num: '3', title: 'Modern Gradient', tag: 'Tech Forward', desc: 'Subtle ambient mesh gradient, gradient text clip, soft elevated buttons.' },
{ id: 'concept-4', num: '4', title: 'Image-Focused', tag: 'Editorial Visuals', desc: 'Centered headline leading into an elegant framed showcase of top faculty.' },
{ id: 'concept-5', num: '5', title: 'Bold Typography', tag: 'Swiss Editorial', desc: 'Extra-bold oversized display headline, high contrast, stark editorial blocks.' },
{ id: 'concept-6', num: '6', title: 'Student-Centric', tag: 'Community & Trust', desc: 'Achiever avatar monograms, warm aspirational tone, quick-start exam selector.' },
{ id: 'concept-7', num: '7', title: 'Contemporary Premium', tag: 'SaaS Refinement', desc: 'Elite Vercel/Linear polish with live status badge and floating batch card.' }
];
/* =========================================================================
STICKY CONCEPT SWITCHER TOOLBAR
========================================================================= */
function ConceptSwitcher({ activeId, onSelect }) {
const [openDrawer, setOpenDrawer] = useState(false);
const activeObj = CONCEPTS.find(c => c.id === activeId) || CONCEPTS[0];
return (
);
}
/* =========================================================================
CONCEPT 1 — MODERN MINIMAL
Clean white background, generous whitespace, centrally aligned large typography
========================================================================= */
function HeroConcept1({ g, setG }) {
const { openTalk } = useUI();
return (
ADMISSIONS OPEN FOR 2026–27 SESSIONS
The exam won't wait.
Start the right batch today.
Live and recorded classes in Assamese and English for ADRE, APSC, Assam Police, TET and SSC.
Every paid batch comes with 5 free courses, including the full GK & Current Affairs course.
Trusted by 5 Lakh+ learners across Assam
·
170+ ADRE 1.0 selections
·
509K YouTube community
);
}
/* =========================================================================
CONCEPT 2 — PREMIUM EDUCATION
Deep navy, dignified gold accents, academic prestige, elegant typography
========================================================================= */
function HeroConcept2({ g, setG }) {
const { openTalk } = useUI();
return (
★
ASSAM'S PREMIER COMPETITIVE EXAM ACADEMY
The Exam Won't Wait.
Start The Right Batch Today.
Structured civil service and recruitment mentorship in Assamese & English.
Learn from interview-cleared faculty and state-record mentors. Every batch includes 5 complimentary foundation courses.
5,00,000+
Aspirants Mentored
170+
ADRE 1.0 Selections
30+
Top State Rank Holders
);
}
/* =========================================================================
CONCEPT 3 — MODERN GRADIENT
Subtle ambient gradient mesh, gradient text clip, interactive exam pills
========================================================================= */
function HeroConcept3({ g, setG }) {
const { openTalk } = useUI();
return (
Special Offer: 5 Free Bonus Courses with Every Batch · Limited Period
The exam won't wait.
Start the right batch today.
Live and recorded classes in Assamese and English for ADRE, APSC, Assam Police, TET and SSC.
Complete syllabus mastery with daily notes and All-Assam rank test series.
{/* Interactive exam target filter bar */}
Targeting an exam? Select to preview:
{PICK.map(([k, l]) => (
setG(k)}
>
{l}
))}
);
}
/* =========================================================================
CONCEPT 4 — IMAGE-FOCUSED
Centered typography leading into a clean framed visual showcase of top faculty
========================================================================= */
function HeroConcept4({ g, setG }) {
const { openTalk } = useUI();
return (
TOP FACULTY · LIVE CLASSROOM · ASSAM
The exam won't wait.
Start the right batch today.
Learn directly from JP Sir, Rimjhim Ma'am, and Assam's most celebrated educators.
Structured live interactive classes in Assamese and English.
{/* Clean, Framed Faculty & App Showcase Canvas */}
{/* Educator 1: JP Sir */}
{ e.target.src = '/assets/v3/m/jp.jpg'; }} />
Joy Prakash Sir (JP)
Academic Director · APSC Lead
{/* Central Live Badge */}
Daily Live Classes in Assamese & English
⭐ 4.9/5 Rating · 5 Lakh+ Learners
{/* Educator 2: Rimjhim Ma'am */}
{ e.target.src = '/assets/v3/m/rimjhim.jpg'; }} />
Rimjhim Ma'am
General Studies & ADRE Lead
);
}
/* =========================================================================
CONCEPT 5 — BOLD TYPOGRAPHY
Swiss editorial style, oversized typography, stark contrast, sharp CTAs
========================================================================= */
function HeroConcept5({ g, setG }) {
const { openTalk } = useUI();
return (
ADRE 3.0 · APSC CCE · ASSAM POLICE SI · TET · SSC
THE EXAM WON'T WAIT.
START THE RIGHT BATCH TODAY.
Structured civil services and state recruitment coaching in Assamese and English.
Master the complete syllabus before the official exam notification arrives.
{/* Stark Editorial KPI Bar */}
5,00,000+
Active Learners
170+
ADRE 1.0 Selections
2,200+
Video Classes
5 FREE
Bonus Courses
);
}
/* =========================================================================
CONCEPT 6 — STUDENT-CENTRIC
Warm aspirational atmosphere, student achiever avatars, community trust
========================================================================= */
function HeroConcept6({ g, setG }) {
const { openTalk } = useUI();
return (
{/* Social Proof Avatar Cluster */}
PB
BJ
AS
MS
DK
★★★★★
170+ ADRE Selections · 5 Lakh+ Learners Joined
Your Government Career Starts Here.
Start The Right Batch Today.
Join Assam's largest learning community. Expert teachers, bilingual notes,
and weekly mock tests that build real exam temperament from Day 1.
{/* Quick Exam Selection Chips */}
Select your goal to find your batch:
{PICK.map(([k, l]) => (
setG(k)}
>
{l}
))}
);
}
/* =========================================================================
CONCEPT 7 — CONTEMPORARY PREMIUM LANDING
SaaS-inspired Linear/Vercel level refinement with live interactive snapshot
========================================================================= */
function HeroConcept7({ g, setG }) {
const { openTalk } = useUI();
const recCourse = (D.courses && D.goals && D.goals[g] && D.goals[g].ladder && D.courses[D.goals[g].ladder.full[0]]) || {};
return (
2026–27 Batches Now Open · Includes 5 Free Foundation Courses
The exam won't wait.
Start the right batch today.
Live and recorded classes in Assamese and English for ADRE, APSC, Assam Police, TET and SSC.
Complete curriculum decoded by Assam's top educators.
{/* Contemporary Floating Interactive Batch Snapshot Card */}
RECOMMENDED PATHWAY
{PICK.map(([k, l]) => (
setG(k)}
>
{l}
))}
Recommended Batch for {PICK.find(x => x[0] === g)?.[1] || 'Your Exam'}:
{recCourse.name || 'Complete Examination Preparation Batch'}
✓ Live Daily Classes
✓ Notes in Assamese & English
✓ Mock Test Series
✓ 5 Free Bonus Courses
{recCourse.price && (
{rupee(recCourse.price)}
{recCourse.mrp && {rupee(recCourse.mrp)}}
)}
View Batch Details
);
}
/* =========================================================================
HOMEPAGE PREVIEW PAGE COMPONENT
Renders the concept switcher + chosen concept hero + unchanged lower homepage
========================================================================= */
function HomepagePreviewPage({ conceptId }) {
const [activeConcept, setActiveConcept] = useState(() => {
const valid = CONCEPTS.map(c => c.id);
return valid.includes(conceptId) ? conceptId : 'concept-1';
});
const [g, setG] = useState('govt');
useEffect(() => {
if (conceptId && CONCEPTS.some(c => c.id === conceptId)) {
setActiveConcept(conceptId);
}
}, [conceptId]);
const handleSelectConcept = id => {
setActiveConcept(id);
window.location.hash = '#/homepage-preview/' + id;
};
const renderActiveHero = () => {
switch (activeConcept) {
case 'concept-1': return ;
case 'concept-2': return ;
case 'concept-3': return ;
case 'concept-4': return ;
case 'concept-5': return ;
case 'concept-6': return ;
case 'concept-7': return ;
default: return ;
}
};
return (
{/* 1. Sticky Concept Selector Bar */}
{/* 2. Selected Concept Hero Section */}
{renderActiveHero()}
{/* 3. Strict Scope Guarantee: Exact, Unchanged Homepage Content Below Hero */}
{window.HomeLowerSections ? (
) : (
<>
{window.Trust && }
{window.Offer5 && }
{window.WhyExam && }
{window.Bestsellers && }
{window.Upcoming && }
{window.PathTeaser && }
{window.HowItWorks && }
{window.Results && }
{window.ExamPick && }
{window.FinalCTA && }
>
)}
);
}
Object.assign(window, {
HomepagePreviewPage,
ConceptSwitcher,
HeroConcept1,
HeroConcept2,
HeroConcept3,
HeroConcept4,
HeroConcept5,
HeroConcept6,
HeroConcept7
});
})();