Skip to content

Commit

Permalink
[FEATURE] #140 : 설문, 설문형식 카드 아이템 UI 변경 및 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Mar 2, 2024
1 parent 29b528d commit b3b495e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import com.wap.designsystem.WappTheme
import com.wap.wapp.core.model.survey.Survey
Expand All @@ -30,31 +32,35 @@ internal fun SurveyItemCard(
) {
Column(
verticalArrangement = Arrangement.spacedBy(16.dp),
modifier = Modifier.padding(horizontal = 16.dp),
modifier = Modifier.padding(16.dp),
) {
Row(
horizontalArrangement = Arrangement.End,
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.fillMaxWidth(),
) {
Text(
text = survey.title,
modifier = Modifier.weight(1f),
maxLines = 1,
color = WappTheme.colors.white,
style = WappTheme.typography.titleBold,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
modifier = Modifier.weight(1f),
)

Text(
text = survey.eventName,
color = WappTheme.colors.grayA2,
text = survey.calculateSurveyedAt(),
color = WappTheme.colors.yellow34,
style = WappTheme.typography.captionMedium,
modifier = Modifier.padding(start = 8.dp),
)
}

Text(
text = survey.userName,
text = "${survey.userName}${survey.eventName}",
color = WappTheme.colors.grayBD,
style = WappTheme.typography.contentMedium,
style = WappTheme.typography.labelMedium,
maxLines = 1,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import com.wap.designsystem.WappTheme
import com.wap.wapp.core.model.survey.SurveyForm
Expand All @@ -34,26 +36,29 @@ internal fun SurveyFormItemCard(
) {
Row(
horizontalArrangement = Arrangement.End,
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.fillMaxWidth(),
) {
Text(
text = surveyForm.title,
color = WappTheme.colors.white,
modifier = Modifier.weight(1f),
maxLines = 1,
style = WappTheme.typography.titleBold,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Text(
text = surveyForm.calculateDeadline(),
color = WappTheme.colors.yellow34,
style = WappTheme.typography.captionMedium,
modifier = Modifier.padding(start = 8.dp),
)
}
Text(
text = surveyForm.content,
color = WappTheme.colors.grayBD,
maxLines = 1,
style = WappTheme.typography.contentMedium,
style = WappTheme.typography.labelMedium,
)
}
}
Expand Down

0 comments on commit b3b495e

Please sign in to comment.