-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kuring-168 캠퍼스맵 탭을 compose로 migrate (#236)
* [삭제] 캠퍼스맵 XML 레이아웃 제거 * [수정] 캠퍼스맵 화면을 compose로 migrate * [수정] MainScreen에서 compose 캠퍼스맵 화면 호출 * [삭제] 사용하지 않는 레이아웃, fragment 파일 제거
- Loading branch information
Showing
11 changed files
with
74 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 0 additions & 61 deletions
61
feature/main/src/main/java/com/ku_stacks/ku_ring/main/archive/ArchiveFragment.kt
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
feature/main/src/main/java/com/ku_stacks/ku_ring/main/campus_onboarding/CampusFragment.kt
This file was deleted.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
feature/main/src/main/java/com/ku_stacks/ku_ring/main/campusmap/CampusMapScreen.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package com.ku_stacks.ku_ring.main.campusmap | ||
|
||
import androidx.compose.foundation.Image | ||
import androidx.compose.foundation.layout.Arrangement | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material.Scaffold | ||
import androidx.compose.material.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.res.stringResource | ||
import androidx.compose.ui.text.TextStyle | ||
import androidx.compose.ui.text.font.FontWeight | ||
import androidx.compose.ui.unit.dp | ||
import androidx.compose.ui.unit.sp | ||
import com.ku_stacks.ku_ring.designsystem.components.LightAndDarkPreview | ||
import com.ku_stacks.ku_ring.designsystem.components.topbar.CenterTitleTopBar | ||
import com.ku_stacks.ku_ring.designsystem.kuringtheme.KuringTheme | ||
import com.ku_stacks.ku_ring.designsystem.kuringtheme.values.Pretendard | ||
import com.ku_stacks.ku_ring.main.R | ||
|
||
@Composable | ||
fun CampusMapScreen( | ||
modifier: Modifier = Modifier, | ||
) { | ||
Scaffold( | ||
topBar = { | ||
CenterTitleTopBar( | ||
title = stringResource(R.string.campus_map_title), | ||
navigation = {}, | ||
action = {}, | ||
modifier = Modifier.padding(16.dp), | ||
) | ||
}, | ||
modifier = modifier.fillMaxSize(), | ||
backgroundColor = KuringTheme.colors.background, | ||
) { | ||
Column( | ||
modifier = Modifier | ||
.padding(it) | ||
.fillMaxSize(), | ||
verticalArrangement = Arrangement.Center, | ||
horizontalAlignment = Alignment.CenterHorizontally, | ||
) { | ||
Image( | ||
painter = painterResource(R.drawable.ic_construction), | ||
contentDescription = null, | ||
) | ||
Text( | ||
text = stringResource(R.string.campus_on_construction), | ||
style = TextStyle( | ||
fontSize = 14.sp, | ||
lineHeight = 22.82.sp, | ||
fontFamily = Pretendard, | ||
fontWeight = FontWeight(500), | ||
color = KuringTheme.colors.textCaption1, | ||
) | ||
) | ||
} | ||
} | ||
} | ||
|
||
@LightAndDarkPreview | ||
@Composable | ||
private fun CampusMapScreenPreview() { | ||
KuringTheme { | ||
CampusMapScreen() | ||
} | ||
} |
100 changes: 0 additions & 100 deletions
100
feature/main/src/main/java/com/ku_stacks/ku_ring/main/notice/NoticesParentFragment.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.