@@ -31,89 +31,89 @@ import com.neki.android.core.model.PhotoBooth
3131import com.neki.android.core.ui.compose.HorizontalSpacer
3232import com.neki.android.core.ui.compose.VerticalSpacer
3333
34- @Composable
35- internal fun PhotoBoothCard (
36- photoBooth : PhotoBooth ,
37- modifier : Modifier = Modifier ,
38- onClick : () -> Unit = {},
39- onClickDirection : () -> Unit = {},
40- ) {
41- Row (
42- modifier = modifier
43- .fillMaxWidth()
44- .cardShadow(shape = RoundedCornerShape (20 .dp))
45- .background(
46- shape = RoundedCornerShape (20 .dp),
47- color = NekiTheme .colorScheme.white,
48- )
49- .noRippleClickableSingle(onClick = onClick)
50- .padding(16 .dp),
51- verticalAlignment = Alignment .CenterVertically ,
52- ) {
53- AsyncImage (
54- modifier = Modifier
55- .clip(RoundedCornerShape (8 .dp))
56- .size(64 .dp),
57- model = photoBooth.imageUrl,
58- placeholder = painterResource(R .drawable.icon_life_four_cut),
59- error = painterResource(R .drawable.icon_life_four_cut),
60- contentDescription = null ,
61- )
62- HorizontalSpacer (16 .dp)
63- Column {
64- Row (
65- verticalAlignment = Alignment .CenterVertically ,
66- ) {
67- Text (
68- text = photoBooth.brandName,
69- color = NekiTheme .colorScheme.gray900,
70- style = NekiTheme .typography.title18Bold,
71- )
72- HorizontalSpacer (4 .dp)
73- Text (
74- text = photoBooth.branchName,
75- color = NekiTheme .colorScheme.gray600,
76- style = NekiTheme .typography.caption12Medium,
77- )
78- }
79- VerticalSpacer (4 .dp)
80- Text (
81- text = photoBooth.distance.formatDistance(),
82- color = NekiTheme .colorScheme.gray400,
83- style = NekiTheme .typography.caption12Medium,
84- )
85- }
86- HorizontalSpacer (1f )
87- Box (
88- modifier = Modifier
89- .background(
90- shape = CircleShape ,
91- color = NekiTheme .colorScheme.gray900,
92- )
93- .noRippleClickableSingle(onClick = onClickDirection)
94- .padding(4 .dp),
95- contentAlignment = Alignment .Center ,
96- ) {
97- Icon (
98- modifier = Modifier .size(24 .dp),
99- imageVector = ImageVector .vectorResource(R .drawable.icon_find_direction),
100- contentDescription = null ,
101- tint = Color .Unspecified ,
102- )
103- }
104- }
105- }
106-
107- @ComponentPreview
108- @Composable
109- private fun PhotoBoothCardPreview () {
110- NekiTheme {
111- PhotoBoothCard (
112- photoBooth = PhotoBooth (
113- brandName = " 인생네컷" ,
114- branchName = " 사당역점" ,
115- distance = 300 ,
116- ),
117- )
118- }
119- }
34+ // @Composable
35+ // internal fun PhotoBoothCard(
36+ // photoBooth: PhotoBooth,
37+ // modifier: Modifier = Modifier,
38+ // onClick: () -> Unit = {},
39+ // onClickDirection: () -> Unit = {},
40+ // ) {
41+ // Row(
42+ // modifier = modifier
43+ // .fillMaxWidth()
44+ // .cardShadow(shape = RoundedCornerShape(20.dp))
45+ // .background(
46+ // shape = RoundedCornerShape(20.dp),
47+ // color = NekiTheme.colorScheme.white,
48+ // )
49+ // .noRippleClickableSingle(onClick = onClick)
50+ // .padding(16.dp),
51+ // verticalAlignment = Alignment.CenterVertically,
52+ // ) {
53+ // AsyncImage(
54+ // modifier = Modifier
55+ // .clip(RoundedCornerShape(8.dp))
56+ // .size(64.dp),
57+ // model = photoBooth.imageUrl,
58+ // placeholder = painterResource(R.drawable.icon_life_four_cut),
59+ // error = painterResource(R.drawable.icon_life_four_cut),
60+ // contentDescription = null,
61+ // )
62+ // HorizontalSpacer(16.dp)
63+ // Column {
64+ // Row(
65+ // verticalAlignment = Alignment.CenterVertically,
66+ // ) {
67+ // Text(
68+ // text = photoBooth.brandName,
69+ // color = NekiTheme.colorScheme.gray900,
70+ // style = NekiTheme.typography.title18Bold,
71+ // )
72+ // HorizontalSpacer(4.dp)
73+ // Text(
74+ // text = photoBooth.branchName,
75+ // color = NekiTheme.colorScheme.gray600,
76+ // style = NekiTheme.typography.caption12Medium,
77+ // )
78+ // }
79+ // VerticalSpacer(4.dp)
80+ // Text(
81+ // text = photoBooth.distance.formatDistance(),
82+ // color = NekiTheme.colorScheme.gray400,
83+ // style = NekiTheme.typography.caption12Medium,
84+ // )
85+ // }
86+ // HorizontalSpacer(1f)
87+ // Box(
88+ // modifier = Modifier
89+ // .background(
90+ // shape = CircleShape,
91+ // color = NekiTheme.colorScheme.gray900,
92+ // )
93+ // .noRippleClickableSingle(onClick = onClickDirection)
94+ // .padding(4.dp),
95+ // contentAlignment = Alignment.Center,
96+ // ) {
97+ // Icon(
98+ // modifier = Modifier.size(24.dp),
99+ // imageVector = ImageVector.vectorResource(R.drawable.icon_find_direction),
100+ // contentDescription = null,
101+ // tint = Color.Unspecified,
102+ // )
103+ // }
104+ // }
105+ // }
106+ //
107+ // @ComponentPreview
108+ // @Composable
109+ // private fun PhotoBoothCardPreview() {
110+ // NekiTheme {
111+ // PhotoBoothCard(
112+ // photoBooth = PhotoBooth(
113+ // brandName = "인생네컷",
114+ // branchName = "사당역점",
115+ // distance = 300,
116+ // ),
117+ // )
118+ // }
119+ // }
0 commit comments