Skip to content

Commit

Permalink
[feat] : #3 LogoToolbar 컴포넌트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
1971123-seongmin committed Oct 25, 2024
1 parent de85662 commit 7fc6901
Showing 1 changed file with 41 additions and 3 deletions.
44 changes: 41 additions & 3 deletions app/src/main/java/org/sopt/and/presentation/component/Toolbar.kt
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
package org.sopt.and.presentation.component

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Icon
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import org.sopt.and.R
import org.sopt.and.ui.theme.White

@Composable
Expand Down Expand Up @@ -53,4 +54,41 @@ fun Toolbar(
}
}

}

@Composable
fun LogoToolbar(
leadingIcon: @Composable () -> Unit = {},
trailingIcon: @Composable () -> Unit = {},
) {
Box(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 12.dp)
.height(36.dp)
) {
Box(
modifier = Modifier
.align(Alignment.CenterStart)
) {
leadingIcon()
}

Icon(
painter = painterResource(id = R.drawable.ic_wavve_logo),
contentDescription = "wave_logo",
tint = White,
modifier = Modifier
.align(Alignment.Center)
.size(100.dp)
)

Box(
modifier = Modifier
.align(Alignment.CenterEnd)
) {
trailingIcon()
}
}

}

0 comments on commit 7fc6901

Please sign in to comment.