Skip to content

Commit

Permalink
1) Footer: changed gap for SocialLinks AND padding;
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamiOMW committed Mar 11, 2024
1 parent a6bfb54 commit f3c79a6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.varabyte.kobweb.silk.components.style.ComponentStyle
import com.varabyte.kobweb.silk.components.style.breakpoint.Breakpoint
import com.varabyte.kobweb.silk.components.style.toModifier
import com.varabyte.kobweb.silk.components.text.SpanText
import com.varabyte.kobweb.silk.theme.breakpoint.rememberBreakpoint
import com.varabyte.kobweb.silk.theme.colors.ColorMode
import com.varabyte.kobweb.silk.theme.colors.palette.overlay
import com.varabyte.kobweb.silk.theme.colors.palette.toPalette
Expand All @@ -39,13 +40,13 @@ val FooterStyle by ComponentStyle {
.background(colorMode.overlay)
}
Breakpoint.ZERO {
Modifier.padding(left = 12.px, right = 12.px, top = 24.px, bottom = 16.px)
Modifier.padding(left = 12.px, right = 12.px, top = 24.px, bottom = 24.px)
}
Breakpoint.SM {
Modifier.padding(left = 24.px, right = 24.px, top = 24.px, bottom = 24.px)
}
Breakpoint.MD {
Modifier.padding(left = 34.px, right = 34.px, top = 30.px, bottom = 30.px)
Modifier.padding(left = 34.px, right = 34.px, top = 34.px, bottom = 34.px)
}
Breakpoint.LG {
Modifier.padding(left = 54.px, right = 54.px, top = 40.px, bottom = 40.px)
Expand Down Expand Up @@ -84,8 +85,9 @@ fun Footer() {

@Composable
private fun SocialLinks() {
val breakpoint = rememberBreakpoint()
Row(
modifier = Modifier.gap(1.em),
modifier = Modifier.gap(if (breakpoint == Breakpoint.XL) 1.25.em else 1.em),
verticalAlignment = Alignment.CenterVertically
) {
Social.entries.forEach { social ->
Expand Down

0 comments on commit f3c79a6

Please sign in to comment.