Skip to content

Commit

Permalink
just use a different style
Browse files Browse the repository at this point in the history
  • Loading branch information
Treetrain1 authored Feb 23, 2024
1 parent 2e171f7 commit 53da037
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ import net.frozenblock.net.components.layouts.PageLayout
import net.frozenblock.net.components.sections.PageList
import net.frozenblock.net.components.sections.WikiPage
import net.frozenblock.net.components.widgets.SideMenuState
import net.frozenblock.net.pages.HeroContainerStyle
import net.frozenblock.net.pages.TopHeroVariant
import net.frozenblock.net.pages.TopHeroContainerStyle
import net.frozenblock.net.toSitePalette
import org.jetbrains.compose.web.css.cssRem
import org.jetbrains.compose.web.css.px
Expand All @@ -35,7 +34,7 @@ fun WikiTitle(
title: String,
content: @Composable () -> Unit = {},
) {
Row(HeroContainerStyle.toModifier(TopHeroVariant), horizontalArrangement = Arrangement.Center) {
Row(TopHeroContainerStyle.toModifier(), horizontalArrangement = Arrangement.Center) {
Box(contentAlignment = Alignment.Center) {
val sitePalette = ColorMode.current.toSitePalette()
Div(HeadlineTextStyle.toAttrs()) {
Expand Down
5 changes: 3 additions & 2 deletions site/src/jsMain/kotlin/net/frozenblock/net/pages/Index.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ val HeroContainerStyle by ComponentStyle {
Breakpoint.MD { Modifier.margin { top(20.vh) } }
}

val TopHeroVariant by HeroContainerStyle.addVariantBase {
Breakpoint.MD { Modifier.margin { top(0.vh) } }
// TODO: Convert to variant
val TopHeroContainerStyle by ComponentStyle.base {
Modifier.fillMaxWidth().gap(2.cssRem)
}

@Page
Expand Down

0 comments on commit 53da037

Please sign in to comment.