Skip to content

๐Ÿ”€ :: (#54) Role Check ํŽ˜์ด์ง€๋ฅผ ํผ๋ธ”๋ฆฌ์‹ฑ ํ–ˆ์Šต๋‹ˆ๋‹ค. #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/common/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/build
/consumer-rules.pro
/proguard-rules.pro
/proguard-rules.pro
.idea

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.stackknowledge.design_system.component.button

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
Expand Down
3 changes: 3 additions & 0 deletions core/design-system/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@
<string name="evaluation">์ฑ„์ </string>
<string name="create_mission">๋งŒ๋“ค๊ธฐ</string>
<string name="shop">์ƒ์ </string>
<string name="student">ํ•™์ƒ</string>
<string name="teacher">์„ ์ƒ๋‹˜</string>
<string name="select_role_text">์‚ฌ์šฉ์ž๊ฐ€ ํ•™์ƒ์ธ์ง€\n ์„ ์ƒ๋‹˜์ธ์ง€ ์„ ํƒํ•ด์ฃผ์„ธ์š”.</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
package com.stackknowledge.login

import androidx.compose.foundation.background
import com.stackknowledge.design_system.R
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.stackknowledge.design_system.component.button.StackKnowledgeButton
import com.stackknowledge.design_system.theme.StackKnowledgeAndroidTheme
import com.stackknowledge.login.background.LoginBackground

@Composable
fun RoleCheckScreen(
modifier: Modifier = Modifier,
) {
StackKnowledgeAndroidTheme { colors, typography ->
Box(
modifier = modifier.background(color = colors.WHITE),
) {
LoginBackground()
Column(
modifier = modifier
.fillMaxSize()
.padding(horizontal = 16.dp),
horizontalAlignment = Alignment.CenterHorizontally
) {
Spacer(modifier = modifier.height(260.dp))

Text(
text = stringResource(id = R.string.select_role_text),
style = typography.titleMedium,
color = colors.BLACK,
textAlign = TextAlign.Center
)

Spacer(modifier = modifier.weight(1f))

Row(
modifier = modifier.fillMaxWidth()
) {
StackKnowledgeButton(
text = stringResource(id = R.string.student),
modifier = modifier
.height(60.dp)
.weight(1f)
)

Spacer(modifier = modifier.width(8.dp))

StackKnowledgeButton(
text = stringResource(id = R.string.teacher),
modifier = modifier
.height(60.dp)
.weight(1f)
)
}

Spacer(modifier = modifier.height(102.dp))
}
}
}
}

@Preview
@Composable
fun RoleCheckScreenPre() {
RoleCheckScreen()
}
Loading