-
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.
- Loading branch information
Showing
12 changed files
with
318 additions
and
67 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
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
46 changes: 46 additions & 0 deletions
46
...eApp/src/commonMain/kotlin/com/braiso_22/web/main_page/profile_info/CompactProfileInfo.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,46 @@ | ||
package com.braiso_22.web.main_page.profile_info | ||
|
||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.Spacer | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material3.MaterialTheme | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import braiso_22.composeapp.generated.resources.Res | ||
import braiso_22.composeapp.generated.resources.full_stack_developer | ||
import com.braiso_22.web.main_page.Event | ||
import com.braiso_22.web.theme.smallPadding | ||
import com.braiso_22.web.theme.verySmallPadding | ||
import org.jetbrains.compose.resources.stringResource | ||
|
||
@Composable | ||
fun CompactProfileInfo( | ||
onEvent: (Event) -> Unit, | ||
modifier: Modifier = Modifier, | ||
) { | ||
Column( | ||
horizontalAlignment = Alignment.CenterHorizontally, | ||
modifier = modifier, | ||
) { | ||
ProfileImage( | ||
size = 192, | ||
modifier = Modifier.padding(smallPadding), | ||
) | ||
Spacer(Modifier.padding(smallPadding)) | ||
Text( | ||
text = "Brais Fernández Vázquez", | ||
style = MaterialTheme.typography.titleLarge | ||
) | ||
Spacer(Modifier.padding(verySmallPadding)) | ||
Text( | ||
stringResource(Res.string.full_stack_developer), | ||
style = MaterialTheme.typography.titleMedium | ||
) | ||
Spacer(Modifier.padding(verySmallPadding)) | ||
LocationInfo() | ||
Spacer(Modifier.padding(verySmallPadding)) | ||
CompactSocialLinks(onEvent) | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...App/src/commonMain/kotlin/com/braiso_22/web/main_page/profile_info/ExpandedProfileInfo.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,45 @@ | ||
package com.braiso_22.web.main_page.profile_info | ||
|
||
import androidx.compose.foundation.layout.* | ||
import androidx.compose.material3.MaterialTheme | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import braiso_22.composeapp.generated.resources.Res | ||
import braiso_22.composeapp.generated.resources.full_stack_developer | ||
import com.braiso_22.web.main_page.Event | ||
import com.braiso_22.web.theme.smallPadding | ||
import com.braiso_22.web.theme.verySmallPadding | ||
import org.jetbrains.compose.resources.stringResource | ||
|
||
@Composable | ||
fun ExpandedProfileInfo( | ||
onEvent: (Event) -> Unit, | ||
modifier: Modifier = Modifier, | ||
) { | ||
Row( | ||
horizontalArrangement = Arrangement.Center, | ||
modifier = modifier, | ||
) { | ||
ProfileImage( | ||
modifier = Modifier.padding(smallPadding), | ||
) | ||
Spacer(Modifier.padding(smallPadding)) | ||
Column { | ||
|
||
Text( | ||
text = "Brais Fernández Vázquez", | ||
style = MaterialTheme.typography.titleLarge | ||
) | ||
Spacer(Modifier.padding(verySmallPadding)) | ||
Text( | ||
stringResource(Res.string.full_stack_developer), | ||
style = MaterialTheme.typography.titleMedium | ||
) | ||
Spacer(Modifier.padding(verySmallPadding)) | ||
LocationInfo() | ||
Spacer(Modifier.padding(verySmallPadding)) | ||
SocialLinks(onEvent) | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...seApp/src/commonMain/kotlin/com/braiso_22/web/main_page/profile_info/MediumProfileInfo.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,50 @@ | ||
package com.braiso_22.web.main_page.profile_info | ||
|
||
import androidx.compose.foundation.layout.* | ||
import androidx.compose.material3.MaterialTheme | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import braiso_22.composeapp.generated.resources.Res | ||
import braiso_22.composeapp.generated.resources.full_stack_developer | ||
import com.braiso_22.web.main_page.Event | ||
import com.braiso_22.web.theme.mediumPadding | ||
import com.braiso_22.web.theme.smallPadding | ||
import com.braiso_22.web.theme.verySmallPadding | ||
import org.jetbrains.compose.resources.stringResource | ||
|
||
@Composable | ||
fun MediumProfileInfo( | ||
onEvent: (Event) -> Unit, | ||
modifier: Modifier = Modifier, | ||
) { | ||
Column( | ||
horizontalAlignment = Alignment.CenterHorizontally, | ||
modifier = modifier | ||
) { | ||
Row( | ||
horizontalArrangement = Arrangement.SpaceBetween, | ||
verticalAlignment = Alignment.CenterVertically, | ||
) { | ||
ProfileImage( | ||
modifier = Modifier.padding(smallPadding), | ||
) | ||
Spacer(Modifier.padding(mediumPadding)) | ||
Column { | ||
Text( | ||
text = "Brais Fernández Vázquez", | ||
style = MaterialTheme.typography.titleLarge | ||
) | ||
Spacer(Modifier.padding(verySmallPadding)) | ||
Text( | ||
stringResource(Res.string.full_stack_developer), | ||
style = MaterialTheme.typography.titleMedium | ||
) | ||
Spacer(Modifier.padding(verySmallPadding)) | ||
LocationInfo() | ||
} | ||
} | ||
SocialLinks(onEvent) | ||
} | ||
} |
Oops, something went wrong.