Skip to content

Commit f988b76

Browse files
committed
Refactor Pug templates for improved layout and consistency: Simplify structure in kontakt.pug, footer.pug, and speisekarte.pug by removing redundant classes and enhancing readability. Update contact information display and streamline menu item formatting for better visual coherence.
1 parent 972c084 commit f988b76

3 files changed

Lines changed: 33 additions & 35 deletions

File tree

src/views/pages/kontakt.pug

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,22 @@ block content
77
h2.section-title.text-shine.text-center.text-uppercase= pageTitle
88
.row.g-4
99
.col-12.col-md-5
10-
.contact-info
11-
.contact-block.mb-4
12-
h3.contact-label.text-shine.text-uppercase.mb-1= contact.order_hint
13-
p.contact-value.mb-0= contact.label_order_phone || 'Bestellungen nur per Telefon'
14-
p.contact-value.mb-0
15-
a.contact-link(href='tel:' + contact.phone.replace(/\s/g, ''))= contact.phone
16-
.contact-block.mb-4
17-
h3.contact-label.text-shine.text-uppercase.mb-1= contact.label_hours || 'Öffnungszeiten'
18-
each entry in (contact.hours || [])
19-
p.contact-value.mb-0
20-
strong= entry.label
21-
br
22-
span= entry.times
23-
.contact-block.mb-4
24-
h3.contact-label.text-shine.text-uppercase.mb-1= contact.label_directions || 'Anfahrt'
25-
p.contact-value.mb-0= contact.address
26-
button.btn.btn-primary.mt-2(
10+
.mb-4
11+
h3.contact-label.text-shine.text-uppercase.mb-1= contact.order_hint
12+
p.mb-0= contact.label_order_phone || 'Bestellungen nur per Telefon'
13+
p.mb-0
14+
a.contact-link(href='tel:' + contact.phone.replace(/\s/g, ''))= contact.phone
15+
.mb-4
16+
h3.contact-label.text-shine.text-uppercase.mb-1= contact.label_hours || 'Öffnungszeiten'
17+
each entry in (contact.hours || [])
18+
p.mb-0
19+
strong= entry.label
20+
br
21+
span= entry.times
22+
.mb-4
23+
h3.contact-label.text-shine.text-uppercase.mb-1= contact.label_directions || 'Anfahrt'
24+
p.mb-0= contact.address
25+
button.btn.btn-primary.mt-2(
2726
type='button',
2827
data-directions-trigger='true'
2928
)= contact.label_directions_button || 'Anfahrt berechnen'

src/views/partials/footer.pug

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ footer.site-footer.text-center.border-top.border-2.border-gold-dark.pt-4.pb-6.pb
33
p.footer-order.mb-2
44
strong= contact.order_hint
55
| – #{site.footer_order_text || 'Bestellungen nur per Telefon: '}
6-
a.footer-link.fw-semibold(href='tel:' + contact.phone.replace(/\s/g, ''))= contact.phone
6+
a.fw-semibold(href='tel:' + contact.phone.replace(/\s/g, ''))= contact.phone
77
p.footer-hours.fs-6.mb-1
8-
span.footer-label.fw-semibold.text-gold-dark= site.footer_hours_label || 'Öffnungszeiten: '
8+
span.fw-semibold.text-gold-dark= site.footer_hours_label || 'Öffnungszeiten: '
99
span= contact.hours_short || ''
1010
p.footer-address.fs-6.mb-1
11-
span.footer-label.fw-semibold.text-gold-dark= site.footer_address_label || 'Anfahrt: '
12-
a.footer-link(href='#', role='button', data-directions-trigger='true')= contact.address
11+
span.fw-semibold.text-gold-dark= site.footer_address_label || 'Anfahrt: '
12+
a(href='#', role='button', data-directions-trigger='true')= contact.address
1313
p.footer-impressum.fs-6.mb-1
14-
a.footer-link(href=basePath + '/impressum.html')= site.nav && site.nav.impressum ? site.nav.impressum : 'Impressum'
14+
a(href=basePath + '/impressum.html')= site.nav && site.nav.impressum ? site.nav.impressum : 'Impressum'
1515
span= ' | '
16-
a.footer-link(href=basePath + '/datenschutz.html') Datenschutz
16+
a(href=basePath + '/datenschutz.html') Datenschutz
1717
span= ' | '
18-
a.footer-link(href='https://github.com/ArtCodeStudio/das-frittierwerk')= site.nav && site.nav.source_code ? site.nav.source_code : 'Quellcode der Seite'
18+
a(href='https://github.com/ArtCodeStudio/das-frittierwerk')= site.nav && site.nav.source_code ? site.nav.source_code : 'Quellcode der Seite'
1919
p.footer-copyright.fs-6.mt-3.mb-0
2020
small © #{new Date().getFullYear()} #{site.footer_copyright || 'Das Frittierwerk – Alle Rechte vorbehalten.'}

src/views/partials/speisekarte.pug

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
div
22
//- Werkmenüs
33
section(id=slugify(werkmenus.title || 'Werkmenüs'))
4-
.menu-section.py-5
4+
.py-5
55
.container
66
h2.section-title.text-shine.text-center.text-uppercase= werkmenus.title || 'Unsere Werkmenüs'
77
if werkmenus.subtitle
@@ -37,22 +37,21 @@ div
3737

3838
//- Speisekarte
3939
section(id=slugify(menu.title || 'Speisekarte'))
40-
.menu-section.py-5
40+
.py-5
4141
.container
4242
h2.section-title.text-shine.text-center.text-uppercase= menu.title || 'Speisekarte'
4343
.menu-grid
4444
each category in (menu.categories || [])
4545
.menu-category.mb-5
4646
h3.menu-category__title.text-shine.text-uppercase.pb-2.mb-3.border-bottom= category.name
4747
each item in (category.items || [])
48-
.menu-item-wrapper
49-
.menu-item.d-flex.justify-content-between.align-items-center.py-1.gap-2
50-
span.menu-item__name.fw-semibold.text-break!= formatName(item.name)
51-
span.menu-item__dots
52-
span.menu-item__price.text-info.flex-shrink-0= formatPrice(item.price)
53-
if item.description
54-
p.menu-item__description.fs-6.text-info.mt-n1.pb-1.text-break!= formatName(item.description)
55-
if item.info
56-
p.menu-item__description.fs-6.text-info.mt-n1.pb-1.text-break!= formatName(item.info)
48+
.menu-item.d-flex.justify-content-between.align-items-center.py-1.gap-2
49+
span.menu-item__name.fw-semibold.text-break!= formatName(item.name)
50+
span.menu-item__dots
51+
span.menu-item__price.text-info.flex-shrink-0= formatPrice(item.price)
52+
if item.description
53+
p.menu-item__description.fs-6.text-info.mt-n1.pb-1.text-break!= formatName(item.description)
54+
if item.info
55+
p.menu-item__description.fs-6.text-info.mt-n1.pb-1.text-break!= formatName(item.info)
5756
if menu.note
5857
p.text-center.mt-4.fst-italic.text-muted.small!= formatName(menu.note)

0 commit comments

Comments
 (0)