Skip to content

Commit ffda0aa

Browse files
committed
Update contact information and styles: change location in contact.yml, refactor SCSS for contact, footer, hero, and menu components to utilize Bootstrap utilities, and enhance layout consistency across various templates. Add a fixed call button for improved accessibility.
1 parent 76b281f commit ffda0aa

16 files changed

Lines changed: 277 additions & 225 deletions

src/content/contact.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ label_directions: "Anfahrt"
1010

1111
phone: "04741 9818661"
1212
address: "Feuerweg 1, 27639 Wurster Nordseeküste"
13-
location: "Wurster Nordseeküste"
13+
location: "Cuxhaven Nordseeküste"
1414
hours: "11 - 20 Uhr"
1515
order_hint: "Jetzt bestellen & kross abholen!"
1616

src/scss/_contact.scss

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,20 @@
11
// Contact block styles (used on Kontakt page from Pug and in dfw-contact-map)
22
.contact-label {
3-
font-family: 'Palanquin Dark', sans-serif;
4-
font-weight: 700;
5-
color: #c4913b;
6-
font-size: 1.1rem;
7-
text-transform: uppercase;
8-
letter-spacing: 0.04em;
9-
margin-bottom: 0.25rem;
10-
}
11-
12-
.contact-value {
13-
color: #e8d5b5;
14-
font-size: 1.05rem;
15-
margin-bottom: 0;
3+
// font-size, text-transform, margin-bottom now handled by utilities
4+
// Bootstrap already applies $headings-font-family, $headings-font-weight, $headings-color
5+
letter-spacing: 0.04em; // Custom, no Bootstrap utility
166
}
177

188
.contact-link {
19-
color: #d4a84b;
20-
text-decoration: none;
21-
transition: color 0.2s ease;
22-
23-
&:hover {
24-
color: #c4913b;
25-
text-decoration: underline;
26-
}
9+
// Bootstrap already applies $link-color, $link-hover-color, $link-decoration, $link-hover-decoration
10+
transition: color 0.2s ease; // Custom transition
2711
}
2812

