632 lines
14 KiB
HTML
632 lines
14 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="sv">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>quiXzoom Academy — Komplett utbildning</title>
|
||
|
|
<style>
|
||
|
|
:root {
|
||
|
|
--qx-black: #0a0a0a;
|
||
|
|
--qx-white: #ffffff;
|
||
|
|
--qx-blue: #0066FF;
|
||
|
|
--qx-green: #00C853;
|
||
|
|
--qx-gray: #F5F5F7;
|
||
|
|
--qx-dark-gray: #1a1a1a;
|
||
|
|
--qx-text-muted: #6e6e73;
|
||
|
|
--qx-purple: #7B61FF;
|
||
|
|
--qx-orange: #FF6B35;
|
||
|
|
--qx-yellow: #FFD600;
|
||
|
|
}
|
||
|
|
|
||
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||
|
|
|
||
|
|
body {
|
||
|
|
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
|
||
|
|
color: var(--qx-black);
|
||
|
|
background: var(--qx-white);
|
||
|
|
line-height: 1.6;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Progress Bar */
|
||
|
|
.progress-container {
|
||
|
|
position: sticky;
|
||
|
|
top: 0;
|
||
|
|
background: white;
|
||
|
|
padding: 12px 20px;
|
||
|
|
border-bottom: 1px solid var(--qx-gray);
|
||
|
|
z-index: 100;
|
||
|
|
}
|
||
|
|
|
||
|
|
.progress-bar {
|
||
|
|
max-width: 600px;
|
||
|
|
margin: 0 auto;
|
||
|
|
background: var(--qx-gray);
|
||
|
|
border-radius: 10px;
|
||
|
|
height: 8px;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.progress-fill {
|
||
|
|
background: var(--qx-green);
|
||
|
|
height: 100%;
|
||
|
|
width: 0%;
|
||
|
|
transition: width 0.5s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Lesson Content */
|
||
|
|
.lesson-container {
|
||
|
|
max-width: 800px;
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 40px 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.lesson-header {
|
||
|
|
margin-bottom: 48px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.lesson-module {
|
||
|
|
color: var(--qx-blue);
|
||
|
|
font-size: 0.875rem;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 2px;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.lesson-title {
|
||
|
|
font-size: 2.5rem;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
line-height: 1.2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.lesson-meta {
|
||
|
|
color: var(--qx-text-muted);
|
||
|
|
font-size: 0.9rem;
|
||
|
|
display: flex;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* CSS Illustrations */
|
||
|
|
.css-illustration {
|
||
|
|
width: 100%;
|
||
|
|
height: 300px;
|
||
|
|
border-radius: 16px;
|
||
|
|
margin: 32px 0;
|
||
|
|
position: relative;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Welcome Illustration */
|
||
|
|
.welcome-illustration {
|
||
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||
|
|
}
|
||
|
|
|
||
|
|
.welcome-illustration::before {
|
||
|
|
content: '📸';
|
||
|
|
position: absolute;
|
||
|
|
font-size: 80px;
|
||
|
|
top: 50%;
|
||
|
|
left: 50%;
|
||
|
|
transform: translate(-50%, -50%);
|
||
|
|
z-index: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.welcome-illustration::after {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
bottom: 0;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
height: 40%;
|
||
|
|
background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* AI Review Illustration */
|
||
|
|
.ai-review-illustration {
|
||
|
|
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-review-illustration .original {
|
||
|
|
width: 40%;
|
||
|
|
height: 80%;
|
||
|
|
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
||
|
|
border-radius: 12px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-size: 48px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-review-illustration .analysis {
|
||
|
|
width: 40%;
|
||
|
|
height: 80%;
|
||
|
|
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
|
||
|
|
border-radius: 12px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-size: 48px;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-review-illustration .analysis::before {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
top: 10%;
|
||
|
|
left: 10%;
|
||
|
|
right: 10%;
|
||
|
|
bottom: 10%;
|
||
|
|
border: 3px dashed rgba(255,255,255,0.5);
|
||
|
|
border-radius: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Photo Comparison */
|
||
|
|
.comparison-container {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 16px;
|
||
|
|
margin: 32px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.comparison-item {
|
||
|
|
border-radius: 12px;
|
||
|
|
overflow: hidden;
|
||
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.comparison-visual {
|
||
|
|
width: 100%;
|
||
|
|
height: 200px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-size: 64px;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.comparison-visual.bad {
|
||
|
|
background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
|
||
|
|
}
|
||
|
|
|
||
|
|
.comparison-visual.good {
|
||
|
|
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
|
||
|
|
}
|
||
|
|
|
||
|
|
.comparison-label {
|
||
|
|
padding: 12px;
|
||
|
|
text-align: center;
|
||
|
|
font-weight: 600;
|
||
|
|
font-size: 0.9rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.comparison-label.bad {
|
||
|
|
background: #ffebee;
|
||
|
|
color: #c62828;
|
||
|
|
}
|
||
|
|
|
||
|
|
.comparison-label.good {
|
||
|
|
background: #e8f5e9;
|
||
|
|
color: #2e7d32;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Content Blocks */
|
||
|
|
.content-block {
|
||
|
|
margin-bottom: 48px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.content-block h2 {
|
||
|
|
font-size: 1.75rem;
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.content-block p {
|
||
|
|
margin-bottom: 16px;
|
||
|
|
color: #333;
|
||
|
|
font-size: 1.05rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.content-block ul {
|
||
|
|
margin-left: 24px;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.content-block li {
|
||
|
|
margin-bottom: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Tip Box */
|
||
|
|
.tip-box {
|
||
|
|
background: #e8f4fd;
|
||
|
|
border-left: 4px solid var(--qx-blue);
|
||
|
|
padding: 24px;
|
||
|
|
margin: 24px 0;
|
||
|
|
border-radius: 0 12px 12px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tip-box strong {
|
||
|
|
color: var(--qx-blue);
|
||
|
|
display: block;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Warning Box */
|
||
|
|
.warning-box {
|
||
|
|
background: #fff3cd;
|
||
|
|
border-left: 4px solid var(--qx-orange);
|
||
|
|
padding: 24px;
|
||
|
|
margin: 24px 0;
|
||
|
|
border-radius: 0 12px 12px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.warning-box strong {
|
||
|
|
color: var(--qx-orange);
|
||
|
|
display: block;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Example Box */
|
||
|
|
.example-box {
|
||
|
|
background: var(--qx-gray);
|
||
|
|
padding: 24px;
|
||
|
|
border-radius: 12px;
|
||
|
|
margin: 24px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.example-box h4 {
|
||
|
|
margin-bottom: 12px;
|
||
|
|
color: var(--qx-dark-gray);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Quiz */
|
||
|
|
.quiz-container {
|
||
|
|
background: var(--qx-gray);
|
||
|
|
padding: 32px;
|
||
|
|
border-radius: 16px;
|
||
|
|
margin: 32px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-question {
|
||
|
|
font-size: 1.25rem;
|
||
|
|
font-weight: 600;
|
||
|
|
margin-bottom: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-options {
|
||
|
|
list-style: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-option {
|
||
|
|
background: white;
|
||
|
|
padding: 16px 20px;
|
||
|
|
margin-bottom: 12px;
|
||
|
|
border-radius: 12px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s;
|
||
|
|
border: 2px solid transparent;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-option:hover {
|
||
|
|
border-color: var(--qx-blue);
|
||
|
|
transform: translateX(4px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-option.correct {
|
||
|
|
background: var(--qx-green);
|
||
|
|
color: white;
|
||
|
|
border-color: var(--qx-green);
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-option.wrong {
|
||
|
|
background: #ff4444;
|
||
|
|
color: white;
|
||
|
|
border-color: #ff4444;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-option.disabled {
|
||
|
|
pointer-events: none;
|
||
|
|
opacity: 0.7;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-letter {
|
||
|
|
width: 32px;
|
||
|
|
height: 32px;
|
||
|
|
border-radius: 50%;
|
||
|
|
background: var(--qx-gray);
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
font-weight: 600;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-option:hover .quiz-letter {
|
||
|
|
background: var(--qx-blue);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-option.correct .quiz-letter,
|
||
|
|
.quiz-option.wrong .quiz-letter {
|
||
|
|
background: rgba(255,255,255,0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-feedback {
|
||
|
|
margin-top: 20px;
|
||
|
|
padding: 20px;
|
||
|
|
border-radius: 12px;
|
||
|
|
display: none;
|
||
|
|
font-size: 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.quiz-feedback.show {
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Navigation */
|
||
|
|
.lesson-nav {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
margin-top: 60px;
|
||
|
|
padding-top: 40px;
|
||
|
|
border-top: 2px solid var(--qx-gray);
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-btn {
|
||
|
|
padding: 14px 28px;
|
||
|
|
border-radius: 10px;
|
||
|
|
text-decoration: none;
|
||
|
|
font-weight: 600;
|
||
|
|
transition: all 0.2s;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-btn.prev {
|
||
|
|
background: var(--qx-gray);
|
||
|
|
color: var(--qx-black);
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-btn.next {
|
||
|
|
background: var(--qx-blue);
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-btn:hover {
|
||
|
|
transform: translateY(-2px);
|
||
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Complete Button */
|
||
|
|
.complete-btn {
|
||
|
|
display: block;
|
||
|
|
width: 100%;
|
||
|
|
max-width: 400px;
|
||
|
|
margin: 48px auto;
|
||
|
|
padding: 18px 32px;
|
||
|
|
background: var(--qx-green);
|
||
|
|
color: white;
|
||
|
|
border: none;
|
||
|
|
border-radius: 12px;
|
||
|
|
font-size: 1.1rem;
|
||
|
|
font-weight: 600;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.complete-btn:hover {
|
||
|
|
transform: translateY(-2px);
|
||
|
|
box-shadow: 0 4px 16px rgba(0,200,83,0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.complete-btn.completed {
|
||
|
|
background: var(--qx-gray);
|
||
|
|
color: var(--qx-text-muted);
|
||
|
|
cursor: default;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Responsive */
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.lesson-title { font-size: 1.75rem; }
|
||
|
|
.comparison-container { grid-template-columns: 1fr; }
|
||
|
|
.css-illustration { height: 200px; }
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
|
||
|
|
<div class="progress-container">
|
||
|
|
<div class="progress-bar">
|
||
|
|
<div class="progress-fill" id="lessonProgress" style="width: 0%"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="lesson-container">
|
||
|
|
<header class="lesson-header">
|
||
|
|
<div class="lesson-module">Modul 02 — Fotokvalitet</div>
|
||
|
|
<h1 class="lesson-title">AI-granskning — vad tittar den på?</h1>
|
||
|
|
<div class="lesson-meta">
|
||
|
|
<span>⏱️ 15 minuter</span>
|
||
|
|
<span>🎯 Nybörjare</span>
|
||
|
|
<span>📸 4 bildexempel</span>
|
||
|
|
</div>
|
||
|
|
</header>
|
||
|
|
|
||
|
|
<!-- CSS Illustration: AI Review -->
|
||
|
|
<div class="css-illustration ai-review-illustration">
|
||
|
|
<div class="original">📷</div>
|
||
|
|
<div style="color: white; font-size: 24px;">→</div>
|
||
|
|
<div class="analysis">🤖</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="content-block">
|
||
|
|
<h2>Vad är AI-granskning?</h2>
|
||
|
|
<p>När du skickar in en bild till quiXzoom analyseras den automatiskt av vår AI. Systemet kontrollerar flera kvalitetsfaktorer för att säkerställa att bilden är användbar för våra kunder.</p>
|
||
|
|
|
||
|
|
<p>AI-granskningen tar mindre än 5 sekunder och ger dig direkt feedback. Om något inte är bra får du veta exakt vad du behöver förbättra.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="content-block">
|
||
|
|
<h2>De 4 viktigaste faktorerna</h2>
|
||
|
|
|
||
|
|
<div class="tip-box">
|
||
|
|
<strong>💡 Kom ihåg</strong>
|
||
|
|
AI:n är tränad på över 1 miljon godkända bilder. Den vet exakt vad kunderna vill ha.
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<ul>
|
||
|
|
<li><strong>Skärpa:</strong> Bilden måste vara i fokus. Suddiga bilder avvisas direkt.</li>
|
||
|
|
<li><strong>Ljus:</strong> Varken för mörkt eller för ljust. Detaljer ska synas tydligt.</li>
|
||
|
|
<li><strong>Framing:</strong> Huvudobjektet ska vara centrerat och ta upp minst 60% av bilden.</li>
|
||
|
|
<li><strong>Metadata:</strong> GPS-koordinater, timestamp och kamerainfo måste finnas.</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Photo Comparison: Sharpness -->
|
||
|
|
<div class="content-block">
|
||
|
|
<h2>Exempel: Skärpa</h2>
|
||
|
|
<p>Här ser du skillnaden mellan en bild som avvisas och en som godkänns:</p>
|
||
|
|
|
||
|
|
<div class="comparison-container">
|
||
|
|
<div class="comparison-item">
|
||
|
|
<div class="comparison-visual bad">😵💫</div>
|
||
|
|
<div class="comparison-label bad">AVVISAD — Oskarp</div>
|
||
|
|
</div>
|
||
|
|
<div class="comparison-item">
|
||
|
|
<div class="comparison-visual good">✨</div>
|
||
|
|
<div class="comparison-label good">GODKÄND — Skarp</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="warning-box">
|
||
|
|
<strong>⚠️ Vanligt fel</strong>
|
||
|
|
Många Zoomers rör på telefonen när de trycker på avtryckaren. Håll andan och tryck försiktigt!
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Photo Comparison: Lighting -->
|
||
|
|
<div class="content-block">
|
||
|
|
<h2>Exempel: Ljus och exponering</h2>
|
||
|
|
<p>Rätt ljus är avgörande för att AI:n ska kunna analysera bilden:</p>
|
||
|
|
|
||
|
|
<div class="comparison-container">
|
||
|
|
<div class="comparison-item">
|
||
|
|
<div class="comparison-visual bad">🌑</div>
|
||
|
|
<div class="comparison-label bad">För mörk — Detaljer saknas</div>
|
||
|
|
</div>
|
||
|
|
<div class="comparison-item">
|
||
|
|
<div class="comparison-visual good">☀️</div>
|
||
|
|
<div class="comparison-label good">Perfekt — Gyldene timmen</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="tip-box">
|
||
|
|
<strong>💡 Proffstips</strong>
|
||
|
|
Fotografera en timme efter soluppgång eller en timme före solnedgång. Det kallas "gyllene timmen" och ger det bästa ljuset.
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="content-block">
|
||
|
|
<h2>Metadata — varför är det viktigt?</h2>
|
||
|
|
<p>Varje bild innehåller dold information (EXIF-metadata) som berättar:</p>
|
||
|
|
|
||
|
|
<ul>
|
||
|
|
<li>Var bilden togs (GPS-koordinater)</li>
|
||
|
|
<li>När bilden togs (datum och tid)</li>
|
||
|
|
<li>Med vilken enhet (telefonmodell)</li>
|
||
|
|
<li>Kamerainställningar (bländare, slutartid, ISO)</li>
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
<p>quiXzoom använder denna data för att verifiera att du var på rätt plats vid rätt tidpunkt.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Quiz -->
|
||
|
|
<div class="quiz-container">
|
||
|
|
<div class="quiz-question">Vad är viktigast för att AI:n ska godkänna din bild?</div>
|
||
|
|
<ul class="quiz-options">
|
||
|
|
<li class="quiz-option" onclick="checkAnswer(this, false)">
|
||
|
|
<span class="quiz-letter">A</span>
|
||
|
|
<span>Att använda en dyr kamera</span>
|
||
|
|
</li>
|
||
|
|
<li class="quiz-option" onclick="checkAnswer(this, true)">
|
||
|
|
<span class="quiz-letter">B</span>
|
||
|
|
<span>Skärpa, ljus och korrekt framing</span>
|
||
|
|
</li>
|
||
|
|
<li class="quiz-option" onclick="checkAnswer(this, false)">
|
||
|
|
<span class="quiz-letter">C</span>
|
||
|
|
<span>Att redigera bilden i Photoshop</span>
|
||
|
|
</li>
|
||
|
|
<li class="quiz-option" onclick="checkAnswer(this, false)">
|
||
|
|
<span class="quiz-letter">D</span>
|
||
|
|
<span>Att ta bilden på natten</span>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<div class="quiz-feedback" id="quizFeedback"></div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<button class="complete-btn" id="completeBtn" onclick="completeLesson()">
|
||
|
|
✅ Markera lektion som klar
|
||
|
|
</button>
|
||
|
|
|
||
|
|
<nav class="lesson-nav">
|
||
|
|
<a href="/academy" class="nav-btn prev">← Tillbaka till Academy</a>
|
||
|
|
<a href="/academy/module2/lesson2" class="nav-btn next">Nästa: Ljus och exponering →</a>
|
||
|
|
</nav>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
const lessonId = 'm2l1';
|
||
|
|
let completedLessons = JSON.parse(localStorage.getItem('academyProgress') || '[]');
|
||
|
|
|
||
|
|
function checkAnswer(element, isCorrect) {
|
||
|
|
const options = document.querySelectorAll('.quiz-option');
|
||
|
|
const feedback = document.getElementById('quizFeedback');
|
||
|
|
|
||
|
|
options.forEach(opt => opt.classList.add('disabled'));
|
||
|
|
|
||
|
|
if (isCorrect) {
|
||
|
|
element.classList.add('correct');
|
||
|
|
feedback.innerHTML = '<strong>✅ Rätt!</strong> AI:n bryr sig inte om hur dyr din kamera är. Det viktiga är skärpa, ljus och att objektet är korrekt placerat i bilden.';
|
||
|
|
feedback.style.background = '#d4edda';
|
||
|
|
feedback.style.color = '#155724';
|
||
|
|
} else {
|
||
|
|
element.classList.add('wrong');
|
||
|
|
feedback.innerHTML = '<strong>❌ Inte riktigt.</strong> Professionell utrustning eller redigering krävs inte. Fokusera på skärpa, ljus och framing!';
|
||
|
|
feedback.style.background = '#f8d7da';
|
||
|
|
feedback.style.color = '#721c24';
|
||
|
|
}
|
||
|
|
|
||
|
|
feedback.classList.add('show');
|
||
|
|
}
|
||
|
|
|
||
|
|
function completeLesson() {
|
||
|
|
if (!completedLessons.includes(lessonId)) {
|
||
|
|
completedLessons.push(lessonId);
|
||
|
|
localStorage.setItem('academyProgress', JSON.stringify(completedLessons));
|
||
|
|
|
||
|
|
const btn = document.getElementById('completeBtn');
|
||
|
|
btn.textContent = '✅ Lektion klar!';
|
||
|
|
btn.classList.add('completed');
|
||
|
|
btn.disabled = true;
|
||
|
|
|
||
|
|
btn.style.transform = 'scale(1.05)';
|
||
|
|
setTimeout(() => btn.style.transform = 'scale(1)', 200);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
if (completedLessons.includes(lessonId)) {
|
||
|
|
const btn = document.getElementById('completeBtn');
|
||
|
|
btn.textContent = '✅ Lektion klar!';
|
||
|
|
btn.classList.add('completed');
|
||
|
|
btn.disabled = true;
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
</body>
|
||
|
|
</html>
|