Skip to content

Commit 5d75101

Browse files
committed
Refactor SCSS and Pug templates for improved consistency: Simplify hero and menu sections by removing redundant classes and utilizing Bootstrap utilities. Update styles for better maintainability and enhance visual coherence across components.
1 parent f988b76 commit 5d75101

4 files changed

Lines changed: 15 additions & 22 deletions

File tree

src/scss/_hero.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
.hero-section {
2-
// Spacing, font-size, font-weight now handled by utilities in Pug
3-
.hero-subtitle {
4-
letter-spacing: 0.04em; // Custom, no Bootstrap utility
5-
}
1+
.hero-subtitle {
2+
letter-spacing: 0.04em; // Custom, no Bootstrap utility
3+
}
64

7-
.hero-location {
8-
color: $cream-dark; // Custom color
9-
}
5+
.hero-location {
6+
color: $cream-dark; // Custom color
107
}

src/scss/_menu.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
border-bottom: $border-width dotted $border-color;
2323
padding-top: $spacer * 0.3;
2424
}
25-
26-
// __description margin-top handled by .mt-n1 utility in template
2725
}
2826

2927
// Multi-column layout for Speisekarte categories
@@ -79,7 +77,5 @@
7977
// margin-bottom handled by .mb-2 utility in template
8078
}
8179

82-
&__description {
83-
font-size: $font-size-sm;
84-
}
80+
// __description font-size handled by .small utility in template
8581
}

src/views/partials/hero.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
section#hero.hero-section.text-center.py-5
1+
section#hero.text-center.py-5
22
.container
33
p.hero-subtitle.fw-semibold.fs-3.mt-4= site.hero_subtitle || 'Dein Imbisstaurant für krossen Geschmack'
44
p.hero-location.fs-5.mb-4= contact.location

src/views/partials/speisekarte.pug

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ div
1212
h3.werkmenu-card__number.text-uppercase.mb-1.text-primary Menü #{wm.number}
1313
h4.werkmenu-card__name.text-shine.fw-bold.mb-2!= formatName(wm.name)
1414
if wm.description
15-
p.werkmenu-card__description.text-info.mb-2!= formatName(wm.description)
15+
p.text-info.small.mb-2!= formatName(wm.description)
1616
if wm.variants
1717
each variant in wm.variants
1818
.menu-item.d-flex.justify-content-between.align-items-center.py-1.gap-2
1919
span.menu-item__name!= formatName(variant.name)
2020
span.menu-item__dots
21-
span.menu-item__price.text-info.flex-shrink-0= formatPrice(variant.price) + ''
21+
span.text-info.flex-shrink-0= formatPrice(variant.price) + ''
2222
else if wm.price
2323
.menu-item.d-flex.justify-content-end.py-1
24-
span.menu-item__price.text-info.fw-bold.fs-5= formatPrice(wm.price) + ''
24+
span.text-info.fw-bold.fs-5= formatPrice(wm.price) + ''
2525
if werkmenus.kids_menu
2626
.werkmenu-card.mb-4
2727
h3.werkmenu-card__number.text-uppercase.mb-1.text-primary Kids Menü
2828
h4.werkmenu-card__name.text-shine.fw-bold.mb-2!= formatName(werkmenus.kids_menu.name)
2929
if werkmenus.kids_menu.description
30-
p.werkmenu-card__description.text-info.mb-2!= formatName(werkmenus.kids_menu.description)
30+
p.text-info.small.mb-2!= formatName(werkmenus.kids_menu.description)
3131
.menu-item.d-flex.justify-content-end.py-1
32-
span.menu-item__price.text-info.fw-bold.fs-5= formatPrice(werkmenus.kids_menu.price) + ''
32+
span.text-info.fw-bold.fs-5= formatPrice(werkmenus.kids_menu.price) + ''
3333
if werkmenus.note
3434
p.text-center.mt-4.fst-italic.text-muted.small!= formatName(werkmenus.note)
3535

@@ -48,10 +48,10 @@ div
4848
.menu-item.d-flex.justify-content-between.align-items-center.py-1.gap-2
4949
span.menu-item__name.fw-semibold.text-break!= formatName(item.name)
5050
span.menu-item__dots
51-
span.menu-item__price.text-info.flex-shrink-0= formatPrice(item.price)
51+
span.text-info.flex-shrink-0= formatPrice(item.price)
5252
if item.description
53-
p.menu-item__description.fs-6.text-info.mt-n1.pb-1.text-break!= formatName(item.description)
53+
p.fs-6.text-info.mt-n1.pb-1.text-break!= formatName(item.description)
5454
if item.info
55-
p.menu-item__description.fs-6.text-info.mt-n1.pb-1.text-break!= formatName(item.info)
55+
p.fs-6.text-info.mt-n1.pb-1.text-break!= formatName(item.info)
5656
if menu.note
5757
p.text-center.mt-4.fst-italic.text-muted.small!= formatName(menu.note)

0 commit comments

Comments
 (0)