2913
.contact-map {
3014
width: 100%;
3115
height: 350px;
32-
border: 2px solid #a07030;
33-
border-radius: 0.25rem;
16+
border: $navbar-border-width solid $navbar-border-color;
17+
border-radius: $border-radius;
3418

3519
@media (min-width: 768px) {
3620
height: 420px;

src/scss/_footer.scss

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,35 @@
1+
$footer-font-size: 0.826;
2+
13
.site-footer {
2-
border-top: 2px solid #a07030;
3-
background-color: rgba(26, 15, 10, 0.8);
4+
// border-top, border-width, and border-color now handled by utilities in Pug
5+
background-color: $footer-bg;
46

7+
// Colors only - spacing, font-size, font-weight now handled by utilities
58
.footer-order {
6-
color: #c4a882;
7-
font-size: 0.95rem;
8-
margin-bottom: 0.5rem;
9+
color: $footer-order-color;
10+
font-size: $font-size-base * $footer-font-size; // Custom size, not in Bootstrap scale
911
}
1012

1113
.footer-link {
12-
color: #e8c882;
13-
text-decoration: none;
14-
font-weight: 600;
15-
}
16-
17-
.footer-link:hover {
18-
text-decoration: underline;
14+
color: $footer-link-color;
15+
font-size: $font-size-base * $footer-font-size;
1916
}
2017

2118
.footer-hours,
2219
.footer-address,
2320
.footer-impressum,
2421
.footer-source-code {
25-
color: #806040;
26-
font-size: 0.85rem;
27-
margin-bottom: 0.25rem;
22+
color: $footer-text-color;
23+
font-size: $font-size-base * $footer-font-size;
2824
}
2925

3026
.footer-label {
31-
color: #a07030;
32-
font-weight: 600;
27+
color: $footer-label-color;
28+
font-size: $font-size-base * $footer-font-size;
3329
}
3430

3531
.footer-copyright {
36-
color: #806040;
37-
font-size: 0.8rem;
38-
margin-top: 0.75rem;
39-
margin-bottom: 0;
32+
color: $footer-copyright-color;
33+
font-size: $font-size-base * $footer-font-size;
4034
}
4135
}

src/scss/_hero.scss

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,31 @@
11
.hero-section {
2-
padding: 4rem 0 3rem;
3-
2+
// Spacing, font-size, font-weight now handled by utilities in Pug
43
.hero-subtitle {
5-
font-family: 'Palanquin Dark', sans-serif;
6-
font-weight: 600;
7-
font-size: 1.5rem;
8-
color: #e8d5b5;
9-
margin-top: 1.5rem;
10-
letter-spacing: 0.04em;
4+
letter-spacing: 0.04em; // Custom, no Bootstrap utility
115
}
126

137
.hero-location {
14-
font-family: 'Palanquin', sans-serif;
15-
color: #c4a882;
16-
font-size: 1.1rem;
17-
margin-bottom: 1.5rem;
8+
color: $cream-dark; // Custom color
189
}
1910

2011
.btn-order {
21-
display: inline-block;
22-
background-color: #c4913b;
23-
color: #1a0f0a;
24-
font-family: 'Palanquin Dark', sans-serif;
25-
font-weight: 700;
26-
font-size: 1.1rem;
12+
// Most styles handled by Bootstrap btn-primary, but we need custom hover transform
13+
background-color: $btn-primary-bg;
14+
color: $btn-primary-color;
15+
font-family: $btn-font-family;
16+
font-weight: $btn-font-weight;
17+
font-size: $btn-font-size;
2718
text-transform: uppercase;
2819
letter-spacing: 0.06em;
29-
padding: 0.75rem 2rem;
30-
border: 2px solid #a07030;
31-
border-radius: 0.25rem;
20+
padding: $btn-padding-y $btn-padding-x;
21+
border: $btn-border-width solid $btn-primary-border-color;
22+
border-radius: $btn-border-radius;
3223
text-decoration: none;
3324
transition: background-color 0.2s ease, transform 0.1s ease;
3425

3526
&:hover {
36-
background-color: #d4a84b;
37-
transform: translateY(-1px);
27+
background-color: $btn-primary-hover-bg;
28+
transform: translateY(-1px); // Custom transform
3829
}
3930

4031
&:active {

src/scss/_menu.scss

Lines changed: 16 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,40 @@
11
// Speisekarte specific styles
22
.menu-category {
3-
margin-bottom: 2rem;
3+
// margin-bottom now handled by mb-5 utility
44
break-inside: avoid;
55
page-break-inside: avoid;
66

77
&__title {
8-
font-family: $headings-font-family;
9-
font-weight: 700;
10-
color: $gold;
11-
text-transform: uppercase;
12-
font-size: 1.6rem;
13-
letter-spacing: 0.05em;
14-
margin-bottom: 1rem;
15-
border-bottom: 2px solid $gold-dark;
16-
padding-bottom: 0.5rem;
8+
// Spacing, text-transform, border-bottom now handled by utilities
9+
// Bootstrap already applies $headings-font-family, $headings-font-weight, $headings-color
10+
font-size: $h2-font-size * 0.8; // Custom scaled size
11+
letter-spacing: 0.05em; // Custom, no Bootstrap utility
1712
}
1813
}
1914

2015
.menu-item {
21-
display: flex;
22-
justify-content: space-between;
23-
align-items: center;
24-
padding: 0.3rem 0;
25-
gap: 0.5rem;
26-
16+
// display, justify-content, align-items, padding, gap now handled by utilities
2717
&__name {
28-
font-family: $headings-font-family;
29-
font-weight: 600;
30-
color: $cream;
31-
font-size: 1.05rem;
32-
min-width: 0;
33-
overflow-wrap: break-word;
34-
word-break: break-word;
18+
// font-weight, text-break now handled by utilities
19+
// Bootstrap already applies $font-size-base and $body-color via body
20+
font-family: $headings-font-family; // Custom font family
21+
min-width: 0; // Needed for text-break to work
3522
}
3623

3724
&__dots {
3825
flex: 1;
39-
min-width: 1rem;
40-
margin: auto 0.25rem;
41-
border-bottom: 1px dotted $gold-dark;
42-
padding-top: 0.3rem;
43-
}
44-
45-
&__price {
46-
font-family: $headings-font-family;
47-
font-weight: 700;
48-
color: $gold-light;
49-
font-size: 1.05rem;
50-
flex-shrink: 0;
26+
min-width: $spacer;
27+
margin: auto $spacer * 0.25;
28+
border-bottom: $border-width dotted $border-color;
29+
padding-top: $spacer * 0.3;
5130
}
5231

5332
&__description {
54-
font-size: 0.85rem;
55-
color: $cream-dark;
56-
margin-top: -0.2rem;
57-
padding-bottom: 0.2rem;
58-
overflow-wrap: break-word;
59-
word-break: break-word;
33+
// font-size, color, padding-bottom, text-break now handled by utilities
34+
margin-top: -$spacer * 0.2; // Negative margin, no Bootstrap utility
6035
}
6136
}
6237

63-
.menu-section {
64-
padding: 2rem 0;
65-
}
66-
6738
// Multi-column layout: categories flow into columns, no row alignment.
6839
// Shorter blocks don't leave gaps; columns fill independently like a masonry flow.
6940
.menu-grid {

src/scss/_navbar.scss

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,43 @@
22
// Applied to .app-content so both layout partial and component get the same look.
33
.app-content {
44
.navbar {
5-
background-color: rgba(26, 15, 10, 0.72) !important;
5+
background-color: $navbar-dark-bg !important;
66
backdrop-filter: blur(10px);
7-
border-bottom: 2px solid #a07030;
8-
padding: 0.6rem 0;
9-
z-index: 1030;
7+
border-bottom: $navbar-border-width solid $navbar-border-color;
8+
padding: $navbar-padding-y $navbar-padding-x;
9+
// Bootstrap already applies $zindex-fixed via .fixed-top class
1010
}
1111

1212
.navbar .brand-text {
13-
font-family: 'Palanquin Dark', sans-serif;
14-
font-weight: 700;
15-
color: #c4913b;
16-
font-size: 1.25rem;
13+
font-family: $navbar-brand-font-family;
14+
font-weight: $navbar-brand-font-weight;
15+
color: $navbar-dark-hover-color;
16+
font-size: $navbar-brand-font-size;
1717
letter-spacing: 0.05em;
1818
text-transform: uppercase;
1919
}
2020

2121
.navbar .nav-link {
22-
font-family: 'Palanquin Dark', sans-serif;
23-
font-weight: 600;
24-
color: #e8d5b5 !important;
22+
font-family: $navbar-nav-link-font-family;
23+
font-weight: $navbar-nav-link-font-weight;
24+
color: $navbar-dark-color !important;
2525
text-transform: uppercase;
2626
letter-spacing: 0.04em;
27-
font-size: 0.9rem;
28-
padding: 0.5rem 1rem !important;
27+
font-size: $navbar-nav-link-font-size;
28+
padding: $navbar-nav-link-padding-y $navbar-nav-link-padding-x !important;
2929
transition: color 0.2s ease;
3030

3131
&:hover,
3232
&:focus {
33-
color: #c4913b !important;
33+
color: $navbar-dark-hover-color !important;
3434
}
3535
}
3636

3737
.navbar .navbar-toggler {
38-
border-color: transparent;
38+
border-color: $navbar-dark-toggler-border-color;
3939

4040
&:focus {
41-
box-shadow: 0 0 0 0.2rem rgba(196, 145, 59, 0.3);
41+
box-shadow: $navbar-toggler-focus-box-shadow;
4242
}
4343
}
4444

@@ -49,9 +49,9 @@
4949
@media (max-width: 767.98px) {
5050
.navbar .navbar-collapse {
5151
display: none;
52-
border-top: 1px solid #a07030;
53-
margin-top: 0.5rem;
54-
padding-top: 0.5rem;
52+
border-top: $border-width solid $navbar-border-color;
53+
margin-top: $spacer * 0.5;
54+
padding-top: $spacer * 0.5;
5555

5656
&.show {
5757
display: block;

src/scss/_page-content.scss

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,29 @@
22
.page-content {
33
max-width: 800px;
44
margin: 0 auto;
5-
font-size: 1.05rem;
6-
line-height: 1.7;
7-
color: #e8d5b5;
5+
// Bootstrap already applies $font-size-base, $line-height-base, and $body-color via body
6+
line-height: $line-height-lg;
87

98
h3 {
10-
color: #c4913b;
11-
font-family: 'Palanquin Dark', sans-serif;
12-
margin-top: 1.5rem;
9+
// Bootstrap already applies $headings-color and $headings-font-family
10+
margin-top: $spacer * 1.5;
1311
}
1412

1513
p {
16-
margin-bottom: 1rem;
14+
margin-bottom: $spacer;
1715
}
1816

19-
a {
20-
color: #d4a84b;
21-
22-
&:hover {
23-
color: #c4913b;
24-
}
25-
}
17+
// Bootstrap already applies $link-color and $link-hover-color to links
2618

2719
ul, ol {
28-
padding-left: 1.5rem;
20+
padding-left: $spacer * 1.5;
2921

3022
li {
31-
margin-bottom: 0.25rem;
23+
margin-bottom: $spacer * 0.25;
3224
}
3325
}
3426

3527
strong {
36-
color: #d4a84b;
28+
color: $info;
3729
}
3830
}

0 commit comments

Comments
 (0)