diff --git a/BitFun/demo/openbitfun-mobile/assets/bitfun-mascot.svg b/BitFun/demo/openbitfun-mobile/assets/bitfun-mascot.svg new file mode 100644 index 0000000000..ee3a4fa433 --- /dev/null +++ b/BitFun/demo/openbitfun-mobile/assets/bitfun-mascot.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + diff --git a/BitFun/demo/openbitfun-mobile/assets/daily-divination.webp b/BitFun/demo/openbitfun-mobile/assets/daily-divination.webp new file mode 100644 index 0000000000..2bcccda7ed Binary files /dev/null and b/BitFun/demo/openbitfun-mobile/assets/daily-divination.webp differ diff --git a/BitFun/demo/openbitfun-mobile/assets/gomoku.webp b/BitFun/demo/openbitfun-mobile/assets/gomoku.webp new file mode 100644 index 0000000000..3b7109e686 Binary files /dev/null and b/BitFun/demo/openbitfun-mobile/assets/gomoku.webp differ diff --git a/BitFun/demo/openbitfun-mobile/assets/openbitfun-mark.svg b/BitFun/demo/openbitfun-mobile/assets/openbitfun-mark.svg new file mode 100644 index 0000000000..c085955b39 --- /dev/null +++ b/BitFun/demo/openbitfun-mobile/assets/openbitfun-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/BitFun/demo/openbitfun-mobile/assets/regex-playground.webp b/BitFun/demo/openbitfun-mobile/assets/regex-playground.webp new file mode 100644 index 0000000000..dd7ddb72ae Binary files /dev/null and b/BitFun/demo/openbitfun-mobile/assets/regex-playground.webp differ diff --git a/BitFun/demo/openbitfun-mobile/index.html b/BitFun/demo/openbitfun-mobile/index.html new file mode 100644 index 0000000000..9daedfc2e8 --- /dev/null +++ b/BitFun/demo/openbitfun-mobile/index.html @@ -0,0 +1,2553 @@ + + + + + +OpenBitFun · Mobile + + + + + + + + +
+ 设备: +
+ + + +
+
+ +
+
+
+ +
+ 03:00 + + + + + +
+
+ + + + + + + + +
+ +
+ +
+ +
+ +
+ +
+
+ + + + +
+
+ + +
+
+ + + +
+
+
+ + +
+
+ + 小应用 + +
+
+ +
+
+
+ + + +
+
左右滑动切换
+
+ + + +
+
+ +
+ +
+
+ + +
+
+
+
+
+ + + + diff --git a/design-system/apps/design-lab/src/pages/OverviewPage.css b/design-system/apps/design-lab/src/pages/OverviewPage.css index c3914c1e7e..3855404941 100644 --- a/design-system/apps/design-lab/src/pages/OverviewPage.css +++ b/design-system/apps/design-lab/src/pages/OverviewPage.css @@ -36,6 +36,30 @@ align-items: center; gap: var(--openbitfun-space-12); padding: 0; + position: relative; + /* The wash is painted by a negative-z layer, and the shell paints an opaque canvas behind the page: + without a stacking context of its own the wash would be painted under that canvas and never seen. + isolate keeps the layer inside the hero, above everything painted before the hero. */ + isolation: isolate; +} + +/* The top of the page opens on a wash: a soft, full-bleed gradient that starts under the topbar (the + bar is opaque and sticky, so the wash cannot run behind it), peaks behind the headline and the + figure, and is gone before the picture — the picture keeps the bare canvas it was designed on. The + tint is the page's own ink rather than a colour of its own: a mix toward content primary greys down + in light mode and lifts in dark, so one expression covers both schemes. Both ends of the gradient + are transparent and the layer reaches past the hero into the air above and below it, so the wash + has no edge anywhere: what shows is the middle of a gradient, not a rectangle. */ +.design-home-hero::before { + --_lab-hero-wash: color-mix(in srgb, var(--openbitfun-color-content-primary) 6%, var(--openbitfun-color-surface-canvas)); + + content: ""; + position: absolute; + inset-block: calc(var(--openbitfun-space-8) * -1) calc(var(--openbitfun-space-12) * -1); + inset-inline: calc(50% - 50vw); + background: linear-gradient(to bottom, transparent, var(--_lab-hero-wash) 34%, transparent); + pointer-events: none; + z-index: -1; } .design-home-heading {