Prep screens we want user to have
This commit is contained in:
@@ -97,7 +97,7 @@ fun CreateProfileScreen(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
value = createProfileViewModel.createProfileFormState.nameField.text.value,
|
||||
onValueChange = {
|
||||
|
||||
createProfileViewModel.createProfileFormState.nameField.text.value = it
|
||||
},
|
||||
isError = createProfileViewModel.createProfileFormState.nameField.errorMessage.value != null,
|
||||
supportingText = createProfileViewModel.createProfileFormState.nameField.errorMessage.value?.let {
|
||||
@@ -112,7 +112,7 @@ fun CreateProfileScreen(
|
||||
},
|
||||
maxLines = 1,
|
||||
keyboardOptions = KeyboardOptions(
|
||||
keyboardType = KeyboardType.Phone,
|
||||
keyboardType = KeyboardType.Text,
|
||||
),
|
||||
label = {
|
||||
Text(
|
||||
@@ -144,7 +144,7 @@ fun CreateProfileScreen(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
value = createProfileViewModel.createProfileFormState.biographyField.text.value,
|
||||
onValueChange = {
|
||||
|
||||
createProfileViewModel.createProfileFormState.biographyField.text.value = it
|
||||
},
|
||||
isError = createProfileViewModel.createProfileFormState.biographyField.errorMessage.value != null,
|
||||
supportingText = createProfileViewModel.createProfileFormState.biographyField.errorMessage.value?.let {
|
||||
@@ -159,7 +159,7 @@ fun CreateProfileScreen(
|
||||
},
|
||||
maxLines = 1,
|
||||
keyboardOptions = KeyboardOptions(
|
||||
keyboardType = KeyboardType.Phone,
|
||||
keyboardType = KeyboardType.Text,
|
||||
),
|
||||
label = {
|
||||
Text(
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
package ac.aux.compose.ui.composable
|
||||
|
||||
import ac.aux.compose.ui.theme.AuxTheme
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
@Composable
|
||||
fun FeedScreen(
|
||||
text: String
|
||||
) {
|
||||
|
||||
Scaffold { innerPadding ->
|
||||
Column(
|
||||
modifier = Modifier.padding(innerPadding).fillMaxSize()
|
||||
) {
|
||||
// Notes
|
||||
// Stories/Reels
|
||||
// Pictures
|
||||
// Private Messages (deferred to another app)
|
||||
// Notifications
|
||||
Column(
|
||||
modifier = Modifier.padding(20.dp).fillMaxSize(),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.Center
|
||||
) {
|
||||
Text(
|
||||
"\"$text\" functionality coming soon",
|
||||
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
private fun FeedScreenPreview() {
|
||||
AuxTheme {
|
||||
Surface(
|
||||
modifier = Modifier.padding(20.dp)
|
||||
) {
|
||||
FeedScreen(
|
||||
"Feed"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -69,7 +69,7 @@ fun LandingScreen(
|
||||
}
|
||||
|
||||
Text(
|
||||
text = "Sign in to Torch via nsec, or remote signer",
|
||||
text = "Sign in to Aux via nsec, or remote signer",
|
||||
modifier = Modifier.padding(10.dp),
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
textAlign = TextAlign.Center
|
||||
@@ -89,7 +89,7 @@ fun LandingScreen(
|
||||
|
||||
}
|
||||
Text(
|
||||
text = "If you are new to Torch or just want to create a fresh profile",
|
||||
text = "If you are new to Aux or just want to create a fresh profile",
|
||||
modifier = Modifier.padding(10.dp),
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
textAlign = TextAlign.Center
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
package ac.aux.compose.ui.composable
|
||||
|
||||
import ac.aux.compose.ui.theme.AuxTheme
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
@Composable
|
||||
fun SocialPreconditionScreen(
|
||||
text: String
|
||||
) {
|
||||
Scaffold { innerPadding ->
|
||||
Column(
|
||||
modifier = Modifier.padding(innerPadding).fillMaxSize()
|
||||
) {
|
||||
// Invite A Friend
|
||||
// Accept an invite
|
||||
Column(
|
||||
modifier = Modifier.padding(20.dp).fillMaxSize(),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.Center
|
||||
) {
|
||||
Text(
|
||||
"\"$text\" functionality coming soon",
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Composable
|
||||
private fun SocialPreconditionScreenPreview() {
|
||||
AuxTheme {
|
||||
Surface(
|
||||
modifier = Modifier.padding(20.dp)
|
||||
) {
|
||||
SocialPreconditionScreen(
|
||||
"Social Precondition"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,7 @@ fun AuxNavHost(
|
||||
CreateProfileScreen(
|
||||
onNavigateToChatListRoute = {
|
||||
navController.navigate(
|
||||
route = ImplementationPendingRoute("Chat List")
|
||||
route = ImplementationPendingRoute("Feed")
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user