Fixed a few stuff
This commit is contained in:
+8
-1
@@ -32,7 +32,7 @@ export default function App() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="content-center w-full lg:mx-auto pt-5 relative z-20 pb-10 animate-fadeIn">
|
<div className="content-center w-full lg:mx-auto pt-5 relative z-20 pb-5 animate-fadeIn">
|
||||||
<div className="w-full max-w-screen-lg mx-auto">
|
<div className="w-full max-w-screen-lg mx-auto">
|
||||||
<div className="px-8 md:px-10 lg:px-15 xl:px-24">
|
<div className="px-8 md:px-10 lg:px-15 xl:px-24">
|
||||||
<h1 className="py-2 text-gray-300">Hey, I'm Klesti! 👋🏻</h1>
|
<h1 className="py-2 text-gray-300">Hey, I'm Klesti! 👋🏻</h1>
|
||||||
@@ -95,6 +95,7 @@ export default function App() {
|
|||||||
</h2>
|
</h2>
|
||||||
<section className="mt-4">
|
<section className="mt-4">
|
||||||
<GitHubCalendar
|
<GitHubCalendar
|
||||||
|
hideTotalCount
|
||||||
username="kleo-dev"
|
username="kleo-dev"
|
||||||
theme={{
|
theme={{
|
||||||
light: [
|
light: [
|
||||||
@@ -114,6 +115,12 @@ export default function App() {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
|
<footer className="mt-8 border-t pt-3">
|
||||||
|
If you see this i ❤️ you
|
||||||
|
<p className="text-slate-300 mx-auto w-max mt-2">
|
||||||
|
© 2025 Klesti. All rights reserved.
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,9 +7,8 @@ export default function Background({
|
|||||||
}: Readonly<{
|
}: Readonly<{
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}>) {
|
}>) {
|
||||||
const [pos, setPos] = useState({ x: 100, y: 100 });
|
const [pos, setPos] = useState({ x: 30, y: 100 });
|
||||||
const [vel, setVel] = useState({ x: 1, y: 1 });
|
const [vel, setVel] = useState({ x: 1, y: 1 });
|
||||||
const dvdRef = useRef<HTMLImageElement>(null);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let frame: number;
|
let frame: number;
|
||||||
@@ -18,8 +17,8 @@ export default function Background({
|
|||||||
let vx = vel.x;
|
let vx = vel.x;
|
||||||
let vy = vel.y;
|
let vy = vel.y;
|
||||||
|
|
||||||
const speed = 0.8;
|
const speed = 0.5;
|
||||||
const size = 120;
|
const size = 100;
|
||||||
|
|
||||||
// helper for collision detection
|
// helper for collision detection
|
||||||
const detectCollision = (
|
const detectCollision = (
|
||||||
@@ -68,13 +67,12 @@ export default function Background({
|
|||||||
return (
|
return (
|
||||||
<div className="relative w-full min-h-screen overflow-hidden bg-black">
|
<div className="relative w-full min-h-screen overflow-hidden bg-black">
|
||||||
<img
|
<img
|
||||||
ref={dvdRef}
|
|
||||||
style={{
|
style={{
|
||||||
transform: `translate(${pos.x}px, ${pos.y}px)`,
|
transform: `translate(${pos.x}px, ${pos.y}px)`,
|
||||||
}}
|
}}
|
||||||
src="/logo.png"
|
src="/logo.png"
|
||||||
alt="Logo"
|
alt="Logo"
|
||||||
className="size-24 rounded-full border-slate-400 border"
|
className="size-24 rounded-full border-slate-500 border"
|
||||||
/>
|
/>
|
||||||
<div className="relative z-10">{children}</div>
|
<div className="relative z-10">{children}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user