Commit d488b78 1 parent 08e25b5 commit d488b78 Copy full SHA for d488b78
File tree 4 files changed +72
-12
lines changed
src/jsMain/kotlin/dev.fritz2.kitchensink
4 files changed +72
-12
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ repositories {
10
10
mavenCentral()
11
11
}
12
12
13
- val appStatus = " alpha "
13
+ val appStatus = " discontinued "
14
14
val fritz2Version = " 0.14.1"
15
15
16
16
Original file line number Diff line number Diff line change @@ -99,12 +99,76 @@ fun main() {
99
99
staticStyle(" settings-table" , settingsTableStaticCss)
100
100
val welcomeContent = staticStyle(" welcome-content" , welcomeContentStaticCss)
101
101
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()
103
167
104
168
render(themes.first()) {
105
169
appFrame {
106
170
brand({
107
- minWidth { " 18rem " }
171
+ minWidth { " 21rem " }
108
172
}) {
109
173
stackUp {
110
174
spacing { none }
@@ -166,7 +230,7 @@ fun main() {
166
230
md = { small }
167
231
)
168
232
background {
169
- color { secondary.main }
233
+ color { gray700 }
170
234
}
171
235
color { neutral.main }
172
236
margins {
Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ package dev.fritz2.kitchensink.base
2
2
3
3
import dev.fritz2.styling.params.BasicParams
4
4
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.*
9
6
10
7
11
8
interface ExtendedTheme : Theme {
Original file line number Diff line number Diff line change @@ -88,11 +88,10 @@ fun RenderContext.welcome(): Div {
88
88
""" .trimIndent()
89
89
}
90
90
91
- coloredBox(Theme ().colors.warning ) {
91
+ coloredBox(Theme ().colors.danger ) {
92
92
// 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!"
96
95
}
97
96
98
97
p {
You can’t perform that action at this time.
0 commit comments