Skip to content
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/mz 160 splash, signup-vote, login UI #41

Merged
merged 18 commits into from
Jan 6, 2024

Conversation

yangsooplus
Copy link
Member

💡 Issue

🌱 Key changes

  • Splash 배경색, 아이콘
    • 30 이하는 Splash Background Color 옵션이 지원되지 않아서 따로 설정해야 합니다 (추후)
    • 30 이하는 아래처럼 표시됩니다.
스크린샷 2024-01-06 오후 3 34 05
  • 회원가입 투표 화면
  • 로그인 화면

✅ To Reviewers

  • 상수 관리 어떻게할지 조언좀 얻겠습니다 (코멘트 달게요)

📸 스크린샷

KakaoTalk_Video_2024-01-06-15-37-05.mp4

Comment on lines +42 to +47
val buttonList = listOf(
stringResource(R.string.signup_vote_unit_3),
stringResource(R.string.signup_vote_unit_5),
stringResource(R.string.signup_vote_unit_10),
stringResource(R.string.signup_vote_unit_20),
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요렇게 이 화면에서만 사용하는 상수 어떻게 관리하면 좋을까요?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

음 private const val로 빼고 Resid 값을 저장하면 좋을거같아요.

Comment on lines +42 to +47
val buttonList = listOf(
stringResource(R.string.signup_vote_unit_3),
stringResource(R.string.signup_vote_unit_5),
stringResource(R.string.signup_vote_unit_10),
stringResource(R.string.signup_vote_unit_20),
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

음 private const val로 빼고 Resid 값을 저장하면 좋을거같아요.

Comment on lines 31 to 42
LaunchedEffect(key1 = fillAngle) {
launch {
fillAngle.animateTo(
targetValue = fillUntil,
animationSpec = tween(
delayMillis = delay,
durationMillis = duration,
easing = EaseInOutCubic,
),
)
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

launch를 쓴 이유가 뭔가요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 긁어오다가 딸려 들어온 것 같슴다

viewModel: LoginViewModel = hiltViewModel(),
navigateToReceived: () -> Unit,
navigateToSignUp: () -> Unit,
) {
val context = LocalContext.current
// TODO: Loading 처리
val uiState by viewModel.uiState.collectAsState()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

collectAsStateWithLifecycle()

Comment on lines 133 to 136
CircularProgressIndicator(
modifier = Modifier.align(Alignment.Center),
color = SusuTheme.colorScheme.primary
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 designsystem에 LoadingScreen으로 만들어주실 수 있나요?

Button(
onClick = onClick,
modifier = Modifier.wrapContentHeight(),
fun KakaoLogin(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 Button 이죠? 네이밍 변경 부탁드릴게요!

Comment on lines 174 to 178
.susuClickable(
rippleEnabled = false,
) {
onClick()
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ripple 넣어주시구, susuClickable(rippleEnabled = false, onClick = onClick) 이 더 이쁠거같아요

fun KakaoLogin(
onClick: () -> Unit,
) {
Box(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Box 없어도 되지 않나유?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

append(stringResource(R.string.signup_vote_question_5))
}
},
lineHeight = 40.sp,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이렇게 따로 lineHeight를 지정한 이유가 뭘까욥..??

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스크린샷 2024-01-06 오후 5 41 11

요 부분인데, AnnotatedString을 쓰면서 2가지 textStyle(title_l, text_l)을 이미 spanStyle로 지정한 상태거든요
그 textStyle 안에 lineHeight가 정의되어 있는데, 아래처럼 안 먹어서 따로 지정해주었습니다~
스크린샷 2024-01-06 오후 5 45 24

Copy link
Contributor

@syb8200 syb8200 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다! 수고하셨습니다!

@yangsooplus yangsooplus merged commit 5246d4a into develop Jan 6, 2024
1 check passed
@jinukeu jinukeu deleted the feature/MZ-160-splash-to-login branch January 15, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] Splash, SignUpVote, Login UI 작업
3 participants