Skip to content

Commit

Permalink
starting ProfileInfoSidebar, profile picture done
Browse files Browse the repository at this point in the history
  • Loading branch information
raneric committed Jul 13, 2024
1 parent a14baed commit bd55d72
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package ui.uiComponent

import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.Card
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.unit.dp
import myresume.composeapp.generated.resources.Res
import myresume.composeapp.generated.resources.photo_profile
import org.jetbrains.compose.resources.painterResource

@Composable
fun ProfileInfoSideBar(modifier: Modifier = Modifier) {
Card(
modifier = modifier
.fillMaxHeight()
.width(300.dp)
.offset(y = 4.dp),
shape = MaterialTheme.shapes.small,
elevation = 3.dp
) {
Column(
modifier = Modifier.padding(top = 16.dp),
verticalArrangement = Arrangement.spacedBy(16.dp),
horizontalAlignment = Alignment.CenterHorizontally
) {
ProfilePicture()
}
}
}

@Composable
fun ProfilePicture(modifier: Modifier = Modifier) {
Image(
modifier = modifier.size(190.dp).clip(CircleShape),
painter = painterResource(Res.drawable.photo_profile),
contentDescription = ""
)
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
package ui.uiScreen

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import ui.uiComponent.ProfileInfoSideBar
import ui.uiComponent.SocialNetworkBar

@Composable
fun ContentScreen(modifier: Modifier = Modifier) {
Row(modifier = modifier) {
Row(
modifier = modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.SpaceBetween
) {
SocialNetworkBar()
ProfileInfoSideBar()
}
}

0 comments on commit bd55d72

Please sign in to comment.