fix: profile lifting
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m39s
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m39s
This commit is contained in:
@@ -12,9 +12,6 @@
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.left {
|
||||
}
|
||||
|
||||
.avatar {
|
||||
position: relative;
|
||||
display: flex;
|
||||
@@ -57,10 +54,4 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.rightTop {
|
||||
}
|
||||
|
||||
.rightBottom {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { useState } from "react";
|
||||
import classes from "./Profile.module.css";
|
||||
import { motion } from "motion/react";
|
||||
import { Liftable } from "@components/lift";
|
||||
@@ -5,6 +6,9 @@ import { useTelegramUser } from "@/tg";
|
||||
|
||||
export default function Profile() {
|
||||
const user = useTelegramUser();
|
||||
|
||||
const [satue, setSatue] = useState(1);
|
||||
|
||||
return (
|
||||
<Liftable always>
|
||||
<motion.div
|
||||
@@ -20,9 +24,13 @@ export default function Profile() {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className={classes.right}>
|
||||
<div className={classes.rightTop} />
|
||||
<div className={classes.rightBottom} />
|
||||
<div>
|
||||
{satue}
|
||||
<button onClick={() => setSatue((v) => v + 1)}>+</button>
|
||||
<button onClick={() => setSatue((v) => v - 1)}>-</button>
|
||||
|
||||
<div />
|
||||
<div />
|
||||
</div>
|
||||
</motion.div>
|
||||
</Liftable>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
@layer base {
|
||||
.settings {
|
||||
margin-left: auto;
|
||||
width: 80px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user