Skip to content

Commit

Permalink
Headers in CreateApplicant and CandidateSearchScreen screens (#30)
Browse files Browse the repository at this point in the history
Changed font and styling
  • Loading branch information
Eqerem-Hena authored Jan 13, 2025
1 parent 2e59ffc commit 59ec448
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.navigation.NavController
Expand Down Expand Up @@ -165,13 +166,24 @@ fun CreateApplicant(
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.spacedBy(16.dp) // Space between elements
) {
Text(
text = stringResource(R.string.create_applicant),
style = MaterialTheme.typography.headlineMedium,
modifier = Modifier
.padding(bottom = 16.dp, top = 40.dp)
.align(Alignment.CenterHorizontally)
)
Column(
modifier = Modifier.padding(vertical = 16.dp),
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(
text = stringResource(R.string.create_applicant),
style = MaterialTheme.typography.headlineMedium.copy(
fontWeight = FontWeight.Bold
),
color = MaterialTheme.colorScheme.primary
)
Text(
text = stringResource(R.string.create_information),
style = MaterialTheme.typography.bodyLarge,
color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.7f),
modifier = Modifier.padding(top = 8.dp)
)
}

// Name Field with Error Message
Column(modifier = Modifier.fillMaxWidth()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ fun CandidateSearchScreen(
) {
// Header Section
Column(
horizontalAlignment = Alignment.CenterHorizontally,
modifier = Modifier.padding(bottom = 16.dp)
) {
Text(
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<string name="phoneNumber">Phone Number</string>
<string name="bio">Short Bio</string>
<string name="create_applicant">Show You\'re Available!</string>
<string name="create_information">Fill in your information!</string>
<string name="submit">Submit</string>
<string name="upload_photo">Upload Photo</string>
<string name="change_photo">Change Photo</string>
Expand Down

0 comments on commit 59ec448

Please sign in to comment.