Skip to content

Commit

Permalink
Merge pull request #56 from mmcbride2929/add-netlify-logo-51
Browse files Browse the repository at this point in the history
Add Netlify Logo
  • Loading branch information
readysetagile authored Aug 3, 2023
2 parents e49fa90 + 51453b4 commit ec5293a
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function Footer() {
</ul>
</nav>
<p>Copyright Free Code Camp Columbus 2023 - {new Date().getFullYear()}</p>
<a href="https://www.netlify.com" target="_blank" rel="noreferrer" className="image-wrapper"> <img src="https://www.netlify.com/v3/img/components/netlify-color-accent.svg" alt="Deploys by Netlify" /> </a>
</footer>
);
}
Expand Down
13 changes: 13 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ th {
}

footer {
display: flex;
flex-direction: column;
justify-content: space-around;
background-color: #97dad0;
padding: 1em 1em 2em 1em;
}
Expand All @@ -228,4 +231,14 @@ footer p {

footer p {
margin: 0;
}

footer .image-wrapper {
display: inline-block;
width: 90px;
margin: 1rem auto 0;
}

footer img {
max-width: 100%;
}
13 changes: 13 additions & 0 deletions src/test/__snapshots__/App.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,19 @@ exports[`App renders 1`] = `
Copyright Free Code Camp Columbus 2023 -
2023
</p>
<a
className="image-wrapper"
href="https://www.netlify.com"
rel="noreferrer"
target="_blank"
>
<img
alt="Deploys by Netlify"
src="https://www.netlify.com/v3/img/components/netlify-color-accent.svg"
/>
</a>
</footer>
</div>
`;
13 changes: 13 additions & 0 deletions src/test/components/__snapshots__/Footer.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,18 @@ exports[`Footer renders 1`] = `
Copyright Free Code Camp Columbus 2023 -
2023
</p>
<a
className="image-wrapper"
href="https://www.netlify.com"
rel="noreferrer"
target="_blank"
>
<img
alt="Deploys by Netlify"
src="https://www.netlify.com/v3/img/components/netlify-color-accent.svg"
/>
</a>
</footer>
`;

0 comments on commit ec5293a

Please sign in to comment.