fix(front): hide when the discord id is submitted

This commit is contained in:
Hexagonn
2024-11-03 05:25:17 +00:00
committed by GitHub
parent 8ec6196593
commit a40895bfd4
2 changed files with 15 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ body {
}
.stat {
position: absolute;
position: fixed;
display: flex;
flex-direction: row;
align-items: center;

View File

@@ -503,14 +503,26 @@ export default function Home() {
</motion.div>
</div>
</main>
<footer className="stat">
<motion.footer
variants={{
open: {
opacity: 1,
},
closed: {
opacity: 0,
},
}}
animate={isLoading ? "open" : "closed"}
transition={{ duration: 0.5 }}
className="stat"
>
Lanyard Profile Readme has{" "}
<div
style={{ fontWeight: "bold", width: "3.2rem" }}
ref={countRef}
/>{" "}
total users!
</footer>
</motion.footer>
</>
);
}