بتل کد Battle Codeدارد باز می‌شود…

جواب «The App's Colour» چالش 2 از جلسه‌ی 17

سؤال

سربرگ این اپ آبی #1e88e5 است. داخل <head> یک <meta name="theme-color" content="#1e88e5"> اضافه کن تا نوار بالای مرورگر گوشی هم همین رنگ شود.

راهنما

این تگ بسته نمی‌شود؛ آن را زیر meta viewport بگذار.

یک جواب درست

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#1e88e5">
<title>Diary</title>
<style>
body { font-family: sans-serif; margin: 0; }
header { background-color: #1e88e5; color: white; padding: 12px 16px; }
.app { max-width: 420px; margin: 0 auto; padding: 16px; }
button, input, textarea { font-size: 16px; min-height: 44px; }
textarea { width: 100%; box-sizing: border-box; }
</style>
</head>
<body>
<header><h1>My Diary</h1></header>
<div class="app">
  <p>Write one good thing about today.</p>
</div>
</body>
</html>

اول خودت امتحان کن؛ جواب‌های دیگر هم قبول است. برگرد و خودت حلش کن