-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature/#8] : 약속 확정 페이지 구현 #14
Changes from 8 commits
117f78e
6fa92fe
72b76ae
5a45d3d
68e6850
a2e0c29
83e9a8c
76b6237
49497a2
304c0c0
6375411
91c9ee7
5a711b0
7c2409c
03dcfbb
b9d33bd
bb816b1
60a1f17
b8d30d0
726c1b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: 이 버튼 각자 다 만든걸로 알고있는데 뭘로 통일할까요?? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 나중에 다 통일해야될 것 같아유.. 😢 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.sopt.core.designsystem.component.button | ||
|
||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.foundation.shape.RoundedCornerShape | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.unit.dp | ||
import com.sopt.core.designsystem.theme.NoostakTheme | ||
|
||
@Composable | ||
fun NoostakButton( | ||
modifier: Modifier = Modifier, | ||
text: String, | ||
onButtonClick: () -> Unit, | ||
isEnabled: Boolean | ||
) { | ||
BaseButton( | ||
modifier = modifier.fillMaxWidth(), | ||
isEnabled = isEnabled, | ||
shape = RoundedCornerShape(8.dp), | ||
style = NoostakTheme.typography.t3Bold, | ||
paddingVertical = 15.dp, | ||
text = text, | ||
onButtonClick = { onButtonClick() } | ||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: 오 BaseButton 활용하는거 너무 좋습니다!! |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
package com.sopt.core.designsystem.component.dialog | ||
|
||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.layout.Arrangement | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.Spacer | ||
import androidx.compose.foundation.layout.height | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.foundation.layout.size | ||
import androidx.compose.foundation.shape.CircleShape | ||
import androidx.compose.foundation.shape.RoundedCornerShape | ||
import androidx.compose.material3.Button | ||
import androidx.compose.material3.ButtonDefaults | ||
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.style.TextAlign | ||
import androidx.compose.ui.unit.dp | ||
import com.sopt.core.designsystem.theme.NoostakTheme | ||
import com.sopt.core.extension.noRippleClickable | ||
import com.sopt.core.util.NoRippleInteractionSource | ||
|
||
@Composable | ||
fun AppointmentDialog( | ||
onDismissRequest: () -> Unit, | ||
onConfirmButtonClick: () -> Unit, | ||
description: String, | ||
dismissText: String, | ||
confirmButtonText: String | ||
) { | ||
BaseDialog( | ||
onDismissRequest = onDismissRequest, | ||
radius = 20.dp | ||
) { | ||
Column( | ||
modifier = Modifier.padding(35.dp), | ||
horizontalAlignment = Alignment.CenterHorizontally, | ||
verticalArrangement = Arrangement.Center | ||
) { | ||
Box( | ||
modifier = Modifier | ||
.size(53.dp) | ||
.background( | ||
shape = CircleShape, | ||
color = NoostakTheme.colors.gray200 | ||
) | ||
) | ||
Spacer(modifier = Modifier.height(16.dp)) | ||
Text( | ||
text = description, | ||
color = NoostakTheme.colors.gray900, | ||
style = NoostakTheme.typography.b2Regular, | ||
textAlign = TextAlign.Center | ||
) | ||
Spacer(modifier = Modifier.height(20.dp)) | ||
Button( | ||
modifier = Modifier.padding(horizontal = 36.dp, vertical = 8.5.dp), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: 소수는 사용을 지양하고 반올림하여 정수 단위를 사용하는 걸로 알고 있는데 디자인 측에 문의해볼까요??
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 요 부분 디자인 확정이 안나서 소수점 부분은 일단 패스해주세욥 |
||
colors = ButtonDefaults.buttonColors( | ||
containerColor = NoostakTheme.colors.gray700 | ||
), | ||
shape = RoundedCornerShape(6.dp), | ||
onClick = onConfirmButtonClick, | ||
interactionSource = NoRippleInteractionSource | ||
) { | ||
Text( | ||
text = confirmButtonText, | ||
color = NoostakTheme.colors.white, | ||
textAlign = TextAlign.Center | ||
) | ||
} | ||
Spacer(modifier = Modifier.height(6.5.dp)) | ||
Text( | ||
modifier = Modifier.noRippleClickable { onDismissRequest() }, | ||
text = dismissText, | ||
color = NoostakTheme.colors.gray700, | ||
style = NoostakTheme.typography.b2Regular | ||
) | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3: 여기 컬러 값도 받아와서 사용하는걸로 바꾸면 활용도가 높아질 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
컴포넌트 나중에 역할 분담해서 싹다 통일시켜봅시다 ㅠ