Skip to content

Commit d488b78

Browse files
jamoweijwstegemann
authored andcommitted
setting components demo as discontinued
1 parent 08e25b5 commit d488b78

File tree

4 files changed

+72
-12
lines changed

4 files changed

+72
-12
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repositories {
1010
mavenCentral()
1111
}
1212

13-
val appStatus = "alpha"
13+
val appStatus = "discontinued"
1414
val fritz2Version = "0.14.1"
1515

1616

src/jsMain/kotlin/dev.fritz2.kitchensink/app.kt

+67-3
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,76 @@ fun main() {
9999
staticStyle("settings-table", settingsTableStaticCss)
100100
val welcomeContent = staticStyle("welcome-content", welcomeContentStaticCss)
101101

102-
// val router = routerOf("")
102+
modal({
103+
border {
104+
style { "3px dotted" }
105+
color { danger.main }
106+
}
107+
}) {
108+
content { close ->
109+
div({
110+
fontSize { giant }
111+
borders {
112+
bottom {
113+
color { gray200 }
114+
width { "1px" }
115+
}
116+
}
117+
paddings {
118+
top { large }
119+
bottom { large }
120+
}
121+
}) {
122+
+"Components are discontinued"
123+
}
124+
div({
125+
paddings {
126+
top { large }
127+
bottom { large }
128+
}
129+
borders {
130+
bottom {
131+
color { gray200 }
132+
width { "1px" }
133+
}
134+
}
135+
}) {
136+
p({ fontSize { large }}) {
137+
+"""The development of fritz2 components was discontinued because we made a conscious decision
138+
| to pursue a different approach. Read more about the background of our decision in our recent """.trimMargin()
139+
externalLink(
140+
"blog-post",
141+
"https://www.fritz2.dev/blog/posts/paradigm-shift-for-components/"
142+
)
143+
+" on our fritz2 webpage."
144+
}
145+
br {}
146+
p({ fontSize { large }}) {
147+
+"Or take a look at our new fritz2 headless-components approach you can find "
148+
externalLink(
149+
"here",
150+
"https://www.fritz2.dev/headless/"
151+
)
152+
+"."
153+
}
154+
}
155+
flexBox({
156+
justifyContent { center }
157+
paddings {
158+
top { large }
159+
}
160+
}) {
161+
clickButton {
162+
text("Dissmiss")
163+
} handledBy close
164+
}
165+
}
166+
}.invoke()
103167

104168
render(themes.first()) {
105169
appFrame {
106170
brand({
107-
minWidth { "18rem" }
171+
minWidth { "21rem" }
108172
}) {
109173
stackUp {
110174
spacing { none }
@@ -166,7 +230,7 @@ fun main() {
166230
md = { small }
167231
)
168232
background {
169-
color { secondary.main }
233+
color { gray700 }
170234
}
171235
color { neutral.main }
172236
margins {

src/jsMain/kotlin/dev.fritz2.kitchensink/base/themes.kt

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ package dev.fritz2.kitchensink.base
22

33
import dev.fritz2.styling.params.BasicParams
44
import dev.fritz2.styling.params.Style
5-
import dev.fritz2.styling.theme.DefaultTheme
6-
import dev.fritz2.styling.theme.Property
7-
import dev.fritz2.styling.theme.ScaledValue
8-
import dev.fritz2.styling.theme.Theme
5+
import dev.fritz2.styling.theme.*
96

107

118
interface ExtendedTheme : Theme {

src/jsMain/kotlin/dev.fritz2.kitchensink/demos/welcome.kt

+3-4
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,10 @@ fun RenderContext.welcome(): Div {
8888
""".trimIndent()
8989
}
9090

91-
coloredBox(Theme().colors.warning) {
91+
coloredBox(Theme().colors.danger) {
9292
// todo: If Status is something other than ALPHA, replace an with a. Also check Getting Started (same thing)
93-
+"Remember that this is an ${appStatus()} version."
94-
+" Most components still need some work, others are not implemented yet, and the API still needs"
95-
+" to be completed and streamlined."
93+
+"Remember that this is an ${appStatus()} version of fritz2 components."
94+
+" We only provide needed fixes for the last 0.14 version of fritz2 (including styling and components) and nothing more!"
9695
}
9796

9897
p {

0 commit comments

Comments
 (0)