Skip to content

Commit

Permalink
[feat] : #3 HomeSectionHeader 컴포넌트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
1971123-seongmin committed Oct 25, 2024
1 parent c22f361 commit c400c38
Showing 1 changed file with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package org.sopt.and.presentation.component

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.outlined.KeyboardArrowRight
import androidx.compose.material3.Icon
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import org.sopt.and.ui.theme.White

// 홈 화면 제목 + > 버튼 컴포넌트
@Composable
fun HomeSectionHeader(
title: String,
//onArrowClick: () -> Unit = {} // 화살표 아이콘 클릭 동작을 외부에서 지정 가능하게
) {
Row(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 8.dp),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceBetween
) {
Text(
text = title,
color = White,
fontSize = 18.sp,
fontWeight = FontWeight.Bold
)
Icon(
imageVector = Icons.AutoMirrored.Outlined.KeyboardArrowRight,
contentDescription = "next",
tint = White,
modifier = Modifier.size(32.dp)
)
}
}

0 comments on commit c400c38

Please sign in to comment.