Skip to content

Commit

Permalink
fix(sb): bgs base path.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Sep 2, 2024
1 parent 170b8d6 commit 9a1bd91
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ const config: StorybookConfig = {
name: "@storybook/react-vite",
options: {},
},
staticDirs: [{ from: "../public", to: "assets" }],
staticDirs: [
"../public",
// { from: "../public", to: "assets" }
],
viteFinal: (config) => {
config.base = "/glassy-ui/";
return config;
Expand Down
10 changes: 5 additions & 5 deletions .storybook/preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ html {
min-height: 100vh;
margin: 0;
padding: 0;
background: url("/assets/bgs/retro-future-01.png") no-repeat center center fixed;
background: url("/glassy-ui/bgs/retro-future-01.png") no-repeat center center fixed;
background-size: cover;
animation: bg-rotator 40s linear alternate infinite;
/* 10s per image */
}

@keyframes bg-rotator {
0% {
background-image: url("/assets/bgs/retro-future-01.png");
background-image: url("/glassy-ui/bgs/retro-future-01.png");
}

33% {
background-image: url("/assets/bgs/retro-future-04.png");
background-image: url("/glassy-ui/bgs/retro-future-04.png");
}

66% {
background-image: url("/assets/bgs/retro-future-03.png");
background-image: url("/glassy-ui/bgs/retro-future-03.png");
}

100% {
background-image: url("/assets/bgs/retro-future-02.png");
background-image: url("/glassy-ui/bgs/retro-future-02.png");
}
}

Expand Down
Binary file added public/glassy-ui/bgs/retro-future-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/glassy-ui/bgs/retro-future-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/glassy-ui/bgs/retro-future-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/glassy-ui/bgs/retro-future-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9a1bd91

Please sign in to comment.