Skip to content

Commit

Permalink
feat: footer mobile responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Jun 19, 2024
1 parent e6beb98 commit a01e7e4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
30 changes: 30 additions & 0 deletions src/theme/Footer/Copyright/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,34 @@ span.icon {

.img {
margin: 0 0 0 10px;
}

.logo {
display: none;
}

@media screen and (max-width: 996px) {
.wrap {
flex-direction: column;
text-align: left;
}

.social {
order: -1;
padding-bottom: 0.5rem;
margin-bottom: 1rem;
border-bottom: 1px solid #ccc;
}

.logo {
display: block;
width: 4rem;
margin-right: auto;
}

.copyright {
display: flex;
gap: 10px;
text-align: right;
}
}
7 changes: 5 additions & 2 deletions src/theme/Footer/Copyright/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ export default function CopyrightWrapper(props: Props): JSX.Element {
return (
<>
<div className={styles.wrap}>
<Copyright {...props} />
<div>
<div className={styles.copyright}>
<img className={styles.logo} src="/img/Logo.aelf.svg" />
<Copyright {...props} />
</div>
<div className={styles.social}>
{socialLinks.links.map((i, key) => (
<a
key={key}
Expand Down

0 comments on commit a01e7e4

Please sign in to comment.