Przywróć logo firm na stronie głównej (katalog)
Naprawione błędy wprowadzone podczas synchronizacji: - Przywrócono sekcję company-logo z obrazkiem w karcie firmy - Przywrócono style CSS dla logo (100% szerokość, 80px wysokość) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ee495ce83e
commit
174316a530
@ -83,6 +83,24 @@
|
|||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.company-logo {
|
||||||
|
width: 100%;
|
||||||
|
height: 80px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: var(--spacing-md);
|
||||||
|
background: var(--background);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.company-logo img {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
.company-header {
|
.company-header {
|
||||||
margin-bottom: var(--spacing-md);
|
margin-bottom: var(--spacing-md);
|
||||||
}
|
}
|
||||||
@ -226,6 +244,11 @@
|
|||||||
<div class="companies-grid" id="companiesGrid">
|
<div class="companies-grid" id="companiesGrid">
|
||||||
{% for company in companies %}
|
{% for company in companies %}
|
||||||
<div class="company-card" data-category="{{ company.category.slug if company.category else 'brak' }}">
|
<div class="company-card" data-category="{{ company.category.slug if company.category else 'brak' }}">
|
||||||
|
<a href="{{ url_for('company_detail', company_id=company.id) }}" class="company-logo">
|
||||||
|
<img src="{{ url_for('static', filename='img/companies/' ~ company.slug ~ '.webp') }}"
|
||||||
|
alt="{{ company.name }}"
|
||||||
|
onerror="if(!this.dataset.triedSvg){this.dataset.triedSvg='1';this.src=this.src.replace('.webp','.svg')}else{this.parentElement.style.display='none'}">
|
||||||
|
</a>
|
||||||
<div class="company-header">
|
<div class="company-header">
|
||||||
{% if company.category %}
|
{% if company.category %}
|
||||||
<span class="company-category">{{ company.category.name }}</span>
|
<span class="company-category">{{ company.category.name }}</span>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user