Skip to content

Commit 1d7d28c

Browse files
authored
Merge pull request #19 from ut-code/lv4Tolv5
Lv4tolv5
2 parents 07516a1 + 03d6e6d commit 1d7d28c

File tree

3 files changed

+103
-0
lines changed

3 files changed

+103
-0
lines changed

src/sidepanel/App.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,15 @@ function App() {
173173
{!result && <p className="hint">ヒント:sourcesに割引コードが書かれているかも</p>}
174174
</div>
175175
)}
176+
177+
{step === 3 && (
178+
<div>
179+
<h2>問題5</h2>
180+
<p>一つ目のレビューを、CSSを使って非表示にしてみよう!</p>
181+
{result && <div className={result.ok ? "result-ok" : "result-ng"}><h3>判定: {result.ok ? '正解!' : '不正解'}</h3><p>{result.details}</p>{result.ok && <p>次の問題へ進みます...</p>}</div>}
182+
{!result && <p className="hint">ヒント:DevToolsのスタイルパネルで <code>display: none;</code> を追加してみよう。</p>}
183+
</div>
184+
)}
176185
</div>
177186
)
178187
}

vulnerable-web/style.css

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
body {
2+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
3+
Helvetica, Arial, sans-serif;
4+
margin: 0;
5+
padding: 0;
6+
background: linear-gradient(135deg, #a8e0ff, #8ec5fc, #e0c3fc);
7+
color: #333;
8+
min-height: 100vh;
9+
display: flex;
10+
flex-direction: column;
11+
animation: fadeIn 1.2s ease;
12+
}
13+
14+
@keyframes fadeIn {
15+
from { opacity: 0; }
16+
to { opacity: 1; }
17+
}
18+
19+
header {
20+
background: rgba(255, 255, 255, 0.8);
21+
backdrop-filter: blur(6px);
22+
border-bottom: 1px solid rgba(255,255,255,0.4);
23+
padding: 1.5rem 2rem;
24+
text-align: center;
25+
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
26+
}
27+
28+
header h1 {
29+
margin: 0;
30+
font-size: 2rem;
31+
color: #444;
32+
letter-spacing: 1px;
33+
}
34+
35+
main {
36+
flex: 1;
37+
display: flex;
38+
flex-direction: column;
39+
justify-content: center;
40+
align-items: center;
41+
padding: 2rem;
42+
gap: 1.5rem;
43+
}
44+
45+
main a {
46+
width: 90%;
47+
max-width: 480px;
48+
padding: 1.1rem 1.5rem;
49+
border-radius: 12px;
50+
background: linear-gradient(135deg, #6a85ff, #8f6aff);
51+
color: #fff;
52+
text-decoration: none;
53+
text-align: center;
54+
font-size: 1.2rem;
55+
font-weight: bold;
56+
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
57+
transition: transform 0.2s ease, box-shadow 0.2s ease;
58+
}
59+
60+
main a:hover {
61+
transform: translateY(-4px) scale(1.03);
62+
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
63+
}
64+
65+
footer {
66+
color: #fff;
67+
text-shadow: 0 1px 2px rgba(0,0,0,0.2);
68+
text-align: center;
69+
padding: 1.5rem;
70+
font-size: 0.95rem;
71+
}

vulnerable-web/top.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="ja">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>TOP</title>
7+
<link rel="stylesheet" href="style.css" />
8+
</head>
9+
<body class="admin">
10+
<header>
11+
<h1>Top Page</h1>
12+
</header>
13+
14+
<main>
15+
<a href="./shopping/index.html">問題1~問題4を解く</a>
16+
<a href="./reservation/index.html">最後の問題を解く</a>
17+
</main>
18+
19+
<footer>
20+
<p>©2025 ut.code();</p>
21+
</footer>
22+
</body>
23+
</html>

0 commit comments

Comments
 (0)