Skip to content

Commit

Permalink
[FEAT/#191] 인턴 공고 요약 컴포넌트 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
arinming committed Sep 2, 2024
1 parent 266f419 commit e518f48
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 34 deletions.
45 changes: 17 additions & 28 deletions feature/src/main/java/com/terning/feature/intern/InternRoute.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ package com.terning.feature.intern

import android.view.ViewGroup
import android.webkit.WebView
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Icon
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
Expand All @@ -33,7 +31,6 @@ import com.terning.core.designsystem.component.topappbar.BackButtonTopAppBar
import com.terning.core.designsystem.theme.Black
import com.terning.core.designsystem.theme.Grey200
import com.terning.core.designsystem.theme.Grey400
import com.terning.core.designsystem.theme.TerningMain
import com.terning.core.designsystem.theme.TerningTheme
import com.terning.core.extension.customShadow
import com.terning.core.extension.toast
Expand Down Expand Up @@ -170,40 +167,36 @@ fun InternScreen(
viewCount = decimal.format(internInfoModel.viewCount)
)

Spacer(modifier = modifier.padding(top = 16.dp))

InternPageTitle(
modifier = modifier,
text = stringResource(id = R.string.intern_sub_title_intern_summary)
)

Column(
modifier = modifier
.border(
width = 1.dp,
color = TerningMain,
shape = RoundedCornerShape(size = 5.dp)
)
.fillMaxWidth()
.padding(start = 16.dp, top = 16.dp, bottom = 16.dp),
verticalArrangement = Arrangement.spacedBy(
6.dp,
Alignment.CenterVertically
),
horizontalAlignment = Alignment.Start,
modifier = modifier.padding(
top = 4.dp,
bottom = 4.dp,
start = 10.dp
)
) {
internInfoList.forEach { (title, value) ->
InternInfoRow(title, value)
}
}
}

Column(
verticalArrangement = Arrangement.Top,
) {
InternPageTitle(
modifier = modifier,
text = stringResource(id = R.string.intern_sub_title_intern_summary)
)
Spacer(modifier = modifier.padding(top = 16.dp))

InternPageTitle(
modifier = modifier,
text = stringResource(id = R.string.intern_info_request)
)
}

Column(
verticalArrangement = Arrangement.Top,
) {
Column(
modifier = modifier
.padding(horizontal = 24.dp)
Expand All @@ -225,10 +218,6 @@ fun InternScreen(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Start
) {
Icon(
painter = painterResource(id = R.drawable.ic_second_info_20),
contentDescription = null,
)
Text(
text = stringResource(id = R.string.intern_info_work),
style = TerningTheme.typography.button2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.unit.dp
import com.terning.core.designsystem.theme.Black
import com.terning.core.designsystem.theme.Grey400
import com.terning.core.designsystem.theme.Grey500
import com.terning.core.designsystem.theme.TerningTheme

@Composable
fun InternInfoRow(title: String, value: String) {
Row(
horizontalArrangement = Arrangement.spacedBy(12.dp, Alignment.Start),
horizontalArrangement = Arrangement.spacedBy(23.dp, Alignment.Start),
verticalAlignment = Alignment.Top,
) {
Text(
text = title,
style = TerningTheme.typography.body2,
color = Black,
color = Grey500,
)
Text(
text = value,
style = TerningTheme.typography.body3,
color = Grey500,
color = Grey400,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ fun InternPageTitle(
.padding(
top = 7.dp,
bottom = 6.dp,
start = 24.dp
)
) {
VerticalDivider(
Expand Down
3 changes: 2 additions & 1 deletion feature/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@
<string name="intern_sub_title_intern_summary">공고 요약</string>
<string name="intern_info_request">자격 요건</string>
<string name="intern_sub_title_intern_detail">상세 정보</string>
<string name="intern_info_work">직무</string>
<string name="intern_info_work">모집대상</string>
<string name="intern_info_work">모집직무</string>
<string name="intern_scrap_add_toast_message">관심 공고가 캘린더에 스크랩되었어요!</string>
<string name="intern_scrap_delete_toast_message">관심 공고가 캘린더에서 사라졌어요!</string>

Expand Down

0 comments on commit e518f48

Please sign in to comment.