-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathComingSoonScreen.kt
More file actions
73 lines (68 loc) · 2.27 KB
/
Copy pathComingSoonScreen.kt
File metadata and controls
73 lines (68 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package to.bitkit.ui.screens.common
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import to.bitkit.R
import to.bitkit.ui.components.BodyM
import to.bitkit.ui.components.Display
import to.bitkit.ui.components.PrimaryButton
import to.bitkit.ui.components.VerticalSpacer
import to.bitkit.ui.scaffold.AppTopBar
import to.bitkit.ui.scaffold.DrawerNavIcon
import to.bitkit.ui.scaffold.ScreenColumn
import to.bitkit.ui.theme.AppThemeSurface
import to.bitkit.ui.theme.Colors
import to.bitkit.ui.utils.withAccent
@Composable
fun ComingSoonScreen(
onWalletOverviewClick: () -> Unit,
onBackClick: () -> Unit,
) {
ScreenColumn {
AppTopBar(
titleText = stringResource(R.string.coming_soon__title),
onBackClick = onBackClick,
actions = { DrawerNavIcon() },
)
Column(
modifier = Modifier.padding(horizontal = 32.dp)
) {
Image(
painter = painterResource(R.drawable.img_cronometer),
contentDescription = null,
modifier = Modifier
.fillMaxWidth()
.weight(1f)
)
Display(
text = stringResource(R.string.coming_soon__headline).withAccent(accentColor = Colors.Brand),
color = Colors.White
)
VerticalSpacer(8.dp)
BodyM(text = stringResource(R.string.coming_soon__description), color = Colors.White64)
VerticalSpacer(54.dp)
PrimaryButton(
text = stringResource(R.string.coming_soon__button),
onClick = onWalletOverviewClick,
)
VerticalSpacer(16.dp)
}
}
}
@Preview(showSystemUi = true)
@Composable
private fun Preview() {
AppThemeSurface {
ComingSoonScreen(
onWalletOverviewClick = {},
onBackClick = {}
)
}
}