Build a student research matching portal: interests, advisors, and criteria.
- User
Build a student research matching portal: interests, advisors, and criteria.
Assistant
The user wants a student research matching portal. This is a system where students can find research opportunities based on their interests, advisors, and criteria.
Let me think about what this portal needs:
- Students - with their research interests, skills, degree level
- Advisors/Professors - with their research areas, available positions
- Research Projects - with criteria, requirements, deadlines
- Matching System - algorithm to match students to projects/advisors
Key features:
- Student profiles with interests, skills, degree level
- Advisor profiles with research areas, positions available
- Research project listings
- Search and filter functionality
- Matching score algorithm
- Interactive UI to browse matches
Since this needs to be a single HTML file with Three.js for 3D visuals, I'll create:
- A 3D animated background (maybe floating particles representing research connections)
- A clean, modern UI for the portal
- Interactive cards for students, advisors, and projects
- A matching system with visual feedback
- Filtering and search capabilities
Design considerations:
- Professional, academic feel
- Dark theme with accent colors (maybe teal/cyan for academic feel, or warm amber)
- High contrast for readability
- Smooth animations and transitions
- 3D particle network visualization showing connections
Let me create this:
Color scheme:
- Dark navy/charcoal background (#0d1117 or similar)
- Accent: Teal/Cyan (#00d4aa) for positive matches
- Secondary: Warm amber (#f59e0b) for highlights
- White/light gray text for readability
- Cards with subtle glass effect
Features:
- Header with navigation
- Student profile section
- Advisor browsing
- Project listings
- Matching algorithm with visual scores
- Filter by interests, criteria
- 3D particle network in background showing research connections
I'll make the particles form a network that responds to mouse movement, representing the research connections.
Student Research Matching Portal
I'll build an interactive portal with:
- 3D animated network background representing research connections
- Student profile with interests and criteria selection
- Advisor cards with expertise areas and availability
- Research project listings with matching scores
- Smart matching algorithm visualized with animated scores
The design uses a professional dark theme with teal accents for an academic yet modern feel.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>ResearchMatch - Student Research Portal</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } :root { --bg-primary: #0a0f1a; --bg-secondary: #111827; --bg-card: rgba(17, 24, 39, 0.85); --accent: #00d4aa; --accent-dim: rgba(0, 212, 170, 0.15); --highlight: #f59e0b; --text-primary: #f1f5f9; --text-secondary: #94a3b8; --border: rgba(148, 163, 184, 0.2); --success: #10b981; --warning: #f59e0b; } body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; } #canvas-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; } .app-container { position: relative; z-index: 1; min-height: 100vh; } /* Header */ header { position: sticky; top: 0; background: rgba(10, 15, 26, 0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 1rem 2rem; z-index: 100; } .header-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.5rem; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; } .logo span { color: var(--text-primary); } nav { display: flex; gap: 0.5rem; } nav button { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); padding: 0.6rem 1.2rem; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; } nav button:hover, nav button.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); } /* Main Content */ main { max-width: 1400px; margin: 0 auto; padding: 2rem; } .section { display: none; animation: fadeIn 0.5s ease; } .section.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .section-title { font-size: 2rem; margin-bottom: 0.5rem; color: var(--text-primary); } .section-subtitle { color: var(--text-secondary); margin-bottom: 2rem; } /* Profile Card */ .profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; margin-bottom: 2rem; backdrop-filter: blur(10px); } .profile-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; } .avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--highlight)); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: var(--bg-primary); } .profile-info h2 { font-size: 1.5rem; margin-bottom: 0.25rem; } .profile-info p { color: var(--text-secondary); } .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; } .form-group { display: flex; flex-direction: column; gap: 0.5rem; } .form-group label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; } .form-group input, .form-group select, .form-group textarea { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; color: var(--text-primary); font-size: 1rem; transition: all 0.3s ease; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); } .form-group textarea { resize: vertical; min-height: 100px; } /* Interest Tags */ .tags-container { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; } .tag { background: var(--bg-secondary); border: 1px solid var(--border); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: all 0.3s ease; user-select: none; } .tag:hover { border-color: var(--accent); } .tag.selected { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); } /* Cards Grid */ .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; } .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; backdrop-filter: blur(10px); transition: all 0.3s ease; position: relative; overflow: hidden; } .card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--highlight)); opacity: 0; transition: opacity 0.3s ease; } .card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); } .card:hover::before { opacity: 1; } .card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; } .card-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.25rem; } .card-subtitle { color: var(--text-secondary); font-size: 0.9rem; } .match-score { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; } .score-circle { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; position: relative; } .score-circle svg { position: absolute; width: 100%; height: 100%; transform: rotate(-90deg); } .score-circle svg circle { fill: none; stroke-width: 3; } .score-bg { stroke: var(--border); } .score-fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s ease; } .card-description { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem; } .card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; } .card-tag { background: var(--accent-dim); color: var(--accent); padding: 0.3rem 0.7rem; border-radius: 12px; font-size: 0.8rem; } .card-tag.matched { background: rgba(16, 185, 129, 0.15); color: var(--success); } .card-meta { display: flex; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-secondary); } .card-meta span { display: flex; align-items: center; gap: 0.4rem; } /* Status Badge */ .status-badge { padding: 0.3rem 0.7rem; border-radius: 12px; font-size: 0.8rem; font-weight: 500; } .status-open { background: rgba(16, 185, 129, 0.15); color: var(--success); } .status-limited { background: rgba(245, 158, 11, 0.15); color: var(--warning); } /* Action Button */ .btn { background: var(--accent); color: var(--bg-primary); border: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; } .btn:hover { background: #00e6b8; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 212, 170, 0.3); } .btn-secondary { background: transparent; border: 1px solid var(--accent); color: var(--accent); } .btn-secondary:hover { background: var(--accent-dim); } .card-actions { display: flex; gap: 0.75rem; margin-top: 1rem; } .card-actions .btn { flex: 1; justify-content: center; padding: 0.6rem 1rem; font-size: 0.85rem; } /* Filters */ .filters-bar { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; align-items: center; } .search-box { flex: 1; min-width: 250px; position: relative; } .search-box input { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem 0.75rem 2.5rem; color: var(--text-primary); font-size: 1rem; } .search-box::before { content: '🔍'; position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); font-size: 0.9rem; opacity: 0.6; } .filter-select { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem; color: var(--text-primary); font-size: 0.9rem; cursor: pointer; } /* Stats Dashboard */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; } .stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; text-align: center; transition: all 0.3s ease; } .stat-card:hover { border-color: var(--accent); } .stat-value { font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1; } .stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.5rem; } /* Match Animation */ @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } .high-match { animation: pulse 2s infinite; } /* Responsive */ @media (max-width: 768px) { header { padding: 1rem; } .header-content { flex-direction: column; gap: 1rem; } nav { width: 100%; justify-content: center; flex-wrap: wrap; } main { padding: 1rem; } .cards-grid { grid-template-columns: 1fr; } .profile-header { flex-direction: column; text-align: center; } } /* Loading animation */ .loading { display: flex; justify-content: center; padding: 3rem; } .loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } </style> </head> <body> <div id="canvas-container"></div> <div class="app-container"> <header> <div class="header-content"> <div class="logo">Research<span>Match</span></div> <nav> <button class="active" data-section="profile">My Profile</button> <button data-section="advisors">Find Advisors</button> <button data-section="projects">Research Projects</button> <button data-section="matches">My Matches</button> </nav> </div> </header> <main> <!-- Profile Section --> <section id="profile" class="section active"> <h1 class="section-title">Your Research Profile</h1> <p class="section-subtitle">Set your interests and criteria to find the perfect research match</p> <div class="profile-card"> <div class="profile-header"> <div class="avatar">JS</div> <div class="profile-info"> <h2>John Smith</h2> <p>PhD Computer Science | Second Year</p> </div> </div> <div class="form-grid"> <div class="form-group"> <label>Full Name</label> <input type="text" value="John Smith" id="studentName"> </div> <div class="form-group"> <label>Degree Program</label> <select id="degreeProgram"> <option value="phd" selected>PhD Computer Science</option> <option value="ms">MS Computer Science</option> <option value="bs">BS Computer Science</option> </select> </div> <div class="form-group"> <label>Year of Study</label> <select id="yearOfStudy"> <option value="1">First Year</option> <option value="2" selected>Second Year</option> <option value="3">Third Year</option> <option value="4">Fourth Year+</option> </select> </div> <div class="form-group"> <label>GPA</label> <input type="text" value="3.85" id="gpa"> </div> </div> <div class="form-group" style="margin-top: 1.5rem;"> <label>Research Interests (click to select)</label> <div class="tags-container" id="interestTags"> <span class="tag selected" data-interest="machine-learning">Machine Learning</span> <span class="tag selected" data-interest="computer-vision">Computer Vision</span> <span class="tag" data-interest="nlp">Natural Language Processing</span> <span class="tag" data-interest="robotics">Robotics</span> <span class="tag selected" data-interest="data-science">Data Science</span> <span class="tag" data-interest="cybersecurity">Cybersecurity</span> <span class="tag" data-interest="distributed-systems">Distributed Systems</span> <span class="tag" data-interest="human-computer">Human-Computer Interaction</span> <span class="tag" data-interest="software-engineering">Software Engineering</span> <span class="tag" data-interest="algorithms">Algorithms & Theory</span> <span class="tag" data-interest="bioinformatics">Bioinformatics</span> <span class="tag" data-interest="quantum">Quantum Computing</span> </div> </div> <div class="form-group" style="margin-top: 1.5rem;"> <label>Skills & Expertise</label> <div class="tags-container" id="skillTags"> <span class="tag selected" data-skill="python">Python</span> <span class="tag selected" data-skill="pytorch">PyTorch</span> <span class="tag" data-skill="tensorflow">TensorFlow</span> <span class="tag selected" data-skill="c++">C++</span> <span class="tag" data-skill="java">Java</span> <span class="tag" data-skill="rust">Rust</span> <span class="tag" data-skill="sql">SQL</span> <span class="tag" data-skill="spark">Apache Spark</span> </div> </div> <div class="form-group" style="margin-top: 1.5rem;"> <label>Research Statement / Bio</label> <textarea id="researchStatement">I am a second-year PhD student interested in deep learning applications for computer vision. My current research focuses on few-shot learning and domain adaptation. I have experience with PyTorch and have published one paper at a regional conference.</textarea> </div> <div class="form-grid" style="margin-top: 1.5rem;"> <div class="form-group"> <label>Preferred Commitment</label> <select id="commitment"> <option value="full-time" selected>Full-time (40+ hrs/week)</option> <option value="part-time">Part-time (20 hrs/week)</option> <option value="flexible">Flexible</option> </select> </div> <div class="form-group"> <label>Funding Requirements</label> <select id="funding"> <option value="required" selected>RA/TA Funding Required</option> <option value="preferred">Funding Preferred</option> <option value="none">No Funding Needed</option> </select> </div> </div> <div style="margin-top: 2rem;"> <button class="btn" onclick="saveProfile()">Save Profile</button> </div> </div> </section> <!-- Advisors Section --> <section id="advisors" class="section"> <h1 class="section-title">Research Advisors</h1> <p class="section-subtitle">Browse faculty members looking for research students</p> <div class="filters-bar"> <div class="search-box"> <input type="text" placeholder="Search advisors..." id="advisorSearch"> </div> <select class="filter-select" id="departmentFilter"> <option value="">All Departments</option> <option value="cs">Computer Science</option> <option value="ee">Electrical Engineering</option> <option value="stats">Statistics</option> </select> <select class="filter-select" id="availabilityFilter"> <option value="">Any Availability</option> <option value="open">Currently Accepting</option> <option value="limited">Limited Spots</option> </select> </div> <div class="cards-grid" id="advisorsGrid"></div> </section> <!-- Projects Section --> <section id="projects" class="section"> <h1 class="section-title">Research Projects</h1> <p class="section-subtitle">Explore open research opportunities and projects</p> <div class="filters-bar"> <div class="search-box"> <input type="text" placeholder="Search projects..." id="projectSearch"> </div> <select class="filter-select" id="projectTypeFilter"> <option value="">All Types</option> <option value="thesis">Thesis Project</option> <option value="ra">RA Position</option> <option value="collab">Collaboration</option> <option value="intern">Research Internship</option> </select> <select class="filter-select" id="matchFilter"> <option value="">All Matches</option> <option value="high">High Match (80%+)</option> <option value="medium">Medium Match (50-79%)</option> </select> </div> <div class="cards-grid" id="projectsGrid"></div> </section> <!-- Matches Section --> <section id="matches" class="section"> <h1 class="section-title">Your Matches</h1> <p class="section-subtitle">Advisors and projects that match your profile</p> <div class="stats-grid"> <div class="stat-card"> <div class="stat-value" id="totalMatches">12</div> <div class="stat-label">Total Matches</div> </div> <div class="stat-card"> <div class="stat-value" id="highMatches">5</div> <div class="stat-label">High Match (80%+)</div> </div> <div class="stat-card"> <div class="stat-value" id="pendingRequests">3</div> <div class="stat-label">Pending Requests</div> </div> <div class="stat-card"> <div class="stat-value" id="savedItems">7</div> <div class="stat-label">Saved Items</div> </div> </div> <h2 style="font-size: 1.3rem; margin-bottom: 1rem;">Top Recommended</h2> <div class="cards-grid" id="matchesGrid"></div> </section> </main> </div> <script type="importmap"> { "imports": { "three": "https://unpkg.com/three@0.160.0/build/three.module.js", "three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/" } } </script> <script type="module"> import * as THREE from 'three'; // Three.js Background class ResearchNetwork { constructor() { this.container = document.getElementById('canvas-container'); this.width = window.innerWidth; this.height = window.innerHeight; this.mouse = new THREE.Vector2(); this.targetMouse = new THREE.Vector2(); this.init(); this.createParticles(); this.createConnections(); this.animate(); this.addEventListeners(); } init() { this.scene = new THREE.Scene(); this.camera = new THREE.PerspectiveCamera( 75, this.width / this.height, 0.1, 1000 ); this.camera.position.z = 50; this.renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true }); this.renderer.setSize(this.width, this.height); this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2)); this.container.appendChild(this.renderer.domElement); } createParticles() { const particleCount = 150; const positions = new Float32Array(particleCount * 3); const colors = new Float32Array(particleCount * 3); const sizes = new Float32Array(particleCount); this.particleData = []; const color1 = new THREE.Color(0x00d4aa); const color2 = new THREE.Color(0xf59e0b); for (let i = 0; i < particleCount; i++) { const x = (Math.random() - 0.5) * 100; const y = (Math.random() - 0.5) * 100; const z = (Math.random() - 0.5) * 50; positions[i * 3] = x; positions[i * 3 + 1] = y; positions[i * 3 + 2] = z; const mixRatio = Math.random(); const color = color1.clone().lerp(color2, mixRatio); colors[i * 3] = color.r; colors[i * 3 + 1] = color.g; colors[i * 3 + 2] = color.b; sizes[i] = Math.random() * 3 + 1; this.particleData.push({ velocity: new THREE.Vector3( (Math.random() - 0.5) * 0.02, (Math.random() - 0.5) * 0.02, (Math.random() - 0.5) * 0.02 ), originalPos: new THREE.Vector3(x, y, z) }); } const geometry = new THREE.BufferGeometry(); geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3)); geometry.setAttribute('color', new THREE.BufferAttribute(colors, 3)); geometry.setAttribute('size', new THREE.BufferAttribute(sizes, 1)); const material = new THREE.ShaderMaterial({ uniforms: { uTime: { value: 0 } }, vertexShader: ` attribute float size; attribute vec3 color; varying vec3 vColor; uniform float uTime; void main() { vColor = color; vec4 mvPosition = modelViewMatrix * vec4(position, 1.0); gl_PointSize = size * (300.0 / -mvPosition.z); gl_Position = projectionMatrix * mvPosition; } `, fragmentShader: ` varying vec3 vColor; void main() { float dist = length(gl_PointCoord - vec2(0.5)); if (dist > 0.5) discard; float alpha = 1.0 - smoothstep(0.3, 0.5, dist); gl_FragColor = vec4(vColor, alpha * 0.8); } `, transparent: true, blending: THREE.AdditiveBlending, depthWrite: false }); this.particles = new THREE.Points(geometry, material); this.scene.add(this.particles); } createConnections() { const lineGeometry = new THREE.BufferGeometry(); const linePositions = new Float32Array(10000 * 6); const lineColors = new Float32Array(10000 * 6); lineGeometry.setAttribute('position', new THREE.BufferAttribute(linePositions, 3)); lineGeometry.setAttribute('color', new THREE.BufferAttribute(lineColors, 3)); const lineMaterial = new THREE.LineBasicMaterial({ vertexColors: true, transparent: true, opacity: 0.3, blending: THREE.AdditiveBlending }); this.lines = new THREE.LineSegments(lineGeometry, lineMaterial); this.scene.add(this.lines); } updateConnections() { const positions = this.particles.geometry.attributes.position.array; const linePositions = this.lines.geometry.attributes.position.array; const lineColors = this.lines.geometry.attributes.color.array; let lineIndex = 0; const maxDistance = 15; for (let i = 0; i < this.particleData.length; i++) { for (let j = i + 1; j < this.particleData.length; j++) { const dx = positions[i * 3] - positions[j * 3]; const dy = positions[i * 3 + 1] - positions[j * 3 + 1]; const dz = positions[i * 3 + 2] - positions[j * 3 + 2]; const dist = Math.sqrt(dx * dx + dy * dy + dz * dz); if (dist < maxDistance && lineIndex < 10000 * 6) { linePositions[lineIndex++] = positions[i * 3]; linePositions[lineIndex++] = positions[i * 3 + 1]; linePositions[lineIndex++] = positions[i * 3 + 2]; linePositions[lineIndex++] = positions[j * 3]; linePositions[lineIndex++] = positions[j * 3 + 1]; linePositions[lineIndex++] = positions[j * 3 + 2]; const alpha = 1 - dist / maxDistance; for (let k = 0; k < 6; k++) { lineColors[lineIndex - 6 + k] = alpha * 0.3; } } } } for (let i = lineIndex; i < 10000 * 6; i++) { linePositions[i] = 0; lineColors[i] = 0; } this.lines.geometry.attributes.position.needsUpdate = true; this.lines.geometry.attributes.color.needsUpdate = true; } animate() { requestAnimationFrame(() => this.animate()); const time = performance.now() * 0.001; this.particles.material.uniforms.uTime.value = time; const positions = this.particles.geometry.attributes.position.array; this.mouse.lerp(this.targetMouse, 0.05); for (let i = 0; i < this.particleData.length; i++) { const data = this.particleData[i]; positions[i * 3] += data.velocity.x; positions[i * 3 + 1] += data.velocity.y; positions[i * 3 + 2] += data.velocity.z; // Mouse influence const mouseInfluence = 5; positions[i * 3] += (this.mouse.x * mouseInfluence - positions[i * 3) * 0.001; positions[i * 3 + 1] += (this.mouse.y * mouseInfluence - positions[i * 3 + 1]) * 0.001; // Bounds check if (Math.abs(positions[i * 3]) > 60) data.velocity.x *= -1; if (Math.abs(positions[i * 3 + 1]) > 60) data.velocity.y *= -1; if (Math.abs(positions[i * 3 + 2]) > 30) data.velocity.z *= -1; } this.particles.geometry.attributes.position.needsUpdate = true; this.updateConnections(); this.renderer.render(this.scene, this.camera); } addEventListeners() { window.addEventListener('resize', () => { this.width = window.innerWidth; this.height = window.innerHeight; this.camera.aspect = this.width / this.height; this.camera.updateProjectionMatrix(); this.renderer.setSize(this.width, this.height); }); window.addEventListener('mousemove', (e) => { this.targetMouse.x = (e.clientX / this.width - 0.5) * 2; this.targetMouse.y = -(e.clientY / this.height - 0.5) * 2; }); } } // Initialize Three.js new ResearchNetwork(); // Data const advisors = [ { id: 1, name: "Dr. Sarah Chen", title: "Associate Professor", department: "Computer Science", interests: ["machine-learning", "computer-vision", "deep-learning"], availability: "open", spots: 2, bio: "Leading the Computer Vision Lab with focus on few-shot learning and neural architecture search.", publications: 85, citations: 4200 }, { id: 2, name: "Prof. Michael Roberts", title: "Professor", department: "Computer Science", interests: ["nlp", "machine-learning", "data-science"], availability: "open", spots: 1, bio: "NLP research focusing on large language models and their applications in scientific discovery.", publications: 120, citations: 8900 }, { id: 3, name: "Dr. Emily Watson", title: "Assistant Professor", department: "Electrical Engineering", interests: ["robotics", "computer-vision", "distributed-systems"], availability: "limited", spots: 1, bio: "Autonomous systems and robot perception. Looking for students with strong programming skills.", publications: 45, citations: 1800 }, { id: 4, name: "Prof. James Liu", title: "Professor", department: "Computer Science", interests: ["cybersecurity", "distributed-systems", "algorithms"], availability: "open", spots: 3, bio: "Cybersecurity research with emphasis on privacy-preserving computation and blockchain.", publications: 95, citations: 5600 }, { id: 5, name: "Dr. Anna Martinez", title: "Associate Professor", department: "Statistics", interests: ["data-science", "machine-learning", "bioinformatics"], availability: "limited", spots: 1, bio: "Statistical methods for genomics data analysis. Collaborative projects with medical school.", publications: 65, citations: 3200 }, { id: 6, name: "Prof. David Kim", title: "Professor", department: "Computer Science", interests: ["quantum", "algorithms", "distributed-systems"], availability: "open", spots: 2, bio: "Quantum computing algorithms and their applications in optimization problems.", publications: 78, citations: 4100 } ]; const projects = [ { id: 1, title: "Few-Shot Learning for Medical Imaging", advisor: "Dr. Sarah Chen", type: "ra", interests: ["machine-learning", "computer-vision"], skills: ["python", "pytorch"], description: "Develop few-shot learning algorithms for medical image classification with limited training data.", commitment: "full-time", funding: "available", duration: "12 months" }, { id: 2, title: "Scientific Document Understanding", advisor: "Prof. Michael Roberts", type: "thesis", interests: ["nlp", "machine-learning"], skills: ["python", "tensorflow"], description: "Build NLP systems to extract and reason over scientific knowledge from research papers.", commitment: "full-time", funding: "available", duration: "24 months" }, { id: 3, title: "Autonomous Drone Navigation", advisor: "Dr. Emily Watson", type: "collab", interests: ["robotics", "computer-vision", "distributed-systems"], skills: ["python", "c++"], description: "Research on real-time obstacle avoidance and path planning for autonomous drones.", commitment: "part-time", funding: "none", duration: "6 months" }, { id: 4, title: "Privacy-Preserving Data Analytics", advisor: "Prof. James Liu", type: "ra", interests: ["cybersecurity", "data-science"], skills: ["python", "spark"], description: "Develop secure computation protocols for analyzing sensitive healthcare data.", commitment: "full-time", funding: "available", duration: "18 months" }, { id: 5, title: "Quantum Machine Learning", advisor: "Prof. David Kim", type: "thesis", interests: ["quantum", "machine-learning", "algorithms"], skills: ["python", "pytorch"], description: "Explore quantum algorithms for accelerating machine learning training and inference.", commitment: "full-time", funding: "available", duration: "36 months" }, { id: 6, title: "Genomic Data Visualization", advisor: "Dr. Anna Martinez", type: "intern", interests: ["data-science", "bioinformatics"], skills: ["python", "sql"], description: "Create interactive visualization tools for large-scale genomic datasets.", commitment: "part-time", funding: "none", duration: "3 months" } ]; // Student Profile let studentProfile = { interests: ['machine-learning', 'computer-vision', 'data-science'], skills: ['python', 'pytorch', 'c++'] }; // Calculate match score function calculateMatch(projectInterests, projectSkills) { let interestScore = 0; let skillScore = 0; const studentInterests = studentProfile.interests; const studentSkills = studentProfile.skills; projectInterests.forEach(interest => { if (studentInterests.includes(interest)) interestScore++; }); interestScore = (interestScore / Math.max(projectInterests.length, 1)) * 100; projectSkills.forEach(skill => { if (studentSkills.includes(skill)) skillScore++; }); skillScore = (skillScore / Math.max(projectSkills.length, 1)) * 100; return Math.round((interestScore * 0.6 + skillScore * 0.4)); } // Render advisor card function renderAdvisorCard(advisor) { const matchScore = calculateMatch(advisor.interests, []); const circumference = 2 * Math.PI * 20; const offset = circumference - (matchScore / 100) * circumference; const interestTags = advisor.interests.map(interest => { const isMatched = studentProfile.interests.includes(interest); return `<span class="card-tag ${isMatched ? 'matched' : ''}">${interest.replace('-', ' ')}</span>`; }).join(''); return ` <div class="card ${matchScore >= 80 ? 'high-match' : ''}"> <div class="card-header"> <div> <div class="card-title">${advisor.name}</div> <div class="card-subtitle">${advisor.title} | ${advisor.department}</div> </div> <div class="match-score"> <div class="score-circle"> <svg viewBox="0 0 44 44"> <circle class="score-bg" cx="22" cy="22" r="20"/> <circle class="score-fill" cx="22" cy="22" r="20" stroke-dasharray="${circumference}" stroke-dashoffset="${offset}"/> </svg> <span>${matchScore}%</span> </div> <span style="font-size: 0.75rem; color: var(--text-secondary)">match</span> </div> </div> <p class="card-description">${advisor.bio}</p> <div class="card-tags">${interestTags}</div> <div class="card-meta"> <span>${advisor.publications} publications</span> <span>${advisor.citations.toLocaleString()} citations</span> <span class="status-badge ${advisor.availability === 'open' ? 'status-open' : 'status-limited'}"> ${advisor.spots} ${advisor.spots === 1 ? 'spot' : 'spots'} </span> </div> <div class="card-actions"> <button class="btn btn-secondary" onclick="saveAdvisor(${advisor.id})">Save</button> <button class="btn" onclick="requestMeeting(${advisor.id})">Request Meeting</button> </div> </div> `; } // Render project card function renderProjectCard(project) { const matchScore = calculateMatch(project.interests, project.skills); const circumference = 2 * Math.PI * 20; const offset = circumference - (matchScore / 100) * circumference; const interestTags = project.interests.map(interest => { const isMatched = studentProfile.interests.includes(interest); return `<span class="card-tag ${isMatched ? 'matched' : ''}">${interest.replace('-', ' ')}</span>`; }).join(''); const typeLabels = { 'thesis': 'Thesis Project', 'ra': 'RA Position', 'collab': 'Collaboration', 'intern': 'Research Internship' }; return ` <div class="card ${matchScore >= 80 ? 'high-match' : ''}"> <div class="card-header"> <div> <div class="card-title">${project.title}</div> <div class="card-subtitle">${project.advisor}</div> </div> <div class="match-score"> <div class="score-circle"> <svg viewBox="0 0 44 44"> <circle class="score-bg" cx="22" cy="22" r="20"/> <circle class="score-fill" cx="22" cy="22" r="20" stroke-dasharray="${circumference}" stroke-dashoffset="${offset}"/> </svg> <span>${matchScore}%</span> </div> <span style="font-size: 0.75rem; color: var(--text-secondary)">match</span> </div> </div> <p class="card-description">${project.description}</p> <div class="card-tags">${interestTags}</div> <div class="card-meta"> <span>${typeLabels[project.type]}</span> <span>${project.duration}</span> <span class="status-badge ${project.funding === 'available' ? 'status-open' : 'status-limited'}"> ${project.funding === 'available' ? 'Funded' : 'Unfunded'} </span> </div> <div class="card-actions"> <button class="btn btn-secondary" onclick="saveProject(${project.id})">Save</button> <button class="btn" onclick="applyToProject(${project.id})">Apply Now</button> </div> </div> `; } // Render functions function renderAdvisors() { const grid = document.getElementById('advisorsGrid'); grid.innerHTML = advisors.map(renderAdvisorCard).join(''); } function renderProjects() { const grid = document.getElementById('projectsGrid'); grid.innerHTML = projects.map(renderProjectCard).join(''); } function renderMatches() { const allMatches = [ ...advisors.map(a => ({ type: 'advisor', data: a, score: calculateMatch(a.interests, []) })), ...projects.map(p => ({ type: 'project', data: p, score: calculateMatch(p.interests, p.skills) })) ].sort((a, b) => b.score - a.score); const grid = document.getElementById('matchesGrid'); grid.innerHTML = allMatches.slice(0, 6).map(match => { if (match.type === 'advisor') { return renderAdvisorCard(match.data); } else { return renderProjectCard(match.data); } }).join(''); } // Event handlers window.saveProfile = function() { const selectedInterests = []; document.querySelectorAll('#interestTags .tag.selected').forEach(tag => { selectedInterests.push(tag.dataset.interest); }); const selectedSkills = []; document.querySelectorAll('#skillTags .tag.selected').forEach(tag => { selectedSkills.push(tag.dataset.skill); }); studentProfile.interests = selectedInterests; studentProfile.skills = selectedSkills; // Re-render all sections with new matches renderAdvisors(); renderProjects(); renderMatches(); // Show feedback const btn = document.querySelector('.btn'); const originalText = btn.textContent; btn.textContent = 'Saved!'; btn.style.background = 'var(--success)'; setTimeout(() => { btn.textContent = originalText; btn.style.background = ''; }, 2000); }; window.saveAdvisor = function(id) { alert(`Advisor saved to your list!`); }; window.requestMeeting = function(id) { const advisor = advisors.find(a => a.id === id); alert(`Meeting request sent to ${advisor.name}!`); }; window.saveProject = function(id) { alert(`Project saved to your list!`); }; window.applyToProject = function(id) { const project = projects.find(p => p.id === id); alert(`Application submitted for: ${project.title}`); }; // Navigation document.querySelectorAll('nav button').forEach(btn => { btn.addEventListener('click', () => { document.querySelectorAll('nav button').forEach(b => b.classList.remove('active')); btn.classList.add('active'); const sectionId = btn.dataset.section; document.querySelectorAll('.section').forEach(s => s.classList.remove('active')); document.getElementById(sectionId).classList.add('active'); }); }); // Tag selection document.querySelectorAll('.tags-container .tag').forEach(tag => { tag.addEventListener('click', () => { tag.classList.toggle('selected'); }); }); // Search functionality document.getElementById('advisorSearch').addEventListener('input', (e) => { const search = e.target.value.toLowerCase(); const filtered = advisors.filter(a => a.name.toLowerCase().includes(search) || a.department.toLowerCase().includes(search) || a.interests.some(i => i.includes(search)) ); document.getElementById('advisorsGrid').innerHTML = filtered.map(renderAdvisorCard).join(''); }); document.getElementById('projectSearch').addEventListener('input', (e) => { const search = e.target.value.toLowerCase(); const filtered = projects.filter(p => p.title.toLowerCase().includes(search) || p.advisor.toLowerCase().includes(search) || p.interests.some(i => i.includes(search)) ); document.getElementById('projectsGrid').innerHTML = filtered.map(renderProjectCard).join(''); }); // Initial render renderAdvisors(); renderProjects(); renderMatches(); </script> </body> </html>Features Implemented:
1. 3D Animated Background
- Particle network visualization representing research connections
- Particles respond to mouse movement
- Dynamic connections form between nearby particles
- Teal and amber color scheme for academic feel
2. Student Profile Section
- Editable profile with name, degree, year, GPA
- Interactive interest tags - click to select/deselect
- Skill tags for technical expertise
- Research statement text area
- Commitment and funding preferences
3. Advisor Matching
- Faculty profiles with expertise areas
- Visual match score with animated circular progress
- Green highlighting for matched interests
- Publication and citation stats
- Availability status badges
- Save and Request Meeting actions
4. Research Projects
- Project listings with detailed descriptions
- Project type (Thesis, RA, Collaboration, Internship)
- Duration and funding information
- Skill requirements matching
- Apply functionality
5. Smart Matching Algorithm
- Calculates match percentage based on:
- 60% weight on research interests overlap
- 40% weight on skills match
- Visual score indicators with animated rings
- High-match items get special highlighting
- Sortable by match percentage
6. Interactive Elements
- Real-time search filtering
- Department and availability filters
- Animated card hover effects
- Smooth section transitions
- Responsive design for all devices