feat: add noise background image
This commit is contained in:
parent
c3f2c0839b
commit
821d87c568
3 changed files with 21 additions and 5 deletions
19
src/components/react/noise-bg.tsx
Normal file
19
src/components/react/noise-bg.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
export function NoiseBg() {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
position: "fixed",
|
||||
inset: 0,
|
||||
zIndex: -1,
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
backgroundSize: "128px",
|
||||
backgroundRepeat: "repeat",
|
||||
backgroundImage:
|
||||
"url('https://framerusercontent.com/images/rR6HYXBrMmX4cRpXfXUOvpvpB0.png')",
|
||||
opacity: 0.06,
|
||||
borderRadius: 0,
|
||||
}}
|
||||
></div>
|
||||
)
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
export function Test() {
|
||||
return (
|
||||
<div className="text-3xl text-blue-500">Test React and TailwindCSS</div>
|
||||
)
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
import "~/styles/globals.css"
|
||||
import { config } from "~/config"
|
||||
import { NoiseBg } from "~/components/react/noise-bg"
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
|
|
@ -35,6 +36,7 @@ import { config } from "~/config"
|
|||
<body class="dark:bg-[#121212] dark:text-white">
|
||||
<div class="flex min-h-screen w-full justify-center px-10 md:p-0">
|
||||
<slot />
|
||||
<NoiseBg />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue