canvas init

This commit is contained in:
2026-03-01 22:07:33 -06:00
parent 62346321d7
commit 0713ad7521
2 changed files with 27 additions and 5 deletions

View File

@@ -1,9 +1,15 @@
import {motion} from "framer-motion";
import "./canvas.scss";
export function Canvas() {
return (
<>
<main className="main">
<h1>Welcome to my blog</h1>
</main>
</>
<main>
<motion.h1 className="welcome" animate={{ rotate: 360 }}>
Welcome to my blog
</motion.h1>
<canvas>
</canvas>
</main>
)
}

16
src/index/canvas.scss Normal file
View File

@@ -0,0 +1,16 @@
main {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 10%;
background: black;
color: white;
}
.welcome {
text-align: center;
top: 25%;
position: relative;
}