58ca4e68db
- Go backend API with full CRUD for all modules (CRM, Sales, Finance, HR, Legal, Marketing, Support, Purchase, Inventory, Projects, Automation, Analytics) - Rust analytics service with parallel report generation - C runtime with POSIX shared memory IPC - PostgreSQL schema with 30+ tables, full migrations - Redis cache, sessions, pub/sub - Kafka event streaming with Zookeeper - WebSocket hub for real-time updates - Automation engine with cron jobs, workflows, event triggers - JWT authentication, multi-tenant from start - Docker Compose with all services - Nginx reverse proxy with rate limiting - Integration tests passing - Feature gap analysis against Fortnox/Odoo/Visma Refs: BOC-001
335 lines
11 KiB
HTML
335 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="sv">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Verifiera Field Contributor — quiXzoom</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: #0A0A1B;
|
|
color: #fff;
|
|
min-height: 100vh;
|
|
line-height: 1.6;
|
|
}
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
padding: 2rem 1rem;
|
|
}
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.logo {
|
|
font-size: 2rem;
|
|
font-weight: 800;
|
|
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.subtitle {
|
|
color: rgba(255,255,255,0.5);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Status-kort */
|
|
.status-card {
|
|
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
|
|
border: 1px solid rgba(139, 92, 246, 0.3);
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.status-card.valid {
|
|
border-color: rgba(34, 197, 94, 0.5);
|
|
background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
|
|
}
|
|
.status-card.invalid {
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
|
|
}
|
|
.status-icon {
|
|
font-size: 4rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.status-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.status-desc {
|
|
color: rgba(255,255,255,0.7);
|
|
}
|
|
|
|
/* Contributor-kort */
|
|
.contributor-card {
|
|
background: rgba(255,255,255,0.03);
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
border-radius: 16px;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.contributor-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid rgba(255,255,255,0.08);
|
|
}
|
|
.avatar {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
}
|
|
.contributor-info h2 {
|
|
font-size: 1.25rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
.contributor-tier {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
}
|
|
.tier-verified {
|
|
background: rgba(139, 92, 246, 0.2);
|
|
color: #8b5cf6;
|
|
}
|
|
.tier-field {
|
|
background: rgba(99, 102, 241, 0.2);
|
|
color: #6366f1;
|
|
}
|
|
|
|
/* Stats */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1rem;
|
|
}
|
|
.stat {
|
|
text-align: center;
|
|
padding: 1rem;
|
|
background: rgba(255,255,255,0.03);
|
|
border-radius: 12px;
|
|
}
|
|
.stat-value {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: #6366f1;
|
|
}
|
|
.stat-label {
|
|
font-size: 0.75rem;
|
|
color: rgba(255,255,255,0.5);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* Vad betyder detta? */
|
|
.info-section {
|
|
background: rgba(255,255,255,0.03);
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
border-radius: 16px;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.info-section h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 1rem;
|
|
color: #fff;
|
|
}
|
|
.info-section p {
|
|
color: rgba(255,255,255,0.7);
|
|
margin-bottom: 0.75rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
.info-section ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
.info-section li {
|
|
padding: 0.5rem 0;
|
|
color: rgba(255,255,255,0.7);
|
|
font-size: 0.95rem;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
}
|
|
.info-section li::before {
|
|
content: "✓";
|
|
color: #22c55e;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Sök */
|
|
.search-box {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.search-input {
|
|
flex: 1;
|
|
background: rgba(255,255,255,0.05);
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
border-radius: 8px;
|
|
padding: 0.75rem 1rem;
|
|
color: #fff;
|
|
font-size: 1rem;
|
|
}
|
|
.search-input::placeholder {
|
|
color: rgba(255,255,255,0.4);
|
|
}
|
|
.search-btn {
|
|
background: #6366f1;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: rgba(255,255,255,0.4);
|
|
font-size: 0.85rem;
|
|
}
|
|
.footer a {
|
|
color: #6366f1;
|
|
text-decoration: none;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<div class="logo">quiXzoom</div>
|
|
<div class="subtitle">Field Contributor Verification</div>
|
|
</div>
|
|
|
|
<!-- Sök -->
|
|
<div class="search-box">
|
|
<input type="text" class="search-input" id="search-input" placeholder="Sök på Contributor ID..." value="{{ contributor_id or '' }}">
|
|
<button class="search-btn" onclick="search()">Sök</button>
|
|
</div>
|
|
|
|
{% if contributor %}
|
|
<!-- Status -->
|
|
{% if contributor.valid %}
|
|
<div class="status-card valid">
|
|
<div class="status-icon">✅</div>
|
|
<div class="status-title">Verifierad Field Contributor</div>
|
|
<div class="status-desc">Detta ID-kort är giltigt och ägs av en verifierad quiXzoom-användare.</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="status-card invalid">
|
|
<div class="status-icon">❌</div>
|
|
<div class="status-title">Ogiltigt eller Inaktivt</div>
|
|
<div class="status-desc">Detta ID-kort är inte giltigt eller har återkallats.</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if contributor.valid %}
|
|
<!-- Contributor-info -->
|
|
<div class="contributor-card">
|
|
<div class="contributor-header">
|
|
<div class="avatar">{{ contributor.initials }}</div>
|
|
<div class="contributor-info">
|
|
<h2>{{ contributor.name }}</h2>
|
|
<span class="contributor-tier tier-verified">⭐ Verified Field Contributor</span>
|
|
</div>
|
|
</div>
|
|
<div class="stats-grid">
|
|
<div class="stat">
|
|
<div class="stat-value">{{ contributor.completed_missions }}</div>
|
|
<div class="stat-label">Uppdrag</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="stat-value">{{ "%.0f"|format(contributor.approval_rate * 100) }}%</div>
|
|
<div class="stat-label">Godkänt</div>
|
|
</div>
|
|
<div class="stat">
|
|
<div class="stat-value">{{ contributor.member_since }}</div>
|
|
<div class="stat-label">Medlem sedan</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Vad betyder detta? -->
|
|
<div class="info-section">
|
|
<h3>Vad betyder Verified Field Contributor?</h3>
|
|
<p>En <strong>Verified Field Contributor</strong> är en quiXzoom-användare som:</p>
|
|
<ul>
|
|
<li>Har slutfört minst <strong>100 godkända uppdrag</strong></li>
|
|
<li>Har en <strong>godkännandegrad på minst 95%</strong> under de senaste 100 uppdragen</li>
|
|
<li>Har en <strong>verifierad identitet</strong></li>
|
|
<li>Har <strong>inga allvarliga policyöverträdelser</strong></li>
|
|
</ul>
|
|
<p style="margin-top: 1rem;">Detta är inte bara en siffra — det representerar <strong>konsekvent, pålitligt arbete</strong> av hög kvalitet.</p>
|
|
</div>
|
|
|
|
<div class="info-section">
|
|
<h3>Vad kan denna person göra?</h3>
|
|
<p>En Verified Field Contributor har visat att de:</p>
|
|
<ul>
|
|
<li>Kan samla in fältdata av hög kvalitet</li>
|
|
<li>Följer quiXzooms riktlinjer och standarder</li>
|
|
<li>Är pålitlig och konsekvent i sitt arbete</li>
|
|
<li>Har en verifierad identitet</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="info-section">
|
|
<h3>För fastighetsägare och kommuner</h3>
|
|
<p>Om du ser en person med detta ID-kort kan du vara säker på att:</p>
|
|
<ul>
|
|
<li>Personen är <strong>verifierad och pålitlig</strong></li>
|
|
<li>Datainsamling sker enligt <strong>quiXzooms standarder</strong></li>
|
|
<li>Du kan <strong>lita på kvaliteten</strong> av arbetet</li>
|
|
</ul>
|
|
<p style="margin-top: 1rem;">Vid frågor, kontakta <a href="mailto:support@quixzoom.com">support@quixzoom.com</a></p>
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<div class="footer">
|
|
<p>quiXzoom Field Program — <a href="https://quixzoom.com">quixzoom.com</a></p>
|
|
<p style="margin-top: 0.5rem; font-size: 0.75rem;">Scanning this QR code confirms the holder is a verified quiXzoom contributor</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function search() {
|
|
const id = document.getElementById('search-input').value.trim();
|
|
if (id) {
|
|
window.location.href = `/verify/${id}`;
|
|
}
|
|
}
|
|
|
|
document.getElementById('search-input').addEventListener('keypress', (e) => {
|
|
if (e.key === 'Enter') search();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|