Responsive Design untuk Game Website
Membuat game website yang responsive di mobile, tablet, dan desktop.
Tujuan Pembelajaran
Mobile-first Approach
Mulai dari layout kecil yang sederhana, lalu tambahkan aturan untuk layar lebih besar.
.hero-layout { display: grid; gap: 16px; } @media (min-width: 768px) { .hero-layout { grid-template-columns: 1fr 1fr; } }
Media Query
Mobile
Satu kolom, tombol besar, teks ringkas.
Tablet
Dua kolom sederhana, jarak antar elemen lebih longgar.
Desktop
Layout lebih luas, grid atau sidebar dapat ditampilkan.
Game Homepage Responsive
Homepage game perlu tetap jelas: judul, CTA, preview karakter, dan status penting tidak boleh saling menumpuk.
Testing di Banyak Ukuran
- Cek mobile view.
- Cek tablet view.
- Cek desktop view.
- Pastikan tombol mudah disentuh.
- Pastikan teks tidak keluar dari card.
Mini Challenge
Ubah homepage game kalian agar responsive: satu kolom di mobile, dua kolom di tablet, dan layout lebih luas di desktop.
Mini Quiz
Aturan CSS untuk kondisi ukuran layar tertentu disebut...
Penutup
Output pertemuan: fully responsive game website.