@OptIn(ExperimentalMaterial3Api::class)
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
SlackTheme {
// A surface container using the 'background' color from the theme
Surface(
modifier = Modifier
.fillMaxSize(),
color = Color(0xff1A1D23)
) {
Column() {
Box(
modifier = Modifier
.fillMaxWidth()
.height(50.dp)
) {
Surface(color = Color(0xff19161E)) {
Row {
Image(
painter = painterResource(id = R.drawable.k_in),
contentDescription = null,
contentScale = ContentScale.FillHeight,
modifier = Modifier
.size(45.dp)
.padding(5.dp)
)
Text(
text = "KDT_인텔 인공지능 인재양성 과정",
color = Color.White,
fontSize = 24.sp,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
modifier = Modifier
.width(300.dp)
)
Image(
painter = painterResource(id = R.drawable.triangle),
contentDescription = null,
contentScale = ContentScale.FillHeight,
modifier = Modifier
.size(45.dp)
.padding(5.dp)
)
}
}
}
Divider(
color = Color.Gray,
modifier = Modifier
.fillMaxWidth()
.width(0.5.dp)
)
var movetonext by remember { mutableStateOf("다음으로 이동...") }
OutlinedTextField(
value = "다음으로 이동...", onValueChange = { movetonext = it },
colors = TextFieldDefaults.textFieldColors(
textColor = Color.LightGray,
containerColor = Color(0xff1A1D23)
),
modifier = Modifier
.padding(10.dp)
.fillMaxWidth()
)
Box(
modifier = Modifier
.padding(10.dp)
.fillMaxWidth()
)
{
Surface(color = Color(0xff313538)) {
Row() {
Image(
painter = painterResource(id = R.drawable.tip),
contentDescription = null,
modifier = Modifier
.size(45.dp)
)
Text(
text = "고객님의 팀은 무료 평가판을 사용 중입니다!",
fontSize = 13.sp,
color = Color.White,
modifier = Modifier
.width(260.dp)
.align(Alignment.Center) //왜 안돼?
)
Button(
onClick = { /*TODO*/ },
modifier = Modifier
.size(65.dp, 35.dp),
colors = ButtonDefaults.buttonColors(
containerColor = Color.White,
contentColor = Color.Black,
)
) {
Text(text = "Pro", fontSize = 10.sp)
}
}
}
}
Row() {
Image(painter = painterResource(id = R.drawable.thread),
contentDescription = null,
modifier = Modifier
.size(45 .dp))
Text(text = "스레드", color = Color.LightGray, fontSize = 20 .sp)
}
Row() {
Image(painter = painterResource(id = R.drawable.canvas),
contentDescription = null,
modifier = Modifier
.size(45 .dp))
Text(text = "캔버스", color = Color.LightGray, fontSize = 20 .sp)
}
Row () {
Image(painter = painterResource(id = R.drawable.dm),
contentDescription = null,
modifier = Modifier
.size(45 .dp))
Text(text = "초안 및 전송됨", color = Color.LightGray, fontSize = 20 .sp)
}
Row () {
Image(painter = painterResource(id = R.drawable.later),
contentDescription = null,
modifier = Modifier
.size(45 .dp))
Text(text = "나중에", color = Color.LightGray, fontSize = 20 .sp)
}
}
}
}
}
}
}
댑악완전멋쪄요(ง ̇∇ ̇)ว