Skip to content

Commit

Permalink
feature : HOME 화면 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 18, 2025
1 parent 26cb1ec commit 6531232
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,8 @@ private object CommonMainDrawable0 {
public val compose_multiplatform: DrawableResource by
lazy { init_compose_multiplatform() }

public val landing1: DrawableResource by
lazy { init_landing1() }

public val landing2: DrawableResource by
lazy { init_landing2() }

public val landing3: DrawableResource by
lazy { init_landing3() }

public val landing4: DrawableResource by
lazy { init_landing4() }

public val landing5: DrawableResource by
lazy { init_landing5() }
public val landinPage: DrawableResource by
lazy { init_landinPage() }

public val main_logo: DrawableResource by
lazy { init_main_logo() }
Expand All @@ -34,11 +22,7 @@ private object CommonMainDrawable0 {
@InternalResourceApi
internal fun _collectCommonMainDrawable0Resources(map: MutableMap<String, DrawableResource>) {
map.put("compose_multiplatform", CommonMainDrawable0.compose_multiplatform)
map.put("landing1", CommonMainDrawable0.landing1)
map.put("landing2", CommonMainDrawable0.landing2)
map.put("landing3", CommonMainDrawable0.landing3)
map.put("landing4", CommonMainDrawable0.landing4)
map.put("landing5", CommonMainDrawable0.landing5)
map.put("landinPage", CommonMainDrawable0.landinPage)
map.put("main_logo", CommonMainDrawable0.main_logo)
}

Expand All @@ -54,58 +38,14 @@ private fun init_compose_multiplatform(): DrawableResource =
)
)

internal val Res.drawable.landing1: DrawableResource
get() = CommonMainDrawable0.landing1

private fun init_landing1(): DrawableResource = org.jetbrains.compose.resources.DrawableResource(
"drawable:landing1",
setOf(
org.jetbrains.compose.resources.ResourceItem(setOf(),
"composeResources/wespot_web.composeapp.generated.resources/drawable/landing1.png", -1, -1),
)
)

internal val Res.drawable.landing2: DrawableResource
get() = CommonMainDrawable0.landing2

private fun init_landing2(): DrawableResource = org.jetbrains.compose.resources.DrawableResource(
"drawable:landing2",
setOf(
org.jetbrains.compose.resources.ResourceItem(setOf(),
"composeResources/wespot_web.composeapp.generated.resources/drawable/landing2.png", -1, -1),
)
)

internal val Res.drawable.landing3: DrawableResource
get() = CommonMainDrawable0.landing3

private fun init_landing3(): DrawableResource = org.jetbrains.compose.resources.DrawableResource(
"drawable:landing3",
setOf(
org.jetbrains.compose.resources.ResourceItem(setOf(),
"composeResources/wespot_web.composeapp.generated.resources/drawable/landing3.png", -1, -1),
)
)

internal val Res.drawable.landing4: DrawableResource
get() = CommonMainDrawable0.landing4

private fun init_landing4(): DrawableResource = org.jetbrains.compose.resources.DrawableResource(
"drawable:landing4",
setOf(
org.jetbrains.compose.resources.ResourceItem(setOf(),
"composeResources/wespot_web.composeapp.generated.resources/drawable/landing4.png", -1, -1),
)
)

internal val Res.drawable.landing5: DrawableResource
get() = CommonMainDrawable0.landing5
internal val Res.drawable.landinPage: DrawableResource
get() = CommonMainDrawable0.landinPage

private fun init_landing5(): DrawableResource = org.jetbrains.compose.resources.DrawableResource(
"drawable:landing5",
private fun init_landinPage(): DrawableResource = org.jetbrains.compose.resources.DrawableResource(
"drawable:landinPage",
setOf(
org.jetbrains.compose.resources.ResourceItem(setOf(),
"composeResources/wespot_web.composeapp.generated.resources/drawable/landing5.png", -1, -1),
"composeResources/wespot_web.composeapp.generated.resources/drawable/landinPage.png", -1, -1),
)
)

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 changes: 7 additions & 22 deletions composeApp/src/wasmJsMain/kotlin/com/wespot/web/home/HomeScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,9 @@ import androidx.compose.foundation.verticalScroll
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import kotlinx.collections.immutable.persistentListOf
import org.jetbrains.compose.resources.painterResource
import wespot_web.composeapp.generated.resources.Res
import wespot_web.composeapp.generated.resources.landing1
import wespot_web.composeapp.generated.resources.landing2
import wespot_web.composeapp.generated.resources.landing3
import wespot_web.composeapp.generated.resources.landing4
import wespot_web.composeapp.generated.resources.landing5

private val imageList = persistentListOf(
Res.drawable.landing1,
Res.drawable.landing2,
Res.drawable.landing3,
Res.drawable.landing4,
Res.drawable.landing5,
)
import wespot_web.composeapp.generated.resources.landinPage

@Composable
fun HomeScreen() {
Expand All @@ -35,13 +22,11 @@ fun HomeScreen() {
.fillMaxSize()
.verticalScroll(scrollState)
) {
imageList.forEachIndexed { index, item ->
Image(
painter = painterResource(item),
contentDescription = "Lading Page Image $index",
contentScale = ContentScale.FillWidth,
modifier = Modifier.fillMaxWidth(),
)
}
Image(
painter = painterResource(Res.drawable.landinPage),
contentDescription = "Lading Page Image",
contentScale = ContentScale.FillWidth,
modifier = Modifier.fillMaxWidth(),
)
}
}

0 comments on commit 6531232

Please sign in to comment.