Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve footer logo display for 2024 FCCN brand image #47

Merged
merged 5 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 154 additions & 0 deletions edx-platform/nau-basic/cms/static/images/logo_nau_by_fccn_fct.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -78,46 +78,50 @@ footer {

section#entities-quick-links {
background-color: white;
display: flex;
justify-content: space-between;
padding: 40px 50px;
flex-wrap: wrap;
padding: 25px 65px;

@media screen and (max-width: $breakpoint-medium) {
flex-direction: column;
padding-right: 0;
padding-left: 0;
}

& > div {
text-align: center;
padding-bottom: 10px;
.entities-quick-links__line {
display:flex;
justify-content: center;
gap: 1.5rem;
border-block-end: 1px solid #dedede;
padding: 1rem 0 1.6rem 0;

img {
max-width: 280px;
&:last-child {
border: none;
}

@media screen and (max-width: $breakpoint-small) {
max-width: 200px;
}
@media screen and (max-width: $breakpoint-medium) {
flex-direction: column;
align-items: center;
}
}

.entities-links-logo {
text-align: center;
padding-top: 10px;
padding-right: 5px;
padding-left: 5px;

.wp-caption-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
img {
max-width: calc(100vw - 20px);
max-height: 4.6rem;
}

@media screen and (max-width: $breakpoint-medium) {
padding: 10px 10px 0 10px;
margin-left: auto;
margin-right: auto;
}

&:first-child {
text-align: left;
padding-left: 0px;

@media screen and (max-width: $breakpoint-medium) {
text-align: center;
Expand All @@ -126,6 +130,7 @@ footer {

&:last-child {
text-align: right;
padding-right: 0px;

@media screen and (max-width: $breakpoint-medium) {
text-align: center;
Expand Down Expand Up @@ -159,3 +164,5 @@ footer {
}
}
}

//aaa
43 changes: 23 additions & 20 deletions edx-platform/nau-basic/cms/templates/widgets/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,30 +62,33 @@
</div>
</div>
</div>
<!--
<section id="entities-quick-links">
<ul class="flex-row">
<li><a href="https://nau.edu.pt"><img id="logo-nau" src="${static.url('images/nau_sempre_aprender.svg')}" alt="Logo NAU" title="NAU - Sempre a Aprender"></a>
<span id="copyright" >&copy; 2020 - FCT|FCCN. Todos os direitos reservados.</span>
</li>
<li><a id="logo-compete" href="https://www.fccn.pt/financiamento-projeto-nau/"><img src="${static.url('images/3logos-feder_small.png')}" alt="Logos: Compete, Portugal 2020 e União Europeia - Fundo Europeu de Desenvolvimento Regional" title="Compete 2020, Portugal 2020 e União Europeia - Fundo Europeu de Desenvolvimento Regional"></a></li>
<li><a id="logo-incode2030" href="https://www.incode2030.gov.pt/" target="_blank"><img src="${static.url('images/logo_incode2030_v3.png')}" alt="Portugal - INcode2030" title="Visitar o site INcode.2030"></a></li>
</ul>
</section>
-->

<%
entities_logos = static.get_value('NAU_ENTITIES_FOOTER', {}).get("itens", {})
%>
<!-- corporate entities logos -->
footer_logos = static.get_value('NAU_FOOTER_LOGOS', {}).get("itens", {})
%>
% if len(footer_logos)>0:
<section id="entities-quick-links">
% for entity in entities_logos:
<div class="entities-links-logo">
<a href="${entity['link']}" class="entity-link" target="_blank" rel="noreferer noopener">
<img src="${entity['image']}" alt="${entity['alt'] if 'alt' in entity.keys() else ''}">
</a>
</div>
<!-- institutional logos -->
% for row in footer_logos:
<section class="entities-quick-links__line">
% for item in row:
<div class="entities-links-logo">
<a href="${item.get('link','')}" class="entity-link" target="${item.get('target', '_blank')}" rel="noopener">
<img
loading="lazy"
src="${item.get('image', '')}"
alt="${item.get('alt', '')}"
title="${item.get('title', '')}"
width="${item.get('width', '')}"
height="${item.get('height', '')}" />
</a>
</div>
% endfor
</section>
% endfor
<!-- end of institutional logos -->
</section>
% endif
<section class="site-copyright">
<div class="site-copyright--nau">
<span>&copy; ${datetime.now().year} - FCT|FCCN<br>${_('All rights reserved')}</span>
Expand Down
2 changes: 1 addition & 1 deletion edx-platform/nau-basic/cms/templates/widgets/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="wrapper wrapper-l">
<h1 class="branding">
<a class="brand-link" href="/">
<img class="brand-image" src="${static.url('images/nau_sempre_aprender.svg')}" alt="${settings.STUDIO_NAME}" />
<img class="brand-image" src="${static.url('images/logo_nau_by_fccn_fct.svg')}" alt="${settings.STUDIO_NAME}" />
</a>
</h1>

Expand Down
Binary file modified edx-platform/nau-basic/conf/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions edx-platform/nau-basic/conf/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2024-05-21 15:33+0100\n"
"POT-Creation-Date: 2024-06-26 17:55+0100\n"
"PO-Revision-Date: 2021-06-02 21:22+0000\n"
"Last-Translator: NAU <[email protected]>\n"
"Language: en\n"
Expand Down Expand Up @@ -926,8 +926,8 @@ msgid ""
"trademarks or trademarks of {link_start}edX Inc.{link_end}"
msgstr ""

#: edx-platform/nau-basic/cms/templates/widgets/footer.html:91
#: edx-platform/nau-basic/lms/templates/footer.html:90
#: edx-platform/nau-basic/cms/templates/widgets/footer.html:94
#: edx-platform/nau-basic/lms/templates/footer.html:95
msgid "All rights reserved"
msgstr ""

Expand Down
Binary file modified edx-platform/nau-basic/conf/locale/en/LC_MESSAGES/djangojs.mo
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2024-05-21 15:33+0100\n"
"POT-Creation-Date: 2024-06-26 17:55+0100\n"
"PO-Revision-Date: 2021-06-02 21:22+0000\n"
"Last-Translator: NAU <[email protected]>\n"
"Language: en\n"
Expand Down
Binary file modified edx-platform/nau-basic/conf/locale/pt_PT/LC_MESSAGES/django.mo
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2024-05-21 15:33+0100\n"
"POT-Creation-Date: 2024-06-26 17:55+0100\n"
"PO-Revision-Date: 2021-03-12 12:49+0000\n"
"Last-Translator: NAU <[email protected]>\n"
"Language: pt_PT\n"
Expand Down Expand Up @@ -1052,8 +1052,8 @@ msgid ""
"trademarks or trademarks of {link_start}edX Inc.{link_end}"
msgstr ""

#: edx-platform/nau-basic/cms/templates/widgets/footer.html:91
#: edx-platform/nau-basic/lms/templates/footer.html:90
#: edx-platform/nau-basic/cms/templates/widgets/footer.html:94
#: edx-platform/nau-basic/lms/templates/footer.html:95
msgid "All rights reserved"
msgstr "Todos os direitos reservados"

Expand Down
Binary file modified edx-platform/nau-basic/conf/locale/pt_PT/LC_MESSAGES/djangojs.mo
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2024-05-21 15:33+0100\n"
"POT-Creation-Date: 2024-06-26 17:55+0100\n"
"PO-Revision-Date: 2021-06-02 21:22+0000\n"
"Last-Translator: NAU <[email protected]>\n"
"Language: pt_PT\n"
Expand Down
Loading
Loading