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 { .stat {
position: absolute; position: fixed;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;

View File

@@ -503,14 +503,26 @@ export default function Home() {
</motion.div> </motion.div>
</div> </div>
</main> </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{" "} Lanyard Profile Readme has{" "}
<div <div
style={{ fontWeight: "bold", width: "3.2rem" }} style={{ fontWeight: "bold", width: "3.2rem" }}
ref={countRef} ref={countRef}
/>{" "} />{" "}
total users! total users!
</footer> </motion.footer>
</> </>
); );
} }