-
Notifications
You must be signed in to change notification settings - Fork 2
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
가게 등록 기능 마무리 #300
Merged
hsgo2430
merged 2 commits into
develop
from
feature/hsgo/business_the_first_store_insert
Jul 6, 2024
Merged
가게 등록 기능 마무리 #300
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 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
2 changes: 0 additions & 2 deletions
2
...koreatech/business/feature/insertstore/finalcheckstore/FinalCheckStoreScreenSideEffect.kt
This file contains 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
121 changes: 121 additions & 0 deletions
121
...java/in/koreatech/business/feature/insertstore/finishregisterstore/FinishRegisterStore.kt
This file contains 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,121 @@ | ||
package `in`.koreatech.business.feature.insertstore.finishregisterstore | ||
|
||
import androidx.compose.foundation.Image | ||
import androidx.compose.foundation.clickable | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
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.material.Button | ||
import androidx.compose.material.ButtonDefaults | ||
import androidx.compose.material.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.RectangleShape | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.res.stringResource | ||
import androidx.compose.ui.text.font.FontWeight | ||
import androidx.compose.ui.text.style.TextAlign | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import androidx.compose.ui.unit.sp | ||
import `in`.koreatech.koin.core.R | ||
import `in`.koreatech.business.ui.theme.Blue1 | ||
import `in`.koreatech.business.ui.theme.ColorPrimary | ||
|
||
@Composable | ||
fun FinishRegisterScreen( | ||
modifier: Modifier = Modifier, | ||
goToMainScreen: () -> Unit, | ||
onBackPressed: () -> Unit | ||
) { | ||
Column( | ||
modifier = modifier.fillMaxSize() | ||
) { | ||
Box( | ||
modifier = modifier | ||
.padding(top = 56.dp, start = 10.dp , bottom = 18.dp) | ||
.width(40.dp) | ||
.height(40.dp) | ||
.clickable { onBackPressed } | ||
|
||
) { | ||
Image( | ||
painter = painterResource(R.drawable.ic_arrow_left), | ||
contentDescription = "backArrow", | ||
modifier = modifier | ||
.width(40.dp) | ||
.height(40.dp) | ||
.clickable { } | ||
) | ||
} | ||
|
||
Image( | ||
painter = painterResource(id = R.drawable.ic_finish_check), | ||
contentDescription = "finish_mark", | ||
alignment = Alignment.Center, | ||
modifier = modifier | ||
.fillMaxWidth() | ||
.padding(top = 103.dp, bottom = 30.dp) | ||
.height(55.dp) | ||
.width(55.dp) | ||
) | ||
|
||
Text( | ||
text = stringResource(R.string.insert_store_finish), | ||
fontSize = 24.sp, | ||
color = ColorPrimary, | ||
fontWeight = FontWeight.Bold, | ||
textAlign = TextAlign.Center, | ||
modifier = modifier | ||
.fillMaxWidth() | ||
.padding(horizontal = 46.dp) | ||
.padding(bottom = 16.dp) | ||
) | ||
|
||
Text( | ||
text = stringResource(R.string.insert_store_finish_guide), | ||
fontSize = 16.sp, | ||
color = Blue1, | ||
fontWeight = FontWeight.Bold, | ||
textAlign = TextAlign.Center, | ||
modifier = modifier | ||
.fillMaxWidth() | ||
.padding(horizontal = 46.dp) | ||
.padding(bottom = 51.dp) | ||
) | ||
|
||
Button( | ||
onClick = goToMainScreen, | ||
colors = ButtonDefaults.buttonColors(ColorPrimary), | ||
shape = RectangleShape, | ||
modifier = modifier | ||
.fillMaxWidth() | ||
.padding(horizontal = 33.dp) | ||
.height(44.dp) | ||
) { | ||
Text( | ||
text = stringResource(id = R.string.go_to_main_screen), | ||
fontSize = 15.sp, | ||
fontWeight = FontWeight.Bold, | ||
color = Color.White | ||
) | ||
} | ||
} | ||
} | ||
|
||
|
||
@Preview | ||
@Composable | ||
fun PreviewStartInsertScreen(){ | ||
FinishRegisterScreen( | ||
modifier = Modifier, | ||
goToMainScreen = {} , | ||
onBackPressed = {} | ||
) | ||
} |
This file contains 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 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,17 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="55dp" | ||
android:height="55dp" | ||
android:viewportWidth="55" | ||
android:viewportHeight="55"> | ||
<path | ||
android:pathData="M27.5,27.5m-26,0a26,26 0,1 1,52 0a26,26 0,1 1,-52 0" | ||
android:strokeWidth="3" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#F7941E"/> | ||
<path | ||
android:pathData="M14.781,26.813L23.719,35.75L40.219,19.25" | ||
android:strokeWidth="3" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#F7941E" | ||
android:strokeLineCap="round"/> | ||
</vector> |
This file contains 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 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.
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.
stringResource에 등록해서 사용해주세요.
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.
앗 저 코드는 사용하지 않는 코드입니다! 지웠는데 어째서인지 남아있네요...