Skip to content

Commit

Permalink
fix: logos
Browse files Browse the repository at this point in the history
  • Loading branch information
majkshkurti committed Apr 8, 2024
1 parent 42e7541 commit 604348a
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 6 deletions.
33 changes: 29 additions & 4 deletions app/component/MainMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ function MainMenu(props, { config, intl, executeAction }) {
)}
/>
</section>
{config.menu?.copyright && (
<div className="copyright">{config.menu.copyright.label}</div>
)}
{config.menu?.footer && (
<div>
<div className="text-light">{config.menu?.footer.body}</div>
Expand All @@ -122,10 +119,38 @@ function MainMenu(props, { config, intl, executeAction }) {
{config.menu?.sponsorImages && (
<div className="sponsor-images">
{config.menu.sponsorImages.map(sponsor => (
<img key={sponsor.url} src={sponsor.url} alt={sponsor.alt} />
<img
key={sponsor.url}
src={sponsor.url}
alt={sponsor.alt}
width={sponsor.width || undefined}
height={sponsor.height || undefined}
/>
))}
</div>
)}
<div className="sponsor-images-text">
{intl.formatMessage({
id: 'maintained-by',
defaultMessage: 'Maintained by',
})}
</div>
{config.menu?.maintainedBy && (
<div className="sponsor-images">
{config.menu.maintainedBy.map(sponsor => (
<img
key={sponsor.url}
src={sponsor.url}
alt={sponsor.alt}
width={sponsor.width || undefined}
height={sponsor.height || undefined}
/>
))}
</div>
)}
{config.menu?.copyright && (
<div className="copyright">{config.menu.copyright.label}</div>
)}
</div>
);
}
Expand Down
10 changes: 9 additions & 1 deletion app/configurations/config.klnavi.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,19 @@ export default configMerger(walttiConfig, {
url: '/img/DkV_Logo_Final.png',
alt: 'DKV Logo',
},

],
maintainedBy: [
{
url: '/img/kaiserslautern_logo_red.png',
alt: 'Kaiserslautern Stadt'
},
],
{
url: '/img/Logo-Herzlich-Digital-770x770.png',
alt: 'Herzlich Digital',
height: "130px"
}
]
},

aboutThisService: {
Expand Down
6 changes: 6 additions & 0 deletions app/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ const translations = {
continue: 'Fortsetzen',
'create-account': '{contactName}-Konto anlegen',
'create-embedded-search': 'Verbindungssuche-Widget erstellen',
"maintained-by": 'Betreut durch',
"funded-by": "Gefördert durch",
currentposition: 'Aktuelle Position',
'cycle-distance-duration': 'Radfahren: {duration} ({distance})',
'cyclewalk-distance-duration': 'Fahrrad schieben: {duration} ({distance})',
Expand Down Expand Up @@ -1503,6 +1505,8 @@ const translations = {
covered: 'Sheltered',
'create-account': 'Create {contactName} account',
'create-embedded-search': 'Create a route search element',
"maintained-by": "Maintained by",
"funded-by": "Funded by",
'create-stop-monitor': 'Create a stop display',
'cycle-distance-duration': 'Cycle {duration} ({distance})',
'cyclewalk-distance-duration': 'Walk your bike {duration} ({distance})',
Expand Down Expand Up @@ -5327,6 +5331,8 @@ const translations = {
"map-layer-category-car": "Samochód",
"map-layer-category-others": "Inne",
"about-this-service": "O usłudze",
"maintained-by": "Nadzorowany przez",
"funded-by": "Ufundowane przez",
"car-park-capacity-alert": "Parking ten jest zbliżony do pojemności. Proszę dać dodatkowy czas na podróż",
"exclude-full-carparks": "Wyklucz pełne parkingi",
"accept-carpool-policy": "Przeczytałem i zgadzam się z <a href=\"{policyUrl}\" target=\"_blank\" style=\"color: #92bc05\">polityką prywatności</a> i <a href=\"{termsUrl}\" target=\"_blank\" style=\"color: #92bc05\">warunkami użytkowania</a> Fahrgemeinschaft.de.",
Expand Down
8 changes: 7 additions & 1 deletion sass/themes/klnavi/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,16 @@ $bike-color: #005ab4;
}

.sponsor-images {
padding-top: 2em;
padding-top: 0em;
padding-bottom: 2em;
}

.sponsor-images-text {
font-weight: normal;
cursor: default !important;
color: black;
}

.sponsor-images img {
max-width: 50%;
height: auto;
Expand Down
Binary file added static/img/Logo-Herzlich-Digital-770x770.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/herzlich_digital_logo_blau.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 604348a

Please sign in to comment.