Skip to content

Commit

Permalink
feat: 구글 폼 붙이기
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed Mar 5, 2024
1 parent 85ee0fc commit 5e19fc4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import com.no5ing.bbibbi.util.LocalSnackbarHostState
import com.no5ing.bbibbi.util.emptyPermissionState
import com.no5ing.bbibbi.util.getErrorMessage
import com.no5ing.bbibbi.util.localResources
import com.no5ing.bbibbi.util.openBrowser
import com.no5ing.bbibbi.util.openMarket
import timber.log.Timber

Expand Down Expand Up @@ -139,7 +140,7 @@ fun SettingHomePage(
SettingHomePageTopBar(
onDispose = onDispose,
)
Spacer(modifier = Modifier.height(32.dp))
Spacer(modifier = Modifier.height(16.dp))
SettingHomePageContent(
appVersionState = appVersionState,
onVersionLongTap = {
Expand All @@ -148,6 +149,9 @@ fun SettingHomePage(
snackBarInfo
)
},
onTapFormBanner = {
context.openBrowser("https://docs.google.com/forms/d/e/1FAIpQLSeeIRAn45EBU4otZ5y2X4QPA9pCzU1Vw6IaDFF7czSrpgAeRg/viewform")
},
onTapMarketOpen = {
context.openMarket()
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.no5ing.bbibbi.presentation.feature.view.main.setting_home

import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
Expand Down Expand Up @@ -34,6 +36,7 @@ fun SettingHomePageContent(
onVersionLongTap: () -> Unit = {},
onTapMarketOpen: () -> Unit = {},
onTapNotificationSetting: () -> Unit = {},
onTapFormBanner: () -> Unit = {},
onPrivacy: () -> Unit = {},
onTerm: () -> Unit = {},
onGroupQuit: () -> Unit = {},
Expand All @@ -51,6 +54,14 @@ fun SettingHomePageContent(
Column(
modifier = Modifier.fillMaxWidth()
) {
Image(
painter = painterResource(id = R.drawable.form_banner),
contentDescription = null,
modifier = Modifier
.fillMaxWidth()
.clickable { onTapFormBanner() }
)
Spacer(modifier = Modifier.height(28.dp))
Text(
text = stringResource(id = R.string.setting_account_and_permission),
modifier = Modifier
Expand Down
Binary file added app/src/main/res/drawable/form_banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5e19fc4

Please sign in to comment.