@nastechai-research/ui 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +21 -0
- package/dist/assets/filler-bg0.webp +0 -0
- package/dist/assets.d.ts +38 -0
- package/dist/fonts/Collapse-Bold.woff2 +0 -0
- package/dist/fonts/Collapse-BoldItalic.woff2 +0 -0
- package/dist/fonts/Collapse-Italic.woff2 +0 -0
- package/dist/fonts/Collapse-Light.woff2 +0 -0
- package/dist/fonts/Collapse-LightItalic.woff2 +0 -0
- package/dist/fonts/Collapse-Regular.woff2 +0 -0
- package/dist/fonts/Collapse-Thin.woff2 +0 -0
- package/dist/fonts/Collapse-ThinItalic.woff2 +0 -0
- package/dist/fonts/Mondwest-Regular.woff2 +0 -0
- package/dist/fonts/Neuebit-Bold.woff2 +0 -0
- package/dist/fonts/RulesCompressed-Medium.woff2 +0 -0
- package/dist/fonts/RulesCompressed-Regular.woff2 +0 -0
- package/dist/fonts/RulesExpanded-Bold.woff2 +0 -0
- package/dist/fonts/RulesExpanded-Regular.woff2 +0 -0
- package/dist/fonts.d.ts +6 -0
- package/dist/fonts.js +6 -0
- package/dist/hooks/use-below-breakpoint.d.ts +2 -0
- package/dist/hooks/use-below-breakpoint.js +17 -0
- package/dist/hooks/use-capped-frame.d.ts +2 -0
- package/dist/hooks/use-capped-frame.js +15 -0
- package/dist/hooks/use-confirm-delete.d.ts +10 -0
- package/dist/hooks/use-confirm-delete.js +35 -0
- package/dist/hooks/use-css-var-dims.d.ts +1 -0
- package/dist/hooks/use-css-var-dims.js +29 -0
- package/dist/hooks/use-gpu-tier.d.ts +34 -0
- package/dist/hooks/use-gpu-tier.js +111 -0
- package/dist/hooks/use-render-loop.d.ts +41 -0
- package/dist/hooks/use-render-loop.js +63 -0
- package/dist/hooks/use-smooth-controls.d.ts +16 -0
- package/dist/hooks/use-smooth-controls.js +217 -0
- package/dist/hooks/use-toast.d.ts +7 -0
- package/dist/hooks/use-toast.js +21 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.js +107 -0
- package/dist/ui/basic-page.d.ts +7 -0
- package/dist/ui/basic-page.js +18 -0
- package/dist/ui/build.css +4 -0
- package/dist/ui/components/animated-count.d.ts +10 -0
- package/dist/ui/components/animated-count.js +113 -0
- package/dist/ui/components/ascii.d.ts +10 -0
- package/dist/ui/components/ascii.js +79 -0
- package/dist/ui/components/badge.d.ts +6 -0
- package/dist/ui/components/badge.js +40 -0
- package/dist/ui/components/badges/nous-girl.d.ts +2 -0
- package/dist/ui/components/badges/nous-girl.js +83 -0
- package/dist/ui/components/blend-mode.d.ts +28 -0
- package/dist/ui/components/blend-mode.js +69 -0
- package/dist/ui/components/blink.d.ts +6 -0
- package/dist/ui/components/blink.js +17 -0
- package/dist/ui/components/bottom-sheet.d.ts +15 -0
- package/dist/ui/components/bottom-sheet.js +192 -0
- package/dist/ui/components/button.d.ts +14 -0
- package/dist/ui/components/button.js +147 -0
- package/dist/ui/components/card.d.ts +5 -0
- package/dist/ui/components/card.js +74 -0
- package/dist/ui/components/checkbox.d.ts +2 -0
- package/dist/ui/components/checkbox.js +27 -0
- package/dist/ui/components/command-block.d.ts +24 -0
- package/dist/ui/components/command-block.js +56 -0
- package/dist/ui/components/confirm-dialog.d.ts +13 -0
- package/dist/ui/components/confirm-dialog.js +113 -0
- package/dist/ui/components/cursor.d.ts +3 -0
- package/dist/ui/components/cursor.js +97 -0
- package/dist/ui/components/dialog.d.ts +15 -0
- package/dist/ui/components/dialog.js +171 -0
- package/dist/ui/components/dropdown-menu.d.ts +12 -0
- package/dist/ui/components/dropdown-menu.js +102 -0
- package/dist/ui/components/fit-text/fit-text.css +42 -0
- package/dist/ui/components/fit-text/index.d.ts +9 -0
- package/dist/ui/components/fit-text/index.js +25 -0
- package/dist/ui/components/graphs/bar-chart.d.ts +12 -0
- package/dist/ui/components/graphs/bar-chart.js +129 -0
- package/dist/ui/components/graphs/index.d.ts +3 -0
- package/dist/ui/components/graphs/index.js +4 -0
- package/dist/ui/components/graphs/line-chart.d.ts +14 -0
- package/dist/ui/components/graphs/line-chart.js +175 -0
- package/dist/ui/components/graphs/utils.d.ts +52 -0
- package/dist/ui/components/graphs/utils.js +162 -0
- package/dist/ui/components/grid/grid.css +79 -0
- package/dist/ui/components/grid/index.d.ts +2 -0
- package/dist/ui/components/grid/index.js +17 -0
- package/dist/ui/components/hover-bg.d.ts +1 -0
- package/dist/ui/components/hover-bg.js +14 -0
- package/dist/ui/components/icons/arrow.d.ts +6 -0
- package/dist/ui/components/icons/arrow.js +44 -0
- package/dist/ui/components/icons/check.d.ts +2 -0
- package/dist/ui/components/icons/check.js +13 -0
- package/dist/ui/components/icons/chevron.d.ts +6 -0
- package/dist/ui/components/icons/chevron.js +51 -0
- package/dist/ui/components/icons/discord.d.ts +2 -0
- package/dist/ui/components/icons/discord.js +15 -0
- package/dist/ui/components/icons/eye.d.ts +2 -0
- package/dist/ui/components/icons/eye.js +8 -0
- package/dist/ui/components/icons/gear.d.ts +6 -0
- package/dist/ui/components/icons/gear.js +30 -0
- package/dist/ui/components/icons/github.d.ts +2 -0
- package/dist/ui/components/icons/github.js +15 -0
- package/dist/ui/components/icons/hamburger.d.ts +6 -0
- package/dist/ui/components/icons/hamburger.js +56 -0
- package/dist/ui/components/icons/heart.d.ts +2 -0
- package/dist/ui/components/icons/heart.js +11 -0
- package/dist/ui/components/icons/index.d.ts +12 -0
- package/dist/ui/components/icons/index.js +13 -0
- package/dist/ui/components/icons/link.d.ts +2 -0
- package/dist/ui/components/icons/link.js +13 -0
- package/dist/ui/components/icons/minus.d.ts +2 -0
- package/dist/ui/components/icons/minus.js +13 -0
- package/dist/ui/components/icons/search.d.ts +2 -0
- package/dist/ui/components/icons/search.js +33 -0
- package/dist/ui/components/image-distortion.d.ts +21 -0
- package/dist/ui/components/image-distortion.js +398 -0
- package/dist/ui/components/input.d.ts +1 -0
- package/dist/ui/components/input.js +21 -0
- package/dist/ui/components/label.d.ts +1 -0
- package/dist/ui/components/label.js +18 -0
- package/dist/ui/components/leva-client.d.ts +1 -0
- package/dist/ui/components/leva-client.js +12 -0
- package/dist/ui/components/list-item.d.ts +6 -0
- package/dist/ui/components/list-item.js +27 -0
- package/dist/ui/components/overlays/blend-modes.d.ts +1 -0
- package/dist/ui/components/overlays/blend-modes.js +14 -0
- package/dist/ui/components/overlays/glitch.d.ts +6 -0
- package/dist/ui/components/overlays/glitch.js +209 -0
- package/dist/ui/components/overlays/greys.d.ts +6 -0
- package/dist/ui/components/overlays/greys.js +339 -0
- package/dist/ui/components/overlays/index.d.ts +14 -0
- package/dist/ui/components/overlays/index.js +34 -0
- package/dist/ui/components/overlays/lens-layers.d.ts +14 -0
- package/dist/ui/components/overlays/lens-layers.js +95 -0
- package/dist/ui/components/overlays/lens.d.ts +44 -0
- package/dist/ui/components/overlays/lens.js +60 -0
- package/dist/ui/components/overlays/noise.d.ts +6 -0
- package/dist/ui/components/overlays/noise.js +136 -0
- package/dist/ui/components/overlays/vignette.d.ts +6 -0
- package/dist/ui/components/overlays/vignette.js +47 -0
- package/dist/ui/components/poster.d.ts +62 -0
- package/dist/ui/components/poster.js +256 -0
- package/dist/ui/components/progress.d.ts +9 -0
- package/dist/ui/components/progress.js +53 -0
- package/dist/ui/components/scene-canvas.d.ts +23 -0
- package/dist/ui/components/scene-canvas.js +179 -0
- package/dist/ui/components/scramble.d.ts +9 -0
- package/dist/ui/components/scramble.js +63 -0
- package/dist/ui/components/segmented.d.ts +20 -0
- package/dist/ui/components/segmented.js +51 -0
- package/dist/ui/components/select.d.ts +18 -0
- package/dist/ui/components/select.js +215 -0
- package/dist/ui/components/selection-switcher.d.ts +1 -0
- package/dist/ui/components/selection-switcher.js +34 -0
- package/dist/ui/components/separator.d.ts +5 -0
- package/dist/ui/components/separator.js +22 -0
- package/dist/ui/components/shader.d.ts +7 -0
- package/dist/ui/components/shader.js +60 -0
- package/dist/ui/components/socials.d.ts +20 -0
- package/dist/ui/components/socials.js +21 -0
- package/dist/ui/components/spinner.d.ts +20 -0
- package/dist/ui/components/spinner.js +38 -0
- package/dist/ui/components/stats.d.ts +16 -0
- package/dist/ui/components/stats.js +36 -0
- package/dist/ui/components/switch.d.ts +7 -0
- package/dist/ui/components/switch.js +37 -0
- package/dist/ui/components/tabs.d.ts +14 -0
- package/dist/ui/components/tabs.js +44 -0
- package/dist/ui/components/terminal-demo.d.ts +32 -0
- package/dist/ui/components/terminal-demo.js +125 -0
- package/dist/ui/components/theme-toggle.d.ts +6 -0
- package/dist/ui/components/theme-toggle.js +66 -0
- package/dist/ui/components/tier-card.d.ts +53 -0
- package/dist/ui/components/tier-card.js +146 -0
- package/dist/ui/components/toast.d.ts +8 -0
- package/dist/ui/components/toast.js +39 -0
- package/dist/ui/components/tv.d.ts +3 -0
- package/dist/ui/components/tv.js +239 -0
- package/dist/ui/components/typography/h1.d.ts +11 -0
- package/dist/ui/components/typography/h1.js +18 -0
- package/dist/ui/components/typography/h2.d.ts +11 -0
- package/dist/ui/components/typography/h2.js +18 -0
- package/dist/ui/components/typography/index.d.ts +15 -0
- package/dist/ui/components/typography/index.js +41 -0
- package/dist/ui/components/typography/legend.d.ts +6 -0
- package/dist/ui/components/typography/legend.js +20 -0
- package/dist/ui/components/typography/small.d.ts +2 -0
- package/dist/ui/components/typography/small.js +9 -0
- package/dist/ui/components/watchlist.d.ts +11 -0
- package/dist/ui/components/watchlist.js +80 -0
- package/dist/ui/fonts.css +63 -0
- package/dist/ui/footer.d.ts +20 -0
- package/dist/ui/footer.js +65 -0
- package/dist/ui/globals.css +395 -0
- package/dist/ui/header.d.ts +41 -0
- package/dist/ui/header.js +270 -0
- package/dist/ui/layout-wrapper.d.ts +1 -0
- package/dist/ui/layout-wrapper.js +7 -0
- package/dist/utils/color.d.ts +4 -0
- package/dist/utils/color.js +14 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.js +48 -0
- package/dist/utils/poly.d.ts +8 -0
- package/dist/utils/poly.js +3 -0
- package/package.json +120 -0
- package/src/assets/filler-bg0.webp +0 -0
- package/src/assets.d.ts +38 -0
- package/src/fonts/Collapse-Bold.woff2 +0 -0
- package/src/fonts/Collapse-BoldItalic.woff2 +0 -0
- package/src/fonts/Collapse-Italic.woff2 +0 -0
- package/src/fonts/Collapse-Light.woff2 +0 -0
- package/src/fonts/Collapse-LightItalic.woff2 +0 -0
- package/src/fonts/Collapse-Regular.woff2 +0 -0
- package/src/fonts/Collapse-Thin.woff2 +0 -0
- package/src/fonts/Collapse-ThinItalic.woff2 +0 -0
- package/src/fonts/Mondwest-Regular.woff2 +0 -0
- package/src/fonts/Neuebit-Bold.woff2 +0 -0
- package/src/fonts/RulesCompressed-Medium.woff2 +0 -0
- package/src/fonts/RulesCompressed-Regular.woff2 +0 -0
- package/src/fonts/RulesExpanded-Bold.woff2 +0 -0
- package/src/fonts/RulesExpanded-Regular.woff2 +0 -0
- package/src/fonts.ts +6 -0
- package/src/hooks/use-below-breakpoint.ts +21 -0
- package/src/hooks/use-capped-frame.ts +18 -0
- package/src/hooks/use-confirm-delete.ts +43 -0
- package/src/hooks/use-css-var-dims.ts +39 -0
- package/src/hooks/use-gpu-tier.ts +190 -0
- package/src/hooks/use-render-loop.ts +121 -0
- package/src/hooks/use-smooth-controls.ts +318 -0
- package/src/hooks/use-toast.ts +29 -0
- package/src/index.ts +130 -0
- package/src/ui/basic-page.tsx +34 -0
- package/src/ui/build.css +4 -0
- package/src/ui/components/animated-count.stories.tsx +67 -0
- package/src/ui/components/animated-count.tsx +168 -0
- package/src/ui/components/ascii.stories.tsx +30 -0
- package/src/ui/components/ascii.tsx +110 -0
- package/src/ui/components/badge.stories.tsx +31 -0
- package/src/ui/components/badge.tsx +60 -0
- package/src/ui/components/badges/nous-girl.tsx +52 -0
- package/src/ui/components/blend-mode.stories.tsx +33 -0
- package/src/ui/components/blend-mode.tsx +129 -0
- package/src/ui/components/blink.stories.tsx +32 -0
- package/src/ui/components/blink.tsx +21 -0
- package/src/ui/components/bottom-sheet.stories.tsx +43 -0
- package/src/ui/components/bottom-sheet.tsx +227 -0
- package/src/ui/components/button.stories.tsx +68 -0
- package/src/ui/components/button.tsx +170 -0
- package/src/ui/components/card.stories.tsx +63 -0
- package/src/ui/components/card.tsx +85 -0
- package/src/ui/components/checkbox.stories.tsx +113 -0
- package/src/ui/components/checkbox.tsx +36 -0
- package/src/ui/components/command-block.stories.tsx +52 -0
- package/src/ui/components/command-block.tsx +86 -0
- package/src/ui/components/confirm-dialog.stories.tsx +91 -0
- package/src/ui/components/confirm-dialog.tsx +130 -0
- package/src/ui/components/cursor.tsx +115 -0
- package/src/ui/components/dialog.stories.tsx +169 -0
- package/src/ui/components/dialog.tsx +177 -0
- package/src/ui/components/dropdown-menu.stories.tsx +52 -0
- package/src/ui/components/dropdown-menu.tsx +117 -0
- package/src/ui/components/fit-text/fit-text.css +42 -0
- package/src/ui/components/fit-text/index.stories.tsx +33 -0
- package/src/ui/components/fit-text/index.tsx +45 -0
- package/src/ui/components/forms.stories.tsx +173 -0
- package/src/ui/components/graphs/bar-chart.tsx +153 -0
- package/src/ui/components/graphs/index.stories.tsx +64 -0
- package/src/ui/components/graphs/index.tsx +4 -0
- package/src/ui/components/graphs/line-chart.tsx +213 -0
- package/src/ui/components/graphs/utils.tsx +265 -0
- package/src/ui/components/grid/grid.css +79 -0
- package/src/ui/components/grid/index.tsx +19 -0
- package/src/ui/components/hover-bg.stories.tsx +29 -0
- package/src/ui/components/hover-bg.tsx +15 -0
- package/src/ui/components/icons/arrow.tsx +42 -0
- package/src/ui/components/icons/check.tsx +14 -0
- package/src/ui/components/icons/chevron.tsx +45 -0
- package/src/ui/components/icons/discord.tsx +16 -0
- package/src/ui/components/icons/eye.tsx +12 -0
- package/src/ui/components/icons/gear.tsx +51 -0
- package/src/ui/components/icons/github.tsx +16 -0
- package/src/ui/components/icons/hamburger.tsx +52 -0
- package/src/ui/components/icons/heart.tsx +12 -0
- package/src/ui/components/icons/index.ts +12 -0
- package/src/ui/components/icons/link.tsx +14 -0
- package/src/ui/components/icons/minus.tsx +14 -0
- package/src/ui/components/icons/search.tsx +28 -0
- package/src/ui/components/image-distortion.stories.tsx +120 -0
- package/src/ui/components/image-distortion.tsx +499 -0
- package/src/ui/components/input.stories.tsx +39 -0
- package/src/ui/components/input.tsx +20 -0
- package/src/ui/components/label.stories.tsx +26 -0
- package/src/ui/components/label.tsx +16 -0
- package/src/ui/components/leva-client.tsx +14 -0
- package/src/ui/components/list-item.stories.tsx +83 -0
- package/src/ui/components/list-item.tsx +37 -0
- package/src/ui/components/overlays/blend-modes.ts +13 -0
- package/src/ui/components/overlays/glitch.tsx +243 -0
- package/src/ui/components/overlays/greys.tsx +386 -0
- package/src/ui/components/overlays/index.tsx +47 -0
- package/src/ui/components/overlays/lens-layers.tsx +121 -0
- package/src/ui/components/overlays/lens.ts +91 -0
- package/src/ui/components/overlays/noise.tsx +174 -0
- package/src/ui/components/overlays/vignette.tsx +60 -0
- package/src/ui/components/poster.stories.tsx +513 -0
- package/src/ui/components/poster.tsx +411 -0
- package/src/ui/components/progress.stories.tsx +48 -0
- package/src/ui/components/progress.tsx +56 -0
- package/src/ui/components/scene-canvas.tsx +254 -0
- package/src/ui/components/scramble.stories.tsx +49 -0
- package/src/ui/components/scramble.tsx +95 -0
- package/src/ui/components/segmented.stories.tsx +101 -0
- package/src/ui/components/segmented.tsx +81 -0
- package/src/ui/components/select.stories.tsx +88 -0
- package/src/ui/components/select.tsx +267 -0
- package/src/ui/components/selection-switcher.tsx +44 -0
- package/src/ui/components/separator.stories.tsx +33 -0
- package/src/ui/components/separator.tsx +24 -0
- package/src/ui/components/shader.tsx +83 -0
- package/src/ui/components/socials.tsx +42 -0
- package/src/ui/components/spinner.stories.tsx +101 -0
- package/src/ui/components/spinner.tsx +60 -0
- package/src/ui/components/stats.stories.tsx +24 -0
- package/src/ui/components/stats.tsx +53 -0
- package/src/ui/components/switch.stories.tsx +77 -0
- package/src/ui/components/switch.tsx +48 -0
- package/src/ui/components/tabs.stories.tsx +101 -0
- package/src/ui/components/tabs.tsx +66 -0
- package/src/ui/components/terminal-demo.stories.tsx +67 -0
- package/src/ui/components/terminal-demo.tsx +189 -0
- package/src/ui/components/theme-toggle.stories.tsx +47 -0
- package/src/ui/components/theme-toggle.tsx +66 -0
- package/src/ui/components/tier-card.stories.tsx +217 -0
- package/src/ui/components/tier-card.tsx +190 -0
- package/src/ui/components/toast.stories.tsx +55 -0
- package/src/ui/components/toast.tsx +49 -0
- package/src/ui/components/tv.stories.tsx +37 -0
- package/src/ui/components/tv.tsx +257 -0
- package/src/ui/components/typography/h1.tsx +18 -0
- package/src/ui/components/typography/h2.tsx +18 -0
- package/src/ui/components/typography/index.tsx +54 -0
- package/src/ui/components/typography/legend.tsx +24 -0
- package/src/ui/components/typography/small.tsx +11 -0
- package/src/ui/components/watchlist.stories.tsx +33 -0
- package/src/ui/components/watchlist.tsx +105 -0
- package/src/ui/fonts.css +63 -0
- package/src/ui/footer.tsx +111 -0
- package/src/ui/globals.css +395 -0
- package/src/ui/header.tsx +398 -0
- package/src/ui/layout-wrapper.tsx +11 -0
- package/src/utils/color.ts +21 -0
- package/src/utils/index.ts +62 -0
- package/src/utils/poly.ts +26 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { Typography } from "./index.js";
|
|
4
|
+
export const Small = forwardRef(
|
|
5
|
+
(props, ref) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(Typography, { as: "small", mondwest: true, variant: "sm", ...{ ref, ...props } });
|
|
7
|
+
}
|
|
8
|
+
);
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiPHN0ZGluPiJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHsgZm9yd2FyZFJlZiB9IGZyb20gJ3JlYWN0J1xuXG5pbXBvcnQgeyBUeXBvZ3JhcGh5LCB0eXBlIFR5cG9ncmFwaHlQcm9wcyB9IGZyb20gJy4nXG5cbmV4cG9ydCBjb25zdCBTbWFsbCA9IGZvcndhcmRSZWY8SFRNTFNwYW5FbGVtZW50LCBUeXBvZ3JhcGh5UHJvcHM8YW55Pj4oXG4gIChwcm9wcywgcmVmKSA9PiB7XG4gICAgcmV0dXJuIChcbiAgICAgIDxUeXBvZ3JhcGh5IGFzPVwic21hbGxcIiBtb25kd2VzdCB2YXJpYW50PVwic21cIiB7Li4ueyByZWYsIC4uLnByb3BzIH19IC8+XG4gICAgKVxuICB9XG4pXG4iXSwKICAibWFwcGluZ3MiOiAiQUFPTTtBQVBOLFNBQVMsa0JBQWtCO0FBRTNCLFNBQVMsa0JBQXdDO0FBRTFDLGFBQU0sUUFBUTtBQUFBLEVBQ25CLENBQUMsT0FBTyxRQUFRO0FBQ2QsV0FDRSxvQkFBQyxjQUFXLElBQUcsU0FBUSxVQUFRLE1BQUMsU0FBUSxNQUFNLEdBQUcsRUFBRSxLQUFLLEdBQUcsTUFBTSxHQUFHO0FBQUEsRUFFeEU7QUFDRjsiLAogICJuYW1lcyI6IFtdCn0K
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function Watchlist({ className, counter, items, scramble, ...props }: WatchlistProps): import("react").JSX.Element;
|
|
2
|
+
interface WatchlistProps extends React.ComponentProps<'div'> {
|
|
3
|
+
counter?: boolean;
|
|
4
|
+
items: {
|
|
5
|
+
label?: React.ReactNode;
|
|
6
|
+
right?: React.ReactNode;
|
|
7
|
+
url?: string;
|
|
8
|
+
}[];
|
|
9
|
+
scramble?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "../../utils/index.js";
|
|
4
|
+
import { Scramble } from "./ascii.js";
|
|
5
|
+
import { LinkIcon } from "./icons/index.js";
|
|
6
|
+
import { Typography } from "./typography/index.js";
|
|
7
|
+
const ETH_RE = /^0x[a-fA-F0-9]{40}$/;
|
|
8
|
+
const truncate = (a) => `${a.slice(0, 6)}${"\xB7".repeat(8)}${a.slice(-4)}`;
|
|
9
|
+
export function Watchlist({
|
|
10
|
+
className,
|
|
11
|
+
counter = false,
|
|
12
|
+
items,
|
|
13
|
+
scramble = false,
|
|
14
|
+
...props
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col gap-3", className), ...props, children: items.map(({ label, right, url }, i) => {
|
|
17
|
+
const isStr = typeof label === "string";
|
|
18
|
+
const eth = isStr && ETH_RE.test(label);
|
|
19
|
+
const text = eth ? truncate(label) : label;
|
|
20
|
+
return /* @__PURE__ */ jsxs(
|
|
21
|
+
"a",
|
|
22
|
+
{
|
|
23
|
+
className: cn(
|
|
24
|
+
"grid items-center gap-2.5 px-2.5 py-1.5",
|
|
25
|
+
"text-display leading-[1.4]",
|
|
26
|
+
"hover:bg-midground/10! hover:ring-2 hover:ring-current/20",
|
|
27
|
+
"transition-all duration-500 hover:duration-0",
|
|
28
|
+
"opacity-(--midground-alpha)"
|
|
29
|
+
),
|
|
30
|
+
href: url,
|
|
31
|
+
rel: "noopener noreferrer",
|
|
32
|
+
style: {
|
|
33
|
+
background: `color-mix(in oklch, var(--color-midground) ${10 * Math.max(0, 1 - i / 9)}%, transparent)`,
|
|
34
|
+
gridTemplateColumns: [
|
|
35
|
+
counter && "auto auto",
|
|
36
|
+
"1fr",
|
|
37
|
+
right && "auto",
|
|
38
|
+
url && "auto auto"
|
|
39
|
+
].filter(Boolean).join(" ")
|
|
40
|
+
},
|
|
41
|
+
target: "_blank",
|
|
42
|
+
children: [
|
|
43
|
+
counter && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44
|
+
/* @__PURE__ */ jsx(
|
|
45
|
+
Typography,
|
|
46
|
+
{
|
|
47
|
+
className: "text-lg tracking-[0.35em] opacity-40",
|
|
48
|
+
compressed: true,
|
|
49
|
+
children: String(i + 1).padStart(2, "0")
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsx("span", { className: "text-[0.8125rem] font-bold tracking-[0.4em] opacity-20", children: ":" })
|
|
53
|
+
] }),
|
|
54
|
+
isStr ? /* @__PURE__ */ jsx(
|
|
55
|
+
Typography,
|
|
56
|
+
{
|
|
57
|
+
className: "min-w-0 overflow-hidden text-lg font-bold tracking-[0.35em]",
|
|
58
|
+
...eth ? { mono: true } : { compressed: true },
|
|
59
|
+
children: scramble ? /* @__PURE__ */ jsx(Scramble, { delay: i * 80, text }) : text
|
|
60
|
+
}
|
|
61
|
+
) : label,
|
|
62
|
+
right && /* @__PURE__ */ jsx(
|
|
63
|
+
Typography,
|
|
64
|
+
{
|
|
65
|
+
className: "text-right text-sm tracking-widest opacity-40",
|
|
66
|
+
mono: true,
|
|
67
|
+
children: right
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
url && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
71
|
+
/* @__PURE__ */ jsx("span", { className: "text-[0.8125rem] tracking-[0.4em] opacity-20", children: ":" }),
|
|
72
|
+
/* @__PURE__ */ jsx(LinkIcon, { className: "text-midground size-3.5" })
|
|
73
|
+
] })
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
i
|
|
77
|
+
);
|
|
78
|
+
}) });
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiPHN0ZGluPiJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiJ3VzZSBjbGllbnQnXG5cbmltcG9ydCB7IGNuIH0gZnJvbSAnLi4vLi4vdXRpbHMnXG5cbmltcG9ydCB7IFNjcmFtYmxlIH0gZnJvbSAnLi9hc2NpaSdcbmltcG9ydCB7IExpbmtJY29uIH0gZnJvbSAnLi9pY29ucydcbm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LWN1cnJlbnQvMjAnLFxuICAgICAgICAgICAgICAndHJhbnNpdGlvbi1hbGwgZHVyYXRpb24tNTAwIGhvdmVyOmR1cmF0aW9uLTAnLFxuICAgICAgICAgICAgICAnb3BhY2l0eS0oLS1taWRncm91bmQtYWxwaGEpJ1xuICAgICAgICAgICAgKX1cbiAgICAgICAgICAgIGhyZWY9e3VybH1cbiAgICAgICAgICAgIGtleT17aX1cbiAgICAgICAgICAgIHJlbD1cIm5vb3BlbmVyIG5vcmVmZXJyZXJcIlxuICAgICAgICAgICAgc3R5bGU9e3tcbiAgICAgICAgICAgICAgYmFja2dyb3VuZDogYGNvbG9yLW1peChpbiBva2xjaCwgdmFyKC0tY29sb3ItbWlkZ3JvdW5kKSAkezEwICogTWF0aC5tYXgoMCwgMSAtIGkgLyA5KX0lLCB0cmFuc3BhcmVudClgLFxuICAgICAgICAgICAgICBncmlkVGVtcGxhdGVDb2x1bW5zOiBbXG4gICAgICAgICAgICAgICAgY291bnRlciAmJiAnYXV0byBhdXRvJyxcbiAgICAgICAgICAgICAgICAnMWZyJyxcbiAgICAgICAgICAgICAgICByaWdodCAmJiAnYXV0bycsXG4gICAgICAgICAgICAgICAgdXJsICYmICdhdXRvIGF1dG8nXG4gICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAuZmlsdGVyKEJvb2xlYW4pXG4gICAgICAgICAgICAgICAgLmpvaW4oJyAnKVxuICAgICAgICAgICAgfX1cbiAgICAgICAgICAgIHRhcmdldD1cIl9ibGFua1wiXG4gICAgICAgICAgPlxuICAgICAgICAgICAge2NvdW50ZXIgJiYgKFxuICAgICAgICAgICAgICA8PlxuICAgICAgICAgICAgICAgIDxUeXBvZ3JhcGh5XG4gICAgICAgICAgICAgICAgICBjbGFzc05hbWU9XCJ0ZXh0LWxnIHRyYWNraW5nLVswLjM1ZW1dIG9wYWNpdHktNDBcIlxuICAgICAgICAgICAgICAgICAgY29tcHJlc3NlZFxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgIHtTdHJpbmcoaSArIDEpLnBhZFN0YXJ0KDIsICcwJyl9XG4gICAgICAgICAgICAgICAgPC9UeXBvZ3JhcGh5PlxuXG4gICAgICAgICAgICAgICAgPHNwYW4gY2xhc3NOYW1lPVwidGV4dC1bMC44MTI1cmVtXSBmb250LWJvbGQgdHJhY2tpbmctWzAuNGVtXSBvcGFjaXR5LTIwXCI+XG4gICAgICAgICAgICAgICAgICA6XG4gICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgICA8Lz5cbiAgICAgICAgICAgICl9XG5cbiAgICAgICAgICAgIHtpc1N0ciA/IChcbiAgICAgICAgICAgICAgPFR5cG9ncmFwaHlcbiAgICAgICAgICAgICAgICBjbGFzc05hbWU9XCJtaW4tdy0wIG92ZXJmbG93LWhpZGRlbiB0ZXh0LWxnIGZvbnQtYm9sZCB0cmFja2luZy1bMC4zNWVtXVwiXG4gICAgICAgICAgICAgICAgey4uLihldGggPyB7IG1vbm86IHRydWUgfSA6IHsgY29tcHJlc3NlZDogdHJ1ZSB9KX1cbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtzY3JhbWJsZSA/IDxTY3JhbWJsZSBkZWxheT17aSAqIDgwfSB0ZXh0PXt0ZXh0fSAvPiA6IHRleHR9XG4gICAgICAgICAgICAgIDwvVHlwb2dyYXBoeT5cbiAgICAgICAgICAgICkgOiAoXG4gICAgICAgICAgICAgIGxhYmVsXG4gICAgICAgICAgICApfVxuXG4gICAgICAgICAgICB7cmlnaHQgJiYgKFxuICAgICAgICAgICAgICA8VHlwb2dyYXBoeVxuICAgICAgICAgICAgICAgIGNsYXNzTmFtZT1cInRleHQtcmlnaHQgdGV4dC1zbSB0cmFja2luZy13aWRlc3Qgb3BhY2l0eS00MFwiXG4gICAgICAgICAgICAgICAgbW9ub1xuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge3JpZ2h0fVxuICAgICAgICAgICAgICA8L1R5cG9ncmFwaHk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7QUFBQSxhQUNGO0FBQUEsVUFHRCxRQUNDO0FBQUEsWUFBQztBQUFBO0FBQUEsY0FDQyxXQUFVO0FBQUEsY0FDVCxHQUFJLE1BQU0sRUFBRSxNQUFNLEtBQUssSUFBSSxFQUFFLFlBQVksS0FBSztBQUFBLGNBRTlDLHFCQUFXLG9CQUFDLFlBQVMsT0FBTyxJQUFJLElBQUksTUFBWSxJQUFLO0FBQUE7QUFBQSxVQUN4RCxJQUVBO0FBQUEsVUFHRCxTQUNDO0FBQUEsWUFBQztBQUFBO0FBQUEsY0FDQyxXQUFVO0FBQUEsY0FDVixNQUFJO0FBQUEsY0FFSDtBQUFBO0FBQUEsVUFDSDtBQUFBLFVBR0QsT0FDQyxpQ0FDRTtBQUFBLGdDQUFDLFVBQUssV0FBVSxnREFBK0MsZUFFL0Q7QUFBQSxZQUNBLG9CQUFDLFlBQVMsV0FBVSwyQkFBMEI7QUFBQSxhQUNoRDtBQUFBO0FBQUE7QUFBQSxNQXhERztBQUFBLElBMERQO0FBQUEsRUFFSixDQUFDLEdBQ0g7QUFFSjsiLAogICJuYW1lcyI6IFtdCn0K
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'Collapse';
|
|
3
|
+
font-style: normal;
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
src: url('../fonts/Collapse-Regular.woff2') format('woff2');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'Collapse';
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 700;
|
|
13
|
+
font-display: swap;
|
|
14
|
+
src: url('../fonts/Collapse-Bold.woff2') format('woff2');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: 'Rules Compressed';
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
font-display: swap;
|
|
22
|
+
src: url('../fonts/RulesCompressed-Regular.woff2') format('woff2');
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: 'Rules Compressed';
|
|
27
|
+
font-style: normal;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
font-display: swap;
|
|
30
|
+
src: url('../fonts/RulesCompressed-Medium.woff2') format('woff2');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@font-face {
|
|
34
|
+
font-family: 'Rules Expanded';
|
|
35
|
+
font-style: normal;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
font-display: swap;
|
|
38
|
+
src: url('../fonts/RulesExpanded-Regular.woff2') format('woff2');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: 'Rules Expanded';
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-weight: 700;
|
|
45
|
+
font-display: swap;
|
|
46
|
+
src: url('../fonts/RulesExpanded-Bold.woff2') format('woff2');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@font-face {
|
|
50
|
+
font-family: 'Mondwest';
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
font-display: swap;
|
|
54
|
+
src: url('../fonts/Mondwest-Regular.woff2') format('woff2');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:root {
|
|
58
|
+
--font-sans: 'Collapse', sans-serif;
|
|
59
|
+
--font-mono: 'Courier Prime', monospace;
|
|
60
|
+
--font-rules-compressed: 'Rules Compressed', sans-serif;
|
|
61
|
+
--font-rules-expanded: 'Rules Expanded', sans-serif;
|
|
62
|
+
--font-mondwest: 'Mondwest', sans-serif;
|
|
63
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type SocialLink } from './components/socials';
|
|
2
|
+
export declare function Footer({ className, groups, LinkComponent, socials, socialsLabel, style, themeLabel, themeToggle }: FooterProps): import("react").JSX.Element;
|
|
3
|
+
export interface FooterGroup {
|
|
4
|
+
label: string;
|
|
5
|
+
links: (FooterLink | string)[];
|
|
6
|
+
}
|
|
7
|
+
export interface FooterLink {
|
|
8
|
+
href: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FooterProps {
|
|
12
|
+
className?: string;
|
|
13
|
+
groups?: FooterGroup[];
|
|
14
|
+
LinkComponent?: React.ElementType;
|
|
15
|
+
socials?: SocialLink[];
|
|
16
|
+
socialsLabel?: string;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
themeLabel?: string;
|
|
19
|
+
themeToggle?: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useRef } from "react";
|
|
4
|
+
import { useCssVarDims } from "../hooks/use-css-var-dims.js";
|
|
5
|
+
import { Cell, Grid } from "./components/grid/index.js";
|
|
6
|
+
import { Socials } from "./components/socials.js";
|
|
7
|
+
import { ThemeToggle } from "./components/theme-toggle.js";
|
|
8
|
+
import { Small } from "./components/typography/small.js";
|
|
9
|
+
const DEFAULT_GROUPS = [
|
|
10
|
+
{ label: "Product", links: ["Overview", "Features", "Pricing"] },
|
|
11
|
+
{ label: "Resources", links: ["Docs", "Blog", "Support"] },
|
|
12
|
+
{ label: "Company", links: ["About", "Careers", "Contact"] },
|
|
13
|
+
{ label: "Legal", links: ["Privacy", "Terms", "License"] }
|
|
14
|
+
];
|
|
15
|
+
export function Footer({
|
|
16
|
+
className,
|
|
17
|
+
groups = DEFAULT_GROUPS,
|
|
18
|
+
LinkComponent = "a",
|
|
19
|
+
socials,
|
|
20
|
+
socialsLabel = "Socials",
|
|
21
|
+
style,
|
|
22
|
+
themeLabel = "Theme",
|
|
23
|
+
themeToggle = false
|
|
24
|
+
}) {
|
|
25
|
+
const ref = useRef(null);
|
|
26
|
+
useCssVarDims("footer", ref);
|
|
27
|
+
const hasSocials = (socials?.length ?? 0) > 0;
|
|
28
|
+
const hasChrome = hasSocials || themeToggle;
|
|
29
|
+
return /* @__PURE__ */ jsxs("footer", { className, ref, style, children: [
|
|
30
|
+
/* @__PURE__ */ jsxs(Grid, { children: [
|
|
31
|
+
/* @__PURE__ */ jsx(Cell, { children: /* @__PURE__ */ jsxs(Small, { className: "opacity-50", children: [
|
|
32
|
+
"\xA9",
|
|
33
|
+
(/* @__PURE__ */ new Date()).getFullYear()
|
|
34
|
+
] }) }),
|
|
35
|
+
groups.map(({ label, links }) => /* @__PURE__ */ jsxs(Cell, { children: [
|
|
36
|
+
/* @__PURE__ */ jsx(Small, { className: "opacity-50", children: label }),
|
|
37
|
+
/* @__PURE__ */ jsx("nav", { className: "mt-3 flex flex-col gap-2", children: links.map((link) => {
|
|
38
|
+
const href = typeof link === "string" ? `/${link.toLowerCase()}` : link.href;
|
|
39
|
+
const label2 = typeof link === "string" ? link : link.label;
|
|
40
|
+
return /* @__PURE__ */ jsx(
|
|
41
|
+
Small,
|
|
42
|
+
{
|
|
43
|
+
as: LinkComponent,
|
|
44
|
+
className: "underline",
|
|
45
|
+
href,
|
|
46
|
+
children: label2
|
|
47
|
+
},
|
|
48
|
+
label2
|
|
49
|
+
);
|
|
50
|
+
}) })
|
|
51
|
+
] }, label))
|
|
52
|
+
] }),
|
|
53
|
+
hasChrome && /* @__PURE__ */ jsxs(Grid, { children: [
|
|
54
|
+
hasSocials && /* @__PURE__ */ jsxs(Cell, { className: "flex items-start justify-between", children: [
|
|
55
|
+
/* @__PURE__ */ jsx(Small, { className: "opacity-50", children: socialsLabel }),
|
|
56
|
+
/* @__PURE__ */ jsx(Socials, { items: socials })
|
|
57
|
+
] }),
|
|
58
|
+
themeToggle && /* @__PURE__ */ jsxs(Cell, { className: "flex items-start justify-between", children: [
|
|
59
|
+
/* @__PURE__ */ jsx(Small, { className: "opacity-50", children: themeLabel }),
|
|
60
|
+
/* @__PURE__ */ jsx(ThemeToggle, {})
|
|
61
|
+
] })
|
|
62
|
+
] })
|
|
63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ID8gYC8ke2xpbmsudG9Mb3dlckNhc2UoKX1gXG4gICAgICAgICAgICAgICAgICA6IGxpbmsuaHJlZlxuXG4gICAgICAgICAgICAgICAgY29uc3QgbGFiZWwgPSB0eXBlb2YgbGluayA9PT0gJ3N0cmluZycgPyBsaW5rIDogbGluay5sYWJlbFxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICAgICAgIDxTbWFsbFxuICAgICAgICAgICAgICAgICAgICBhcz17TGlua0NvbXBvbmVudH1cbiAgICAgICAgICAgICAgICAgICAgY2xhc3NOYW1lPVwidW5kZXJsaW5lXCJcbiAgICAgICAgICAgICAgICAgICAgaHJlZj17aHJlZn1cbiAgICAgICAgICAgICAgICAgICAga2V5PXtsYWJlbH1cbiAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAge2xhYmVsfVxuICAgICAgICAgICAgICAgICAgPC9TbWFsbD5cbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgIH0pfVxuICAgICAgICAgICAgPC9uYXY+XG4gICAgICAgICAgPC9DZWxsPlxuICAgICAgICApKX1cbiAgICAgIDwvR3JpZD5cblxuICAgICAge2hhc0Nocm9tZSAmJiAoXG4gICAgICAgIDxHcmlkPlxuICAgICAgICAgIHtoYXNTb2NpYWxzICYmIChcbiAgICAgICAgICAgIDxDZWxsIGNsYXNzTmFtZT1cImZsZXggaXRlbXMtc3RhcnQganVzdGlmeS1iZXR3ZWVuXCI+XG4gICAgICAgICAgICAgIDxTbWFsbCBjbGFzc05hbWU9XCJvcGFjaXR5LTUwXCI+e3NvY2lhbHNMYWJlbH08L1NtYWxsPlxuXG4gICAgICAgICAgICAgIDxTb2NpYWxzIGl0ZW1zPXtzb2NpYWxzIX0gLz5cbiAgICAgICAgICAgIDwvQ2VsbD5cbiAgICAgICAgICApfVxuXG4gICAgICAgICAge3RoZW1lVG9nZ2xlICYmIChcbiAgICAgICAgICAgIDxDZWxsIGNsYXNzTmFtZT1cImZs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Q0FBQyxLQUN0QixLQUFLO0FBRVQsZ0JBQU1BLFNBQVEsT0FBTyxTQUFTLFdBQVcsT0FBTyxLQUFLO0FBRXJELGlCQUNFO0FBQUEsWUFBQztBQUFBO0FBQUEsY0FDQyxJQUFJO0FBQUEsY0FDSixXQUFVO0FBQUEsY0FDVjtBQUFBLGNBR0MsVUFBQUE7QUFBQTtBQUFBLFlBRklBO0FBQUEsVUFHUDtBQUFBLFFBRUosQ0FBQyxHQUNIO0FBQUEsV0F0QlMsS0F1QlgsQ0FDRDtBQUFBLE9BQ0g7QUFBQSxJQUVDLGFBQ0MscUJBQUMsUUFDRTtBQUFBLG9CQUNDLHFCQUFDLFFBQUssV0FBVSxvQ0FDZDtBQUFBLDRCQUFDLFNBQU0sV0FBVSxjQUFjLHdCQUFhO0FBQUEsUUFFNUMsb0JBQUMsV0FBUSxPQUFPLFNBQVU7QUFBQSxTQUM1QjtBQUFBLE1BR0QsZUFDQyxxQkFBQyxRQUFLLFdBQVUsb0NBQ2Q7QUFBQSw0QkFBQyxTQUFNLFdBQVUsY0FBYyxzQkFBVztBQUFBLFFBRTFDLG9CQUFDLGVBQVk7QUFBQSxTQUNmO0FBQUEsT0FFSjtBQUFBLEtBRUo7QUFFSjsiLAogICJuYW1lcyI6IFsibGFiZWwiXQp9Cg==
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
@source ".";
|
|
2
|
+
@import './components/fit-text/fit-text.css' layer(components);
|
|
3
|
+
@import './components/grid/grid.css' layer(components);
|
|
4
|
+
@view-transition {
|
|
5
|
+
navigation: auto;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@media (prefers-reduced-motion: reduce) {
|
|
9
|
+
@view-transition {
|
|
10
|
+
navigation: none;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
::view-transition-old(page),
|
|
15
|
+
::view-transition-new(page) {
|
|
16
|
+
animation-duration: 0.25s;
|
|
17
|
+
animation-timing-function: ease-out;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
::view-transition-old(page) {
|
|
21
|
+
animation: fade-out 0.25s ease-out;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
::view-transition-new(page) {
|
|
25
|
+
animation: fade-in 0.25s ease-out;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@keyframes fade-out {
|
|
29
|
+
to {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@keyframes fade-in {
|
|
35
|
+
from {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@keyframes slide-down {
|
|
41
|
+
from {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
transform: translateY(-6px);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@keyframes slide-up {
|
|
48
|
+
from {
|
|
49
|
+
opacity: 0;
|
|
50
|
+
transform: translateY(6px);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.animate-slide-down {
|
|
55
|
+
animation: slide-down 0.6s ease-out both;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.animate-slide-up {
|
|
59
|
+
animation: slide-up 0.6s ease-out both;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.animate-fade-in {
|
|
63
|
+
animation: fade-in 0.5s ease-out both;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes blink {
|
|
67
|
+
0%,
|
|
68
|
+
100% {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
71
|
+
50% {
|
|
72
|
+
opacity: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@keyframes spin-slow {
|
|
77
|
+
from {
|
|
78
|
+
transform: rotate(0deg);
|
|
79
|
+
}
|
|
80
|
+
to {
|
|
81
|
+
transform: rotate(360deg);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.animate-spin-slow {
|
|
86
|
+
animation: spin-slow 12s linear infinite;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@keyframes march {
|
|
90
|
+
to {
|
|
91
|
+
background-position: 0.5rem 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.group:hover .blink {
|
|
96
|
+
animation: blink 1s step-end infinite;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dither {
|
|
100
|
+
background: repeating-conic-gradient(currentColor 0% 25%, transparent 0% 50%)
|
|
101
|
+
0 0 / 2px 2px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@custom-variant dark (&:is(.dark *));
|
|
105
|
+
|
|
106
|
+
@theme inline {
|
|
107
|
+
--color-background: var(--background);
|
|
108
|
+
--color-background-base: var(--background-base);
|
|
109
|
+
--color-midground: var(--midground);
|
|
110
|
+
--color-midground-base: var(--midground-base);
|
|
111
|
+
--color-foreground: var(--foreground);
|
|
112
|
+
--color-foreground-base: var(--foreground-base);
|
|
113
|
+
--color-gesso: #eaeaea;
|
|
114
|
+
|
|
115
|
+
/* Semantic tokens — defaults for DS preview; consumers (e.g. shadcn-style
|
|
116
|
+
dashboards) can remap these via their own @theme inline. */
|
|
117
|
+
--color-destructive: var(--destructive, #fb2c36);
|
|
118
|
+
--color-destructive-foreground: var(--destructive-foreground, #ffffff);
|
|
119
|
+
--color-success: var(--success, #4ade80);
|
|
120
|
+
--color-warning: var(--warning, #ffbd38);
|
|
121
|
+
|
|
122
|
+
/* Text hierarchy — semantic tokens with WCAG AA-targeted defaults.
|
|
123
|
+
Consumers can override `--text-*` on `:root` (or any scope) without
|
|
124
|
+
touching DS internals. No value here goes below 0.65 effective alpha
|
|
125
|
+
for primary/secondary so stacked `/N` opacity is unnecessary. */
|
|
126
|
+
--color-text-primary: var(--text-primary, var(--midground));
|
|
127
|
+
--color-text-secondary: var(
|
|
128
|
+
--text-secondary,
|
|
129
|
+
color-mix(in srgb, var(--midground-base) 80%, transparent)
|
|
130
|
+
);
|
|
131
|
+
--color-text-tertiary: var(
|
|
132
|
+
--text-tertiary,
|
|
133
|
+
color-mix(in srgb, var(--midground-base) 65%, transparent)
|
|
134
|
+
);
|
|
135
|
+
--color-text-disabled: var(
|
|
136
|
+
--text-disabled,
|
|
137
|
+
color-mix(in srgb, var(--midground-base) 45%, transparent)
|
|
138
|
+
);
|
|
139
|
+
--color-text-on-accent: var(--text-on-accent, var(--background));
|
|
140
|
+
--color-text-display: var(--text-display, var(--midground));
|
|
141
|
+
|
|
142
|
+
--color-current: currentColor;
|
|
143
|
+
--color-transparent: transparent;
|
|
144
|
+
|
|
145
|
+
--gap-inherit: inherit;
|
|
146
|
+
--height-between-header-footer: max(
|
|
147
|
+
400px,
|
|
148
|
+
calc(
|
|
149
|
+
100dvh - 5rem -
|
|
150
|
+
(var(--header-height, 3.5rem) + var(--footer-height, 4.35rem))
|
|
151
|
+
)
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:root {
|
|
156
|
+
--background: color-mix(in srgb, #170d02 100%, transparent);
|
|
157
|
+
--background-base: #170d02;
|
|
158
|
+
--background-alpha: 1;
|
|
159
|
+
--midground: color-mix(in srgb, #ffac02 100%, transparent);
|
|
160
|
+
--midground-base: #ffac02;
|
|
161
|
+
--midground-alpha: 1;
|
|
162
|
+
--foreground: color-mix(in srgb, #fff 100%, transparent);
|
|
163
|
+
--foreground-base: #fff;
|
|
164
|
+
--foreground-alpha: 1;
|
|
165
|
+
--font-sans: 'Collapse', sans-serif;
|
|
166
|
+
--font-mono: 'Courier Prime', monospace;
|
|
167
|
+
--font-rules-compressed: 'Rules Compressed', sans-serif;
|
|
168
|
+
--font-rules-expanded: 'Rules Expanded', sans-serif;
|
|
169
|
+
--font-mondwest: 'Mondwest', sans-serif;
|
|
170
|
+
--vsq: calc(0.5vw + 0.5vh);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@property --fit-captured-length {
|
|
174
|
+
syntax: '<length>';
|
|
175
|
+
initial-value: 0px;
|
|
176
|
+
inherits: true;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@utility font-compressed {
|
|
180
|
+
font-family: var(--font-rules-compressed);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@utility font-expanded {
|
|
184
|
+
font-family: var(--font-rules-expanded);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@utility font-mondwest {
|
|
188
|
+
font-family: var(--font-mondwest);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@utility font-courier {
|
|
192
|
+
font-family: 'Courier New', var(--font-mono), monospace;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* Brand display style — opt-in uppercase + tracking. Purely typographic;
|
|
196
|
+
composes with any font utility (font-mondwest, font-compressed,
|
|
197
|
+
font-mono, font-courier) and any color utility. Use on chrome
|
|
198
|
+
(buttons, badges, nav section headings, page titles) where the brand
|
|
199
|
+
look is intentional. Body content should NOT use this utility.
|
|
200
|
+
Consumers wanting the canonical look apply `text-display font-mondwest`
|
|
201
|
+
together. */
|
|
202
|
+
@utility text-display {
|
|
203
|
+
text-transform: uppercase;
|
|
204
|
+
letter-spacing: 0.05em;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@utility font-serif {
|
|
208
|
+
font-family: 'Times New Roman', Times, serif;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@utility text-box-trim-none {
|
|
212
|
+
text-box-trim: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@utility text-box-trim-both {
|
|
216
|
+
text-box-trim: trim-both;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@utility text-box-trim-start {
|
|
220
|
+
text-box-trim: trim-start;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@utility text-box-trim-end {
|
|
224
|
+
text-box-trim: trim-end;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@utility grid-cols-auto-fit {
|
|
228
|
+
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@utility h-between-header-footer {
|
|
232
|
+
min-height: var(--height-between-header-footer);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@utility w-fill {
|
|
236
|
+
width: -webkit-fill-available;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
@utility h-fill {
|
|
240
|
+
height: -webkit-fill-available;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@utility antialiased {
|
|
244
|
+
-webkit-font-smoothing: antialiased;
|
|
245
|
+
-moz-osx-font-smoothing: grayscale;
|
|
246
|
+
text-rendering: optimizeLegibility;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@utility underline-from-font {
|
|
250
|
+
text-decoration-skip-ink: auto;
|
|
251
|
+
text-underline-position: from-font;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@keyframes toast-in {
|
|
255
|
+
from {
|
|
256
|
+
opacity: 0;
|
|
257
|
+
transform: translateX(1rem);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@keyframes toast-out {
|
|
262
|
+
to {
|
|
263
|
+
opacity: 0;
|
|
264
|
+
transform: translateX(1rem);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
@keyframes gradient-stroke {
|
|
269
|
+
0% {
|
|
270
|
+
background-position: 15% 15%;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
100% {
|
|
274
|
+
background-position: 75% 75%;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.arc-border {
|
|
279
|
+
--_t: clamp(0%, (0.5 - var(--foreground-alpha, 1)) * 99900%, 100%);
|
|
280
|
+
--arc-c0: color-mix(in srgb, var(--foreground) var(--_t), transparent);
|
|
281
|
+
--arc-c1: var(--midground);
|
|
282
|
+
--arc-c2: var(--background);
|
|
283
|
+
--arc-angle: 160deg;
|
|
284
|
+
--arc-width: 1.25px;
|
|
285
|
+
--arc-inset: -2px;
|
|
286
|
+
--arc-duration: 2.23s;
|
|
287
|
+
--arc-gradient: linear-gradient(
|
|
288
|
+
var(--arc-angle),
|
|
289
|
+
transparent 0%,
|
|
290
|
+
var(--arc-c0) 15%,
|
|
291
|
+
var(--arc-c1) 20%,
|
|
292
|
+
var(--arc-c2) 25%,
|
|
293
|
+
transparent 35%,
|
|
294
|
+
transparent 40%,
|
|
295
|
+
var(--arc-c0) 55%,
|
|
296
|
+
var(--arc-c1) 60%,
|
|
297
|
+
var(--arc-c2) 65%,
|
|
298
|
+
transparent 75%,
|
|
299
|
+
transparent 80%,
|
|
300
|
+
var(--arc-c0) 95%,
|
|
301
|
+
var(--arc-c1) 100%
|
|
302
|
+
);
|
|
303
|
+
|
|
304
|
+
@apply pointer-events-none absolute z-[-1] overflow-hidden rounded-[inherit];
|
|
305
|
+
|
|
306
|
+
inset: var(--arc-inset);
|
|
307
|
+
padding: var(--arc-width);
|
|
308
|
+
mask:
|
|
309
|
+
linear-gradient(#000 0 0) content-box,
|
|
310
|
+
linear-gradient(#000 0 0);
|
|
311
|
+
-webkit-mask-composite: xor;
|
|
312
|
+
mask-composite: exclude;
|
|
313
|
+
|
|
314
|
+
&::before {
|
|
315
|
+
content: '';
|
|
316
|
+
@apply absolute inset-0 rounded-[inherit];
|
|
317
|
+
background: var(--arc-gradient);
|
|
318
|
+
background-size: 300% 300%;
|
|
319
|
+
animation: gradient-stroke var(--arc-duration) linear infinite;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@layer base {
|
|
324
|
+
* {
|
|
325
|
+
@apply antialiased;
|
|
326
|
+
|
|
327
|
+
scrollbar-width: thin;
|
|
328
|
+
scrollbar-color: transparent transparent;
|
|
329
|
+
|
|
330
|
+
&:hover {
|
|
331
|
+
scrollbar-color: color-mix(in srgb, var(--midground) 20%, transparent)
|
|
332
|
+
transparent;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
::-webkit-scrollbar {
|
|
337
|
+
width: 0.25rem;
|
|
338
|
+
height: 0.25rem;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
::-webkit-scrollbar-track,
|
|
342
|
+
::-webkit-scrollbar-button {
|
|
343
|
+
display: none;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
::-webkit-scrollbar-thumb {
|
|
347
|
+
background: transparent;
|
|
348
|
+
border-radius: 1rem;
|
|
349
|
+
min-height: 1rem;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
*:hover::-webkit-scrollbar-thumb {
|
|
353
|
+
background: color-mix(in srgb, var(--midground) 20%, transparent);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
html,
|
|
357
|
+
body {
|
|
358
|
+
scrollbar-color: color-mix(in srgb, var(--midground) 65%, transparent)
|
|
359
|
+
transparent;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
html:hover,
|
|
363
|
+
body:hover {
|
|
364
|
+
scrollbar-color: color-mix(in srgb, var(--midground) 80%, transparent)
|
|
365
|
+
transparent;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
html::-webkit-scrollbar-thumb,
|
|
369
|
+
body::-webkit-scrollbar-thumb {
|
|
370
|
+
background: color-mix(in srgb, var(--midground) 65%, transparent);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
html:hover::-webkit-scrollbar-thumb,
|
|
374
|
+
body:hover::-webkit-scrollbar-thumb {
|
|
375
|
+
background: color-mix(in srgb, var(--midground) 80%, transparent);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
html {
|
|
379
|
+
font-size: clamp(14px, calc(14px + 2 * ((100vw - 1400px) / 400)), 18px);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
body {
|
|
383
|
+
@apply bg-background text-foreground;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.underline {
|
|
387
|
+
@apply underline-from-font underline decoration-current/25 decoration-solid decoration-auto underline-offset-1 transition-[text-decoration-color] hover:decoration-current;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
*::selection,
|
|
391
|
+
code {
|
|
392
|
+
background: var(--selection-bg, var(--midground));
|
|
393
|
+
@apply text-background;
|
|
394
|
+
}
|
|
395
|
+
}
|