-
Notifications
You must be signed in to change notification settings - Fork 3
[UI] my page 화면 구현 완료 #31
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
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
05c109d
[chore]: deploymentTargetSelector.xml 파일 gitignore에 추가(#26)
JJUYAAA 100ffc8
[refactor]: AuthorHeader 버튼 컴포넌트 활용으로 수정(#26)
JJUYAAA 565b51d
[ui]: MenuItemButton 컴포넌트 생성(#26)
JJUYAAA 1add505
[ui]: MyPageScreen 구현(#26)
JJUYAAA bc199ea
[ui]: 캐릭터 png drawable 폴더에 추가(#26)
JJUYAAA 85aa259
[ui]: 반응 screen 구현(#26)
JJUYAAA 0c4f8dd
[ui]: 편집 screen 구현, 칭호 카드 컴포넌트,data class 생성(#26)
JJUYAAA b887bf6
[ui]: 회원탈퇴 screen 구현(#26)
JJUYAAA 384794c
[fix]: push 알림 페이지에서 토글 스위치 사용을 위한 수정(#26)
JJUYAAA de340a3
[ui]: Toast 컴포넌트 생성(#26)
JJUYAAA 3717750
[ui]: 알림 설정 페이지 구현(#26)
JJUYAAA d2b7661
[ui]: 회원탈퇴페이지 dialog 적용(#26)
JJUYAAA aa65071
[chore]: 안 쓰는 import 정리(#26)
JJUYAAA 185c3af
[feat]: 피드, 책 data class 생성(#26)
JJUYAAA 6a30f47
[feat]: 책 Viewmodel 생성(#26)
JJUYAAA 5704595
[ui]: 저장 페이지 - BookContent까지 구현(#26)
JJUYAAA f7ad94f
[ui]: 저장 페이지 - 피드 컴포넌트 생성(#26)
JJUYAAA 1b8e9b3
[ui]: 저장 페이지 - 피드 content 구현(#26)
JJUYAAA 9ce2027
[ui]: 회원탈퇴 페이지 생성(#26)
JJUYAAA f7995a4
[ui]: 회원탈퇴 페이지 수정(#26)
JJUYAAA c2eea1b
[ui]: SavedFeedCard 컴포넌트 수정(#26)
JJUYAAA ed68e22
[chore]: 패키지 이름 변경 data -> mock(#26)
JJUYAAA 3e9b142
[chore]: mypage.component 패키지 생성(#26)
JJUYAAA b557592
[chore]: import 정리(#26)
JJUYAAA c3e106c
[ui]: ReactionScreen 버튼 컴포넌트 변경(#26)
JJUYAAA 419ad1e
[ui]: dialog popup 수정 및 적용(#26)
JJUYAAA 24b5928
[ui]: 탭바 수정 및 컴포넌트 수정(#26)
JJUYAAA a06f045
[chore]: 전달할 객체 data 수정(#26)
JJUYAAA c2a5d07
[refactor]: data 네이밍 수정(#26)
JJUYAAA d4d6f90
[refactor]: Color 파일 수정(#26)
JJUYAAA 435a60c
[refactor]: AuthorHeader OnButtonClick 매개변수로 받을 수 있도록 수정(#26)
JJUYAAA 1e22cd1
[refactor]: RoleCard RoundCornerShape 통일 및 밝기 수정(#26)
JJUYAAA 1c039af
[refactor]: 저장페이지 -> 뷰모델 상태관리 일관성 있게끔 수정, 네이밍 수정(#26)
JJUYAAA 3e893d6
[refactor]: SavedScreen, SavedFeedCard -> feedItem 적용(#26)
JJUYAAA 1e3a2b1
[refactor]: color 수정(#26)
JJUYAAA 198f78c
[refactor]: SavedScreen UI 간단한 수정(#26)
JJUYAAA dd431b3
[refactor]: SavedScreen content들 component로 분리(#26)
JJUYAAA da83f88
[refactor]: backgroundColor 제거(#26)
JJUYAAA c5fd480
[refactor]: Toast 컴포넌트명 수정 -> ToastWithDate 및 preview 수정(#26)
JJUYAAA 6fef2cf
[refactor]: ic_heat_filled 아이콘 추가 및 적용(#26)
JJUYAAA 83ee935
[refactor]:ReactionScreen 필터링 로직 적용, EditProfileScreen 텍스트필드 적용 및 컴포넌…
JJUYAAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ | |
| .externalNativeBuild | ||
| .cxx | ||
| local.properties | ||
| .idea/deploymentTargetSelector.xml | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
app/src/main/java/com/texthip/thip/ui/common/buttons/MenuItemButton.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| package com.texthip.thip.ui.common.buttons | ||
|
|
||
| import androidx.compose.foundation.background | ||
| import androidx.compose.foundation.clickable | ||
| import androidx.compose.foundation.layout.Arrangement | ||
| import androidx.compose.foundation.layout.Row | ||
| import androidx.compose.foundation.layout.Spacer | ||
| import androidx.compose.foundation.layout.fillMaxWidth | ||
| import androidx.compose.foundation.layout.height | ||
| import androidx.compose.foundation.layout.padding | ||
| import androidx.compose.foundation.layout.width | ||
| import androidx.compose.foundation.shape.RoundedCornerShape | ||
| 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.graphics.Color | ||
| import androidx.compose.ui.graphics.painter.Painter | ||
| import androidx.compose.ui.res.painterResource | ||
| import androidx.compose.ui.res.stringResource | ||
| import androidx.compose.ui.tooling.preview.Preview | ||
| import androidx.compose.ui.unit.dp | ||
| import com.texthip.thip.R | ||
| import com.texthip.thip.ui.theme.ThipTheme.colors | ||
| import com.texthip.thip.ui.theme.ThipTheme.typography | ||
|
|
||
| @Composable | ||
| fun MenuItemButton( | ||
| text: String, | ||
| icon: Painter? = null, | ||
| contentColor: Color, | ||
| backgroundColor: Color, | ||
| hasRightIcon: Boolean = false, | ||
| modifier: Modifier = Modifier, | ||
| onClick: () -> Unit = {}, | ||
| ) { | ||
| val hasLeftIcon = icon != null | ||
|
|
||
| Row( | ||
| modifier = modifier | ||
| .fillMaxWidth() | ||
| .height(56.dp) | ||
| .background(color = backgroundColor, shape = RoundedCornerShape(12.dp)) | ||
| .clickable(onClick = onClick) | ||
| .padding(horizontal = 12.dp), | ||
| verticalAlignment = Alignment.CenterVertically, | ||
| horizontalArrangement = Arrangement.SpaceBetween | ||
| ) { | ||
| Row(verticalAlignment = Alignment.CenterVertically) { | ||
| if (hasLeftIcon) { | ||
| Icon( | ||
| painter = icon, | ||
| contentDescription = null, | ||
| tint = contentColor, | ||
| ) | ||
| Spacer(modifier = Modifier.width(12.dp)) | ||
| } | ||
| Text( | ||
| text = text, | ||
| color = contentColor, | ||
| style = typography.smalltitle_sb600_s16_h24, | ||
| ) | ||
| } | ||
| if (hasRightIcon) { | ||
| Icon( | ||
| painter = painterResource(R.drawable.ic_chevron), | ||
| contentDescription = null, | ||
| tint = contentColor, | ||
| ) | ||
| } | ||
|
|
||
| } | ||
| } | ||
|
|
||
| @Preview | ||
| @Composable | ||
| private fun MenuItemButtonPreview() { | ||
| MenuItemButton( | ||
| text = stringResource(R.string.saved), | ||
| icon = painterResource(R.drawable.ic_save), | ||
| contentColor = colors.White, | ||
| backgroundColor = colors.DarkGrey02, | ||
| hasRightIcon = true, | ||
| modifier = Modifier | ||
| .fillMaxWidth(), | ||
| onClick = {} | ||
| ) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.