-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature/login_term] 약관동의 페이지 이동 (#17)
- Loading branch information
Showing
4 changed files
with
75 additions
and
4 deletions.
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
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
57 changes: 57 additions & 0 deletions
57
presentation/src/main/java/com/meongmoryteam/presentation/ui/login/TermScreen.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,57 @@ | ||
package com.meongmoryteam.presentation.ui.login | ||
|
||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material3.Icon | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.graphics.Color | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.res.stringResource | ||
import androidx.compose.ui.text.style.TextAlign | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import com.meongmoryteam.presentation.R | ||
|
||
@Composable | ||
fun TermScreen( | ||
navigateToPreviousScreen: () -> Unit, | ||
navigateToNicknameScreen: () -> Unit | ||
) { | ||
Column( | ||
modifier = Modifier | ||
.fillMaxSize() | ||
.background(Color.White) | ||
) { | ||
TermTitle() | ||
TermContent() | ||
} | ||
} | ||
|
||
@Composable | ||
fun TermTitle() { | ||
Icon( | ||
modifier = Modifier.padding(12.dp), | ||
painter = painterResource(R.drawable.ic_left_btn), | ||
contentDescription = stringResource(R.string.term_back_button), | ||
) | ||
Text( | ||
modifier = Modifier | ||
.fillMaxWidth(), | ||
textAlign = TextAlign.Center, | ||
text = stringResource(R.string.term_title), | ||
) | ||
} | ||
|
||
@Preview | ||
@Composable | ||
fun TermContent() { | ||
TermScreen( | ||
navigateToPreviousScreen = {}, | ||
navigateToNicknameScreen = {} | ||
) | ||
} |
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