-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Team-ReMind/feat/doctor_main
Feat/doctor main
- Loading branch information
Showing
84 changed files
with
2,393 additions
and
392 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,21 +1,26 @@ | ||
package com.example.remind.app | ||
|
||
sealed class Screens(val route: String) { | ||
object Splash: Screens("splash") { | ||
object SplashScreen: Screens("splash_screen") | ||
} | ||
object Register: Screens("register") { | ||
object Login: Screens("login") | ||
object SelectType: Screens("selecttype") | ||
} | ||
|
||
object Doctor: Screens("doctor") { | ||
object PatienceRegister: Screens("PatienceRegister") | ||
object DoctorMain: Screens("DoctorMain") | ||
object DoctorPatienceRegister: Screens("PatienceRegister_doctor") | ||
} | ||
object Center: Screens("center") { | ||
object PatienceRegister: Screens("PatienceRegister") | ||
object CenterMain: Screens("CenterMain") | ||
object CenterPatienceRegister: Screens("PatienceRegister_center") | ||
} | ||
object Patience: Screens("patience") { | ||
object Fitst: Screens("FirstScreen") | ||
object Second: Screens("SecondScreen") | ||
object Third: Screens("ThirdScreen") | ||
object Fourth: Screens("FourthScreen") | ||
object Home: Screens("HomeScreen") | ||
object MoodChart: Screens("MoodChart") | ||
object Medicine: Screens("Medicine") | ||
object MyPage: Screens("MyPage") | ||
} | ||
} |
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
53 changes: 53 additions & 0 deletions
53
app/src/main/java/com/example/remind/core/common/component/BasicButton.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,53 @@ | ||
package com.example.remind.core.common.component | ||
|
||
import androidx.compose.foundation.layout.PaddingValues | ||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.foundation.shape.RoundedCornerShape | ||
import androidx.compose.material3.Button | ||
import androidx.compose.material3.ButtonDefaults | ||
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.tooling.preview.Preview | ||
import androidx.compose.ui.unit.Dp | ||
import androidx.compose.ui.unit.dp | ||
import com.example.remind.core.designsystem.theme.RemindTheme | ||
|
||
@Composable | ||
fun BasicButton( | ||
modifier: Modifier = Modifier, | ||
text: String, | ||
backgroundColor: Color, | ||
textColor: Color, | ||
verticalPadding: Dp, | ||
onClick: () -> Unit | ||
) { | ||
Button( | ||
modifier = modifier.fillMaxWidth(), | ||
onClick = onClick, | ||
shape = RoundedCornerShape(20.dp), | ||
colors = ButtonDefaults.buttonColors( | ||
containerColor = backgroundColor, | ||
contentColor = textColor | ||
), | ||
contentPadding = PaddingValues(vertical = verticalPadding), | ||
) { | ||
Text( | ||
text = text, | ||
style = RemindTheme.typography.c1Medium | ||
) | ||
} | ||
} | ||
|
||
@Composable | ||
@Preview | ||
fun BasicButtonPreview() { | ||
BasicButton( | ||
text = "삭제", | ||
backgroundColor = RemindTheme.colors.main_6, | ||
onClick = {}, | ||
verticalPadding = 0.dp, | ||
textColor = RemindTheme.colors.text | ||
) | ||
} |
Oops, something went wrong.