Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
package com.lyrics.feelin.presentation.view.onboarding.welcome

import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
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.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.font.FontWeight.Companion.ExtraBold
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.withStyle
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.lyrics.feelin.R
import com.lyrics.feelin.presentation.designsystem.theme.FeelinTheme
import com.lyrics.feelin.presentation.designsystem.theme.FeelinTypography
import com.lyrics.feelin.presentation.designsystem.theme.LightBrandPrimary

@Composable
fun WelcomeScreen(modifier: Modifier = Modifier) {
Box(modifier = modifier.fillMaxSize()) {
Column(
modifier = Modifier
.fillMaxSize()
.padding(horizontal = 20.dp),
verticalArrangement = Arrangement.Center
) {
Text(
modifier = Modifier.fillMaxWidth(),
text = buildAnnotatedString {
withStyle(
style = SpanStyle(
fontSize = 28.sp,
fontWeight = ExtraBold
)
) {
append("Feelin")
}
append("에 오신걸 환영해요!")
},
style = FeelinTypography.heading1,
textAlign = TextAlign.Center
)

Spacer(modifier = Modifier.height(20.dp))

Image(
painter = painterResource(R.drawable.welcome_illustration),
contentDescription = "Welcome Illustration",
modifier = Modifier.fillMaxWidth()
)
}

Box(
modifier = Modifier
.align(Alignment.BottomCenter)
.fillMaxWidth()
.height(150.dp)
.background(
brush = Brush.verticalGradient(
colors = listOf(
Color.Transparent,
LightBrandPrimary.copy(alpha = 0.2f)
)
)
)
)
}
}

@Preview(showBackground = true)
@Composable
private fun WelcomeScreenPreview() {
FeelinTheme {
WelcomeScreen()
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.