125 lines
2.4 KiB
HTML
125 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Task 3 Vanilla</title>
|
|
<style>
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background: #eaf0f7;
|
|
font-family: "Avenir Next", "Segoe UI", sans-serif;
|
|
}
|
|
|
|
canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#guide {
|
|
position: fixed;
|
|
top: 14px;
|
|
left: 14px;
|
|
z-index: 10;
|
|
max-width: 290px;
|
|
background: rgba(255, 255, 255, 0.88);
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
#guide h2 {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
color: #203448;
|
|
}
|
|
|
|
#step-label {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: #1b2530;
|
|
}
|
|
|
|
#step-detail {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
color: #4f647a;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
button {
|
|
border: 1px solid #cfd8e3;
|
|
background: #fff;
|
|
color: #203448;
|
|
border-radius: 8px;
|
|
padding: 7px 9px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
button:hover {
|
|
border-color: #8ea2b8;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
button.active {
|
|
background: #203448;
|
|
border-color: #203448;
|
|
color: #f4f8fb;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
#hint {
|
|
margin: 0;
|
|
font-size: 11px;
|
|
color: #566f86;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="guide">
|
|
<h2>Step Guided Flow</h2>
|
|
<p id="step-label"></p>
|
|
<p id="step-detail"></p>
|
|
|
|
<div class="row">
|
|
<button class="step-btn" data-step="0">Step 1</button>
|
|
<button class="step-btn" data-step="1">Step 2</button>
|
|
<button class="step-btn" data-step="2">Step 3</button>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<button id="prev-btn">Previous</button>
|
|
<button id="next-btn">Next</button>
|
|
</div>
|
|
|
|
<p id="hint">Use buttons or keys 1, 2, 3.</p>
|
|
</div>
|
|
<script type="module" src="/main.js"></script>
|
|
</body>
|
|
|
|
</html> |