Skip to content

Commit

Permalink
feature #866: feat FortuneTopBar preview
Browse files Browse the repository at this point in the history
  • Loading branch information
chattymin authored and l2hyunwoo committed Sep 24, 2024
1 parent cd5322a commit ea238d3
Showing 1 changed file with 11 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
package org.sopt.official.feature.fortune.feature.fortuneAmulet

import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Spacer
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.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Text
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.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import coil.compose.AsyncImage
import kotlinx.serialization.Serializable
import org.sopt.official.designsystem.SoptTheme
import org.sopt.official.feature.fortune.component.RoundedCornerButton

@Serializable
data object FortuneAmulet
Expand Down Expand Up @@ -74,21 +69,17 @@ private fun FortuneAmuletScreen(

Spacer(modifier = Modifier.weight(1f))

Box(
modifier = Modifier
.border(
width = 1.dp,
color = SoptTheme.colors.primary,
shape = RoundedCornerShape(9999.dp)
),
contentAlignment = Alignment.Center
RoundedCornerButton(
content = {
Text(
text = "홈으로 돌아가기",
style = SoptTheme.typography.label18SB,
color = SoptTheme.colors.onBackground,
modifier = Modifier.padding(horizontal = 20.dp, vertical = 12.dp)
)
}
) {
Text(
text = "홈으로 돌아가기",
style = SoptTheme.typography.label18SB,
color = SoptTheme.colors.onBackground,
modifier = Modifier.padding(horizontal = 20.dp, vertical = 12.dp)
)
// TODO: Navigate to Home
}

Spacer(modifier = Modifier.height(50.dp))
Expand Down

0 comments on commit ea238d3

Please sign in to comment.