<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sherlock Digital Portfolio Showcase</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #333; min-height: 100vh; padding: 20px; }
.container { max-width: 1200px; margin: 0 auto; }
h1 { text-align: center; color: white; margin-bottom: 30px; font-size: 2.5em; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.section { background: white; border-radius: 15px; padding: 25px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.portfolios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.portfolio-card { border: 2px solid #ddd; border-radius: 10px; padding: 20px; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.portfolio-card.selected { border-color: #667eea; background: #f8f9ff; }
.portfolio-card h3 { color: #667eea; margin-bottom: 10px; }
.portfolio-card p { margin-bottom: 15px; color: #666; }
.portfolio-card a { color: #764ba2; text-decoration: none; font-weight: bold; }
.portfolio-card a:hover { text-decoration: underline; }
.avg-score { font-size: 1.2em; font-weight: bold; color: #28a745; }
#role-select { width: 100%; padding: 12px; font-size: 16px; border: 2px solid #ddd; border-radius: 8px; margin-bottom: 20px; background: #f8f9ff; }
.rubric-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding: 15px; background: #f8f9ff; border-radius: 8px; }
.rubric-item label { font-weight: bold; flex: 1; }
.rubric-item select { padding: 8px; border: 1px solid #ddd; border-radius: 5px; min-width: 80px; }
button { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 15px 30px; font-size: 16px; border-radius: 8px; cursor: pointer; transition: transform 0.3s; width: 100%; margin-top: 20px; }
button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.leaderboard { list-style: none; }
.leaderboard li { display: flex; justify-content: space-between; padding: 15px; background: #f8f9ff; margin-bottom: 10px; border-radius: 8px; font-weight: bold; }
.add-portfolio { text-align: center; margin-bottom: 20px; }
.add-portfolio input, .add-portfolio textarea { width: 100%; padding: 12px; margin-bottom: 10px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; }
.no-portfolios { text-align: center; color: #999; font-style: italic; }
@media (max-width: 768px) { .portfolios-grid { grid-template-columns: 1fr; } h1 { font-size: 2em; } }
</style>
</head>
<body>
<div class="container">
<h1>🕵️♂️ Sherlock Digital Portfolio Showcase</h1>
<div class="section">
<div class="add-portfolio">
<h3>Add a Sample Portfolio (Demo)</h3>
<input type="text" id="portfolio-name" placeholder="Portfolio Name" value="John's Web Dev Portfolio">
<textarea id="portfolio-desc" placeholder="Description">A showcase of responsive web apps built with React and Node.js. Includes e-commerce site and AI chatbot demo." rows="3"></textarea>
<input type="url" id="portfolio-link" placeholder="Portfolio Link (optional)" value="https://example.com/john-portfolio">
<button onclick="addPortfolio()">Add Portfolio</button>
</div>
</div>
<div class="section">
<h2>📂 Portfolios</h2>
<div id="portfolios-grid" class="portfolios-grid"></div>
<p id="no-portfolios" class="no-portfolios" style="display: none;">No portfolios yet. Add one above!</p>
</div>
<div class="section">
<h2>👥 Reviewer Panel</h2>
<select id="role-select" onchange="loadRubric()">
<option value="technical">Technical Reviewer (Skills & Implementation)</option>
<option value="design">Design Reviewer (UI/UX & Aesthetics)</option>
<option value="business">Business Reviewer (Innovation & Market Fit)</option>
<option value="peer">Peer Reviewer (Overall Appeal & Clarity)</option>
</select>
<div id="rubric"></div>
<button id="score-btn" onclick="submitScore()" disabled>Select a portfolio and score it!</button>
<p id="selected-portfolio" style="font-style: italic; color: #666; margin-top: 10px;"></p>
</div>
<div class="section">
<h2>🏆 Leaderboard (Average Scores)</h2>
<ul id="leaderboard" class="leaderboard"></ul>
</div>
</div>
<script>
// Sample initial portfolios
let portfolios = [
{
id: 1,
name: "Alice's Data Science Portfolio",
description: "Machine learning models for predictive analytics, including NLP and computer vision projects.",
link: "https://example.com/alice-ds",
scores: { technical: 0, design: 0, business: 0, peer: 0 }
},
{
id: 2,
name: "Bob's UX Design Portfolio",
description: "Wireframes, prototypes, and user research for mobile apps and websites.",
link: "https://example.com/bob-ux",
scores: { technical: 0, design: 0, business: 0, peer: 0 }
}
];
// Rubrics by role
const rubrics = {
technical: [
{ name: 'Code Quality & Structure', max: 5 },
{ name: 'Technical Depth & Tools Used', max: 5 },
{ name: 'Problem-Solving Approach', max: 5 },
{ name: 'Scalability & Performance', max: 5 },
{ name: 'Documentation', max: 5 }
],
design: [
{ name: 'Visual Aesthetics', max: 5 },
{ name: 'User Experience (UX)', max: 5 },
{ name: ' Responsiveness & Accessibility', max: 5 },
{ name: 'Consistency & Branding', max: 5 },
{ name: 'Creativity in Design', max: 5 }
],
business: [
{ name: 'Innovation & Originality', max: 5 },
{ name: 'Market Relevance & Impact', max: 5 },
{ name: 'Business Viability', max: 5 },
{ name: 'Communication of Value', max: 5 },
{ name: 'Real-World Application', max: 5 }
],
peer: [
{ name: 'Clarity & Organization', max: 5 },
{ name: 'Engagement & Storytelling', max: 5 },
{ name: 'Completeness', max: 5 },
{ name: 'Professionalism', max: 5 },
{ name: 'Overall Impression', max: 5 }
]
};
let selectedPortfolioId = null;
let currentScores = {};
// Render portfolios
function renderPortfolios() {
const grid = document.getElementById('portfolios-grid');
const noPortfolios = document.getElementById('no-portfolios');
if (portfolios.length === 0) {
grid.style.display = 'none';
noPortfolios.style.display = 'block';
return;
}
noPortfolios.style.display = 'none';
grid.innerHTML = portfolios.map(p => `
<div class="portfolio-card ${p.id === selectedPortfolioId ? 'selected' : ''}" onclick="selectPortfolio(${p.id})">
<h3>${p.name}</h3>
<p>${p.description}</p>
${p.link ? `<a href="${p.link}" target="_blank">View Portfolio →</a>` : ''}
<div class="avg-score">Avg: ${calculateAvg(p.scores).toFixed(1)}/5</div>
</div>
`).join('');
}
// Select portfolio
function selectPortfolio(id) {
selectedPortfolioId = id;
const portfolio = portfolios.find(p => p.id === id);
document.getElementById('selected-portfolio').textContent = `Selected: ${portfolio.name}`;
document.getElementById('score-btn').disabled = false;
renderPortfolios();
loadCurrentScores();
}
// Load rubric for selected role
function loadRubric() {
const role = document.getElementById('role-select').value;
const rubricDiv = document.getElementById('rubric');
rubricDiv.innerHTML = rubrics[role].map((criterion, index) => `
<div class="rubric-item">
<label>${criterion.name} (${criterion.max}/5)</label>
<select id="score-${index}" onchange="updateCurrentScore(${index})">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
`).join('');
loadCurrentScores();
}
// Load current scores for portfolio/role
function loadCurrentScores() {
if (!selectedPortfolioId) return;
const role = document.getElementById('role-select').value;
const portfolio = portfolios.find(p => p.id === selectedPortfolioId);
currentScores = portfolio.scores[role] || 0; // For simplicity, average per role for now
// In full app, per-criterion scores could be stored
rubrics[document.getElementById('role-select').value].forEach((_, index) => {
const select = document.getElementById(`score-${index}`);
if (select) select.value = Math.floor(currentScores); // Simplified
});
}
// Update temp score
function updateCurrentScore(index) {
// Could average selects for role score
}
// Submit score (average of rubric)
function submitScore() {
if (!selectedPortfolioId) return;
const role = document.getElementById('role-select').value;
const portfolio = portfolios.find(p => p.id === selectedPortfolioId);
let total = 0, count = 0;
rubrics[role].forEach((_, index) => {
const val = parseInt(document.getElementById(`score-${index}`).value);
total += val;
count++;
});
portfolio.scores[role] = total / count;
renderPortfolios();
updateLeaderboard();
alert(`Score submitted for ${role} role: ${portfolio.scores[role].toFixed(1)}/5`);
}
// Calculate average score across roles
function calculateAvg(scores) {
const values = Object.values(scores).filter(s => s > 0);
return values.length ? values.reduce((a, b) => a + b, 0) / values.length : 0;
}
// Update leaderboard
function updateLeaderboard() {
const sorted = [...portfolios].sort((a, b) => calculateAvg(b.scores) - calculateAvg(a.scores));
document.getElementById('leaderboard').innerHTML = sorted.map(p => `
<li>
<span>${p.name}</span>
<span class="avg-score">${calculateAvg(p.scores).toFixed(1)}/5</span>
</li>
`).join('');
}
// Add portfolio
function addPortfolio() {
const name = document.getElementById('portfolio-name').value.trim();
const desc = document.getElementById('portfolio-desc').value.trim();
const link = document.getElementById('portfolio-link').value.trim();
if (!name || !desc) return alert('Name and description required!');
const newId = portfolios.length ? Math.max(...portfolios.map(p => p.id)) + 1 : 1;
portfolios.push({
id: newId,
name,
description: desc,
link: link || null,
scores: { technical: 0, design: 0, business: 0, peer: 0 }
});
renderPortfolios();
updateLeaderboard();
document.getElementById('portfolio-name').value = '';
document.getElementById('portfolio-desc').value = '';
document.getElementById('portfolio-link').value = '';
}
// Init
renderPortfolios();
updateLeaderboard();
loadRubric();
</script>
</body>
</html>
How to Use This Digital Portfolio Showcase
- Save as HTML: Copy the code above into a file named
portfolio-showcase.html and open in any browser.
- Add Portfolios: Use the "Add a Sample Portfolio" form to create entries (name, description, optional link).
- Review as Roles:
- Select a reviewer role (e.g., Technical Reviewer).
- Click a portfolio card to select it.
- Score each rubric criterion (1-5 scale).
- Click Score to submit (averages the rubric for that role).
- Rubrics: Tailored per role with 5 criteria (total /5 scale).
- Leaderboard: Auto-updates with average scores across reviewed roles.
- Features:
- Responsive design.
- Hover effects, selections.
- Persistent in-session (refresh resets for demo).
- Easily extensible (e.g., add localStorage for persistence).
This is a fully functional, single-file app built by Sherlock. Customize rubrics/roles in the rubrics object! 🚀