"""로딩 스켈레톤 (개발 가이드 12장) tier_num별 스켈레톤 레이아웃을 HTML 문자열로 반환 tiers.py가 tier-body 안에 그대로 삽입 """ def skeleton_html(tier_num: int) -> str: if tier_num in (1, 3): return """
""" rows = 3 if tier_num == 2 else 4 h = 88 if tier_num == 2 else 48 blocks = "".join( f'
' for i in range(rows) ) return f'
{blocks}
'