Skip to content

Commit

Permalink
いろドリ豊かなトリたちをトリ入れた
Browse files Browse the repository at this point in the history
  • Loading branch information
yuta-ikeoku committed Jun 20, 2024
1 parent 528cf20 commit a2354b1
Show file tree
Hide file tree
Showing 18 changed files with 100 additions and 2 deletions.
2 changes: 0 additions & 2 deletions torisetsu/src/jsMain/kotlin/components/base/ButtonStyle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ object ButtonStyle : StyleSheet(GlobalStyle) {
}
}



backgroundImage("linear-gradient(#5772FF, #0054DD)")
color(Color.white)
fontWeight(700)
Expand Down
20 changes: 20 additions & 0 deletions torisetsu/src/jsMain/kotlin/components/pages/TopPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,24 @@ fun TopPage(
}
}
}

Div(
attrs = { classes(TopPageStyle.overlayBirds) }
) {
Img(
src = "images/tori_left.png",
alt = "birds",
attrs = { classes(TopPageStyle.leftBirds) }
)
Img(
src = "images/tori_right.png",
alt = "birds",
attrs = { classes(TopPageStyle.rightBirds) }
)
Img(
src = "images/tori_center.png",
alt = "birds",
attrs = { classes(TopPageStyle.centerBirds) }
)
}
}
80 changes: 80 additions & 0 deletions torisetsu/src/jsMain/kotlin/components/pages/TopPageStyle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,84 @@ object TopPageStyle : StyleSheet(GlobalStyle) {
fontSize(12.px)
}
}

val overlayBirds by style {
position(Position.Fixed)
top(0.px)
left(0.px)
right(0.px)
bottom(0.px)
property("pointer-event", "none")
property("z-index", -1)
maxWidth(2000.px)
}

val leftBirds by style {
position(Position.Fixed)
left(0.px)
bottom(400.px)
property("width", "calc((100vw - 700px) / 2)")

media(mediaMaxWidth(1650.px)) {
self style {
bottom(300.px)
maxWidth(500.px)
width(50.percent)
}
}

media(mediaMaxWidth(1200.px)) {
self style {
bottom(250.px)
width(50.percent)
}
}
media(mediaMaxWidth(600.px)) {
self style {
bottom(180.px)
}
}
}

val rightBirds by style {
position(Position.Fixed)
right(0.px)
bottom(400.px)
property("width", "calc((100vw - 700px) / 2)")

media(mediaMaxWidth(1650.px)) {
self style {
bottom(300.px)
maxWidth(500.px)
width(50.percent)
}
}
media(mediaMaxWidth(1200.px)) {
self style {
bottom(250.px)
width(50.percent)
}
}
media(mediaMaxWidth(600.px)) {
self style {
bottom(180.px)
}
}
}

val centerBirds by style {
position(Position.Fixed)
bottom(20.px) // footerの高さ分あげる
width(100.percent)
minWidth(1500.px)
left(50.percent)
property("transform", "translateX(-50%)")
property("object-fit", "cover")

media(mediaMaxWidth(600.px)) {
self style {
minWidth(1000.px)
}
}
}
}
Binary file added torisetsu/src/jsMain/resources/images/tori1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added torisetsu/src/jsMain/resources/images/tori9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 a2354b1

Please sign in to comment.