improve: adjust footer layout
This commit is contained in:
@@ -33,14 +33,22 @@
|
|||||||
.footer-content {
|
.footer-content {
|
||||||
margin-bottom: auto;
|
margin-bottom: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-content a {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-icons {
|
.footer-icons {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
align-items: flex-end;
|
align-items: flex-start;
|
||||||
margin-right: 1rem;
|
margin-left: 1rem;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-icon {
|
.footer-icon {
|
||||||
|
|||||||
@@ -25,7 +25,15 @@ const Footer = () => {
|
|||||||
{isExpanded ? "↓" : "↑"}
|
{isExpanded ? "↓" : "↑"}
|
||||||
</button>
|
</button>
|
||||||
<div className={`footer-content`}>
|
<div className={`footer-content`}>
|
||||||
<p>© {new Date().getFullYear()} Hangman Lab. All rights reserved.</p>
|
<p>© {new Date().getFullYear()} Hangman Lab. {!isVisible && (<span>
|
||||||
|
|
||||||
|
<a href="mailto:hzhang@hangman-lab.top">email</a>
|
||||||
|
|
||||||
|
<a href="https://git.hangman-lab.top/hzhang/HangmanLab">git</a>
|
||||||
|
|
||||||
|
|
||||||
|
</span>
|
||||||
|
)}</p>
|
||||||
{
|
{
|
||||||
isVisible && (
|
isVisible && (
|
||||||
<div
|
<div
|
||||||
@@ -52,10 +60,10 @@ const Footer = () => {
|
|||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src="/icons/git.png"
|
src="/icons/git.png"
|
||||||
alt="GitHub"
|
alt="Git"
|
||||||
className="footer-icon"
|
className="footer-icon"
|
||||||
/>
|
/>
|
||||||
GitHub
|
Git
|
||||||
</a>
|
</a>
|
||||||
<a href="mailto:hzhang@hangman-lab.top">
|
<a href="mailto:hzhang@hangman-lab.top">
|
||||||
<img
|
<img
|
||||||
|
|||||||
Reference in New Issue
Block a user