Landing page + oppimispolku + esimerkkiprojektit

1) Landing: gecko hero, projektin syöttökenttä, "Käynnistä"-nappi
2) Oppimispolku-välilehti: promptLog step-by-step (system prompt, syöte, tulos)
3) Kolme esimerkkiprojektia: Käyttäjähallinta-API, UWB-data-analyysi, Todo-sovellus
4) Landing → App -siirtymä käynnistää pipelinen suoraan
This commit is contained in:
Jaakko Vanhala
2026-04-12 15:24:44 +03:00
parent 9b2b7767b5
commit 74a2045def
3 changed files with 348 additions and 5 deletions

View File

@@ -81,6 +81,12 @@ body {
}
.dd-item:hover, .dd-item.active { background: var(--border); color: var(--accent); }
#editor-file-list .dd-item {
white-space: pre-wrap;
word-break: break-all;
line-height: 1.4;
}
/* Pipeline progress */
.pipeline-bar {
display: none; padding: 8px 14px; background: var(--bg);
@@ -196,6 +202,197 @@ body {
display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
/* ===== LANDING PAGE ===== */
#landing {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
min-height: 100vh;
position: relative;
overflow: hidden;
}
.bg-mesh {
position: fixed; inset: 0; z-index: -1;
background:
radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255,107,0,0.08) 0%, transparent 70%),
radial-gradient(ellipse 60% 50% at 80% 20%, rgba(88,166,255,0.06) 0%, transparent 70%),
var(--bg);
}
.landing-nav {
padding: 20px 40px;
}
.landing-logo { text-decoration: none; font-size: 18px; font-weight: 700; }
.logo-accent { color: #ff6b00; }
.logo-sub { color: #8b949e; font-weight: 400; }
/* Hero */
.hero {
padding: 60px 40px 40px;
}
.hero-container {
max-width: 1200px; margin: 0 auto;
display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: center;
}
.hero-title {
font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
line-height: 1.15; color: #e6edf3; margin-bottom: 16px;
}
.hero-divider {
width: 60px; height: 3px; background: #ff6b00;
border-radius: 2px; margin-bottom: 20px;
}
.hero-desc {
font-size: 1.05rem; color: #8b949e; line-height: 1.7; margin-bottom: 12px;
}
.hero-notice {
font-size: 0.9rem; color: #6e7681; line-height: 1.6;
border-left: 2px solid var(--border); padding-left: 12px; margin-bottom: 28px;
}
/* Hero input */
.hero-input-group {
display: flex; gap: 8px; margin-bottom: 20px;
}
.hero-input {
flex: 1; padding: 14px 18px; font-size: 16px;
font-family: 'JetBrains Mono', 'Courier New', monospace;
background: var(--panel); color: var(--text);
border: 1px solid var(--border); border-radius: 8px;
outline: none; transition: border-color 0.2s;
}
.hero-input:focus {
border-color: #ff6b00; box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}
.hero-input::placeholder { color: #484f58; }
.hero-btn {
padding: 14px 28px; font-size: 16px; font-weight: 600;
font-family: 'Inter', sans-serif;
background: #ff6b00; color: #fff; border: none; border-radius: 8px;
cursor: pointer; transition: background 0.2s, transform 0.1s;
white-space: nowrap;
}
.hero-btn:hover { background: #e05e00; transform: translateY(-1px); }
.hero-btn:active { transform: translateY(0); }
/* Example buttons */
.hero-examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-examples-label { color: #6e7681; font-size: 14px; margin-right: 4px; }
.example-btn {
padding: 8px 16px; font-size: 13px; font-family: 'Inter', sans-serif;
background: transparent; color: var(--accent);
border: 1px solid var(--border); border-radius: 6px;
cursor: pointer; transition: all 0.2s;
}
.example-btn:hover {
border-color: var(--accent); background: rgba(88,166,255,0.08);
}
/* Hero orb */
.hero-orb-wrapper {
display: flex; justify-content: center; align-items: center;
}
.hero-orb {
width: 340px; height: 340px; border-radius: 50%;
background: radial-gradient(circle at 30% 30%, rgba(255,107,0,0.15) 0%, transparent 70%);
display: flex; align-items: center; justify-content: center;
animation: orb-float 6s ease-in-out infinite;
}
.hero-orb-img {
width: 100%; height: 100%; object-fit: contain;
filter: drop-shadow(0 0 40px rgba(255,107,0,0.25));
}
@keyframes orb-float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-12px); }
}
/* How section */
.how-section {
padding: 60px 40px;
background: rgba(22,27,34,0.6);
border-top: 1px solid var(--border);
}
.how-container { max-width: 900px; margin: 0 auto; }
.how-title {
text-align: center; font-size: 1.5rem; font-weight: 700;
color: #e6edf3; margin-bottom: 40px;
}
.how-steps {
display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.how-step {
text-align: center; padding: 24px;
background: var(--panel); border: 1px solid var(--border);
border-radius: 12px; transition: border-color 0.3s;
}
.how-step:hover { border-color: rgba(255,107,0,0.4); }
.how-step-num {
width: 40px; height: 40px; line-height: 40px;
border-radius: 50%; background: rgba(255,107,0,0.12);
color: #ff6b00; font-weight: 700; font-size: 18px;
margin: 0 auto 14px;
}
.how-step h3 { color: #e6edf3; font-size: 1rem; margin-bottom: 8px; }
.how-step p { color: #8b949e; font-size: 0.9rem; line-height: 1.5; }
/* Landing footer */
.landing-footer {
text-align: center; padding: 32px 40px;
color: #484f58; font-size: 13px;
border-top: 1px solid var(--border);
}
.landing-footer a { color: #8b949e; }
/* Responsive */
@media (max-width: 860px) {
.hero-container { grid-template-columns: 1fr; gap: 32px; }
.hero-orb-wrapper { order: -1; }
.hero-orb { width: 220px; height: 220px; }
.how-steps { grid-template-columns: 1fr; }
.hero-input-group { flex-direction: column; }
}
/* ===== OPPIMISPOLKU ===== */
.learn-step {
margin: 12px 0; border: 1px solid var(--border);
border-radius: 8px; background: var(--panel); overflow: hidden;
}
.learn-step-header {
display: flex; align-items: center; gap: 12px;
padding: 12px 16px; cursor: pointer;
transition: background 0.15s;
}
.learn-step-header:hover { background: rgba(88,166,255,0.04); }
.learn-step-num {
width: 28px; height: 28px; line-height: 28px; text-align: center;
border-radius: 50%; background: rgba(255,107,0,0.12);
color: #ff6b00; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.learn-step-agent {
font-weight: 600; color: #e6edf3; font-size: 14px;
}
.learn-step-label {
color: #8b949e; font-size: 13px; margin-left: auto;
}
.learn-step-body {
display: none; padding: 0 16px 16px;
border-top: 1px solid var(--border);
}
.learn-step-body.open { display: block; }
.learn-section-title {
color: var(--accent); font-size: 12px; font-weight: 600;
text-transform: uppercase; letter-spacing: 0.5px;
margin: 14px 0 6px;
}
.learn-code {
font-family: 'JetBrains Mono', 'Courier New', monospace;
font-size: 12px; line-height: 1.6;
background: #010409; border: 1px solid var(--border);
border-radius: 6px; padding: 12px; overflow-x: auto;
max-height: 300px; overflow-y: auto; white-space: pre-wrap;
}
/* Animations */
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:0 } }
@keyframes spin { to { transform: rotate(360deg) } }