Skip to content

Commit

Permalink
Merge pull request #24 from untalsanders/develop
Browse files Browse the repository at this point in the history
- chore: made-in in footer
- fix: fixed flexibility
  • Loading branch information
untalsanders committed Apr 1, 2024
2 parents a2c7ad2 + fe391b8 commit 9f84d2e
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 3 deletions.
79 changes: 79 additions & 0 deletions public/images/flag-argentina.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@

import styles from '@styles/Footer.module.css'

const Copyright = () => <div>Copyright &copy; 2024 Sanders Gutiérrez. All rights reserved.</div>

const MadeIn = () => (
<div className={styles.Footer__Content_MadeIn}>
<span>Made in Argentina</span>
<img src="/images/flag-argentina.svg" alt="flag-argentina" width={28} height={20} />
</div>
)

export function Footer() {
return (
<footer className={styles.footer}>
<div className="container">
<div>Copyright &copy; 2024 Sanders Gutiérrez. All rights reserved.</div>
<div className={`container ${styles.Footer__Content}`}>
<Copyright />
<MadeIn />
</div>
</footer>
)
}
}
27 changes: 27 additions & 0 deletions src/styles/Footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,31 @@
background-color: #1e1e1e;
color: white;
padding: 1rem;
text-align: center;
}

.Footer__Content {
display: flex;
flex-direction: column;
gap: .5rem;
align-items: center;
/* flex-wrap: wrap;
justify-content: space-between; */

@media (width > 50rem) {
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}
}

.Footer__Content_MadeIn {
display: flex;
align-items: center;
gap: .75rem;

img {
width: 20;
height: 15;
}
}

0 comments on commit 9f84d2e

Please sign in to comment.