diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index 0c0c3383..2f0367c4 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -2,7 +2,7 @@ - + diff --git a/feature/auth/src/main/java/com/wap/wapp/feature/auth/signup/validation/CodeValidationDialog.kt b/feature/auth/src/main/java/com/wap/wapp/feature/auth/signup/validation/CodeValidationDialog.kt new file mode 100644 index 00000000..2a096a3f --- /dev/null +++ b/feature/auth/src/main/java/com/wap/wapp/feature/auth/signup/validation/CodeValidationDialog.kt @@ -0,0 +1,73 @@ +package com.wap.wapp.feature.auth.signup.validation + +import androidx.compose.foundation.background +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material3.Card +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.dp +import androidx.compose.ui.window.Dialog +import com.wap.designsystem.WappTheme +import com.wap.designsystem.component.WappButton +import com.wap.designsystem.component.WappTextField +import com.wap.wapp.feature.auth.R + +@Composable +internal fun CodeValidationDialog( + code: String, + setValidationCode: (String) -> Unit, + onConfirmRequest: () -> Unit, + onDismissRequest: () -> Unit, +) { + Dialog( + onDismissRequest = onDismissRequest, + ) { + Card(shape = RoundedCornerShape(10.dp)) { + Column( + modifier = Modifier + .fillMaxWidth() + .background(color = WappTheme.colors.black25) + .padding(10.dp), + ) { + Text( + text = stringResource(R.string.sign_up_dialog_title), + style = WappTheme.typography.titleBold, + color = WappTheme.colors.white, + textAlign = TextAlign.Center, + ) + + Text( + text = stringResource(R.string.sign_up_dialog_content), + style = WappTheme.typography.captionMedium, + color = WappTheme.colors.white, + textAlign = TextAlign.Center, + ) + + Spacer(modifier = Modifier.padding(vertical = 8.dp)) + + WappTextField( + value = code, + onValueChanged = setValidationCode, + label = R.string.code, + isError = false, + supportingText = "", + ) + + Spacer(modifier = Modifier.padding(vertical = 8.dp)) + + WappButton( + onClick = onConfirmRequest, + isEnabled = code.isNotBlank(), + modifier = Modifier.padding(horizontal = 32.dp), + ) + } + } + } +} diff --git a/feature/auth/src/main/res/values/strings.xml b/feature/auth/src/main/res/values/strings.xml index 4ae4b103..99aac63b 100644 --- a/feature/auth/src/main/res/values/strings.xml +++ b/feature/auth/src/main/res/values/strings.xml @@ -27,6 +27,9 @@ 입부년도 입력 회원님의 기수 정보를 알려드릴게요! Door Icon + 회원 코드를 입력하세요 + WAP 회원만 해당 내용을 확인할 수 있어요 + code 1학기 2학기 완료