Skip to content

Commit

Permalink
1) Export 0.1.6 (Change Breakpoint sizes; Align StartSection ImageCon…
Browse files Browse the repository at this point in the history
…tent correctly)
  • Loading branch information
ItamiOMW committed Mar 19, 2024
1 parent 0b89cc1 commit 2d4f300
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions site/.kobweb/site/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion site/.kobweb/site/itami_mobile.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion site/.kobweb/site/itami_mobile.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ val StartSectionVariant by SectionContainerStyle.addVariant {
Breakpoint.XL {
Modifier
.backgroundImage(
radialGradient(RadialGradient.Shape.Circle, CSSPosition(x = 71.5.percent, y = 50.percent)) {
radialGradient(RadialGradient.Shape.Circle, CSSPosition(x = 73.5.percent, y = 50.percent)) {
add(colorPalette.brand.primary.toRgb().copyf(alpha = 0.6f))
add(Colors.Transparent, 30.percent)
add(Colors.Transparent, 28.percent)
}
)
}
Expand All @@ -111,7 +111,7 @@ fun StartSection() {
breakpoint = breakpoint,
onExploreWorksClicked = { pageContext.router.navigateTo(Section.Works.href) }
)
ImageContent()
ImageContent(breakpoint = breakpoint)
}
ScrollHint(modifier = Modifier.displayIfAtLeast(Breakpoint.MD).align(Alignment.Start))
}
Expand All @@ -126,10 +126,7 @@ private fun ScrollHint(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Start
) {
ScrollMouseIcon(
modifier = IconStyle.toModifier()
.size(36.px)
)
ScrollMouseIcon(modifier = IconStyle.toModifier().size(36.px))
SpanText(
modifier = TextStyle.toModifier(LabelMediumTextStyle, TextStylePrimaryColor)
.textAlign(TextAlign.Start),
Expand Down Expand Up @@ -174,10 +171,12 @@ private fun TextContent(
}

@Composable
private fun ImageContent() {
private fun ImageContent(
breakpoint: Breakpoint
) {
Box(
modifier = Modifier.flex(1),
contentAlignment = Alignment.Center
contentAlignment = if (breakpoint >= Breakpoint.LG) Alignment.CenterEnd else Alignment.Center
) {
Image(
src = Res.Images.START_IMAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ val StartSectionGridStyle by ComponentStyle(extraModifiers = {
Modifier
.width(100.percent)
.display(DisplayStyle.Flex)
.gap(50.px)
.columnGap(1.cssRem)
.rowGap(3.cssRem)
}
Breakpoint.ZERO {
Modifier.flexDirection(FlexDirection.ColumnReverse)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fun initAppStyles(ctx: InitSilkContext) {
breakpoints = BreakpointSizes(
sm = 30.cssRem, // 480 px,
md = 48.cssRem, // 768 px
lg = 76.cssRem, // 1216 px
xl = 94.cssRem, // 1504 px
lg = 81.25.cssRem, // 1300 px
xl = 100.cssRem, // 1600 px
)
modifyComponentStyle(ButtonStyle) {
base {
Expand Down

0 comments on commit 2d4f300

Please sign in to comment.