Skip to content

Commit

Permalink
feat: add powered by (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmaxed authored Jan 27, 2025
1 parent 4f7dbc4 commit 5005fac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cypress/e2e/english/landing/i18n.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,9 @@ describe('Landing i18n (Hashnode sourced)', () => {
.should('not.equal', 'footer.links.copyright')
.should('have.attr', 'href')
.should('equal', 'https://www.freecodecamp.org/news/copyright-policy/');
cy.get("span[data-test-label='powered-by']").should(
'contain.text',
'Publication powered by Hashnode'
);
});
});
7 changes: 5 additions & 2 deletions src/_includes/assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -2091,8 +2091,10 @@ p.footer-donation a:hover {
justify-content: center;
}

.footer-bottom .our-nonprofit a {
.footer-bottom .our-nonprofit a,
.footer-bottom .our-nonprofit span {
padding: 5px 10px;
font-size: 14px;
}

@media (min-width: 500px) {
Expand All @@ -2110,7 +2112,8 @@ p.footer-donation a:hover {
font-size: 16.5;
}

.footer-bottom .our-nonprofit a {
.footer-bottom .our-nonprofit a,
.footer-bottom .our-nonprofit span {
padding: 5px;
}
}
Expand Down
5 changes: 5 additions & 0 deletions src/_includes/partials/footer.njk
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@
<div class='footer-bottom'>
<h2 class="col-header" data-test-label="our-nonprofit">{% t 'footer.our-nonprofit' %}</h2>
<div class="our-nonprofit">
{% if site.lang === 'en' %}
<span data-test-label="powered-by">
Publication powered by Hashnode
</span>
{% endif %}
<a href="{% t 'links:footer.about' %}" rel="noopener noreferrer" target="_blank" data-test-label="about">
{% t 'footer.links.about' %}
</a>
Expand Down

0 comments on commit 5005fac

Please # to comment.