Browse code

Add benefits bar, style front page

Martin Filipovic Hinrichs authored on27/01/2026 15:16:58
Showing10 changed files
... ...
@@ -1,23 +1,49 @@
1
-// Header
2
-
3
-.header-search-input, .header-search-btn {
4
-  border: 0;
5
-}
1
+#benefits-bar {
2
+  position: sticky;
3
+  top: 0;
4
+  z-index: 100;
5
+  background-color: $dark;
6
+  color: white;
7
+  padding: 10px 0;
6 8
 
7
-#header-main-search-input::placeholder {
8
-  color: var(--bs-body-color);
9
+  ul.container {
10
+    display: flex;
11
+    justify-content: space-between;
12
+    list-style-type: none;
13
+    margin-bottom: 0;
14
+    li {
15
+      font-size: 12px;
16
+      text-transform: uppercase;
17
+      display: flex;
18
+      align-items: center;
19
+      img {
20
+        margin-right: 1rem;
21
+      }
22
+    }
23
+  }
9 24
 }
10 25
 
26
+// Header
11 27
 header.header-main {
12 28
   padding: 2rem .25rem 0;
13 29
 }
14 30
 
15 31
 .header-search {
16
-      .header-search-btn i[class*="fa-"] {
17
-        font-size: 1.6rem;
18
-      }
32
+  .header-search-btn i[class*="fa-"] {
33
+    font-size: 1.6rem;
34
+  }
35
+
36
+  .header-search-input, .header-search-btn {
37
+    border: 0;
38
+  }
39
+
40
+  #header-main-search-input::placeholder {
41
+    color: var(--bs-body-color);
42
+  }
19 43
 }
20 44
 
45
+
46
+
21 47
 //
22 48
 //header.header-minimal {
23 49
 //  .header-minimal-contact {
... ...
@@ -1,88 +1,89 @@
1
+body.is-act-index {
2
+  .cms-block.pos-0.cms-block-image-text {
3
+    &:not(:has(.h1, p, img)) {
4
+      display: none;
5
+    }
1 6
 
2
-.cms-block.pos-0.cms-block-image-text {
3
-  &:not(:has(.h1, p, img)){
4
-    display: none;
5
-  }
6
-
7
-  .cms-block-container {
8
-    background-color: $primary;
9
-    color: $body-color-inverse;
10
-    position: relative;
11
-    @extend %include-adler;
7
+    .cms-block-container {
8
+      background-color: $primary;
9
+      color: $body-color-inverse;
10
+      position: relative;
11
+      @extend %include-adler;
12 12
 
13
-    @include media-breakpoint-down(md) {
14
-      margin-inline: calc(-1 * (var(--bs-gutter-x) * .5));
13
+      @include media-breakpoint-down(md) {
14
+        margin-inline: calc(-1 * (var(--bs-gutter-x) * .5));
15 15
 
16
-      &:after {
17
-        transform: translate(-50%, 25%) !important;
16
+        &:after {
17
+          transform: translate(-50%, 25%) !important;
18
+        }
18 19
       }
19
-    }
20 20
 
21 21
 
22
-    .cms-block-container-row.row.cms-row {
23
-      @include media-breakpoint-up(md) {
24
-        --bs-gutter-x: 0;
25
-        flex-flow: row-reverse;
26
-      }
22
+      .cms-block-container-row.row.cms-row {
23
+        @include media-breakpoint-up(md) {
24
+          --bs-gutter-x: 0;
25
+          flex-flow: row-reverse;
26
+        }
27 27
 
28
-      > div:first-child {
29
-        margin-bottom: 0;
30
-        min-height: 100%;
28
+        > div:first-child {
29
+          margin-bottom: 0;
30
+          min-height: 100%;
31 31
 
32
-        & + div {
33
-          align-self: center;
32
+          & + div {
33
+            align-self: center;
34
+          }
34 35
         }
35
-      }
36
-
37 36
 
38
-      h1 {
39
-        color: $body-color-inverse;
40
-        border-bottom: 1px solid $body-color-inverse;
41
-        display: inline-block;
42
-        padding-bottom: .75rem;
43
-        padding-right: 1rem;
44
-        margin-bottom: 1.25rem;
45
-        text-transform: none;
46
-        @include font-size(50px);
47
-      }
48 37
 
49
-      .cms-element-image {
50
-        position: relative;
38
+        h1 {
39
+          color: $body-color-inverse;
40
+          border-bottom: 1px solid $body-color-inverse;
41
+          display: inline-block;
42
+          padding-bottom: .75rem;
43
+          padding-right: 1rem;
44
+          margin-bottom: 1.25rem;
45
+          text-transform: none;
46
+          @include font-size(50px);
47
+        }
51 48
 
49
+        .cms-element-image {
50
+          position: relative;
52 51
 
53
-        &:after {
54
-          content: '';
55
-          position: absolute;
56
-          height: 75px;
57
-          bottom: 0;
58
-          width: 100%;
59
-          background: rgb(161, 129, 82);
60
-          background: linear-gradient(-180deg, rgba(0, 0, 0, 0) 0%, rgba(161, 129, 82, 1) 100%);
61 52
 
62
-          @include media-breakpoint-up(md) {
63
-            left: 0;
64
-            top: 0;
65
-            height: 100%;
66
-            width: 75px;
67
-            bottom: auto;
68
-            background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(161, 129, 82, 1) 100%);
53
+          &:after {
54
+            content: '';
55
+            position: absolute;
56
+            height: 75px;
57
+            bottom: 0;
58
+            width: 100%;
59
+            background: rgb(161, 129, 82);
60
+            background: linear-gradient(-180deg, rgba(0, 0, 0, 0) 0%, rgba(161, 129, 82, 1) 100%);
61
+
62
+            @include media-breakpoint-up(md) {
63
+              left: 0;
64
+              top: 0;
65
+              height: 100%;
66
+              width: 75px;
67
+              bottom: auto;
68
+              background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(161, 129, 82, 1) 100%);
69
+            }
69 70
           }
70
-        }
71 71
 
72
-        img {
73
-          position: relative;
72
+          img {
73
+            position: relative;
74 74
 
75 75
 
76
+          }
76 77
         }
77
-      }
78 78
 
79
-      .cms-element-text {
80
-        padding: 1.5rem;
81
-        @include media-breakpoint-up(md) {
82
-          padding: 3rem;
79
+        .cms-element-text {
80
+          padding: 1.5rem;
81
+          @include media-breakpoint-up(md) {
82
+            padding: 3rem;
83
+          }
83 84
         }
84
-      }
85 85
 
86
+      }
86 87
     }
87 88
   }
88 89
 }
89 90
\ No newline at end of file
90 91
new file mode 100644
91 92
Binary files /dev/null and b/src/Resources/public/img/erzeuger.png differ
92 93
new file mode 100644
93 94
Binary files /dev/null and b/src/Resources/public/img/sicher.png differ
94 95
new file mode 100644
95 96
Binary files /dev/null and b/src/Resources/public/img/vegan.png differ
96 97
new file mode 100644
97 98
Binary files /dev/null and b/src/Resources/public/img/zufriedenheit.png differ
... ...
@@ -1,5 +1,16 @@
1 1
 {% sw_extends '@Storefront/storefront/layout/header.html.twig' %}
2 2
 {% use '@Storefront/storefront/layout/header/header.html.twig' %}
3
+{% block base_header %}
4
+    {% sw_include '@Storefront/storefront/utilities/staging-info.html.twig' %}
5
+
6
+    {% sw_include '@WeinmanufakturTheme/storefront/layout/header/benefits-bar.html.twig' %}
7
+    <header class="header-main">
8
+        {% block base_header_inner %}
9
+            {{ parent() }}
10
+        {% endblock %}
11
+    </header>
12
+{% endblock %}
13
+
3 14
 
4 15
 {% block base_navigation_inner %}
5 16
     <div class="container">
6 17
new file mode 100644
... ...
@@ -0,0 +1,8 @@
1
+<div id="benefits-bar">
2
+    <ul class="container">
3
+        <li><img src="{{  asset('/bundles/weinmanufakturtheme/img/zufriedenheit.png', 'asset')}}" width="32" height="32">Zufriedenheits-Garantie</li>
4
+        <li><img src="{{  asset('/bundles/weinmanufakturtheme/img/erzeuger.png', 'asset')}}" width="32" height="32">Alle Weine direkt vom Erzeuger</li>
5
+        <li><img src="{{  asset('/bundles/weinmanufakturtheme/img/sicher.png', 'asset')}}" width="32" height="32">Sichere Bezahlung, schnelle Lieferung</li>
6
+        <li><img src="{{  asset('/bundles/weinmanufakturtheme/img/vegan.png', 'asset')}}" width="32" height="32">Vegane Weine</li>
7
+    </ul>
8
+</div>
... ...
@@ -1,5 +1,7 @@
1 1
 {% sw_extends '@Storefront/storefront/layout/navbar/navbar.html.twig' %}
2 2
 
3
+{% block layout_navbar_menu_home %}{% endblock %}
4
+
3 5
 {% block layout_navbar %}
4 6
     {% set navbarOptions = {
5 7
         pathIdList: shopware.navigation.pathIdList
... ...
@@ -9,3 +11,4 @@
9 11
         {{ parent() }}
10 12
     {% endblock %}
11 13
 {% endblock %}
14
+
12 15
deleted file mode 100644
... ...
@@ -1,29 +0,0 @@
1
-{% sw_extends '@Storefront/storefront/layout/navigation/navigation.html.twig' %}
2
-
3
-{% block layout_main_navigation_menu_home %}{% endblock %}
4
-
5
-
6
-{% block layout_main_navigation_menu_item %}
7
-    {% if category.type == 'folder' %}
8
-        <div class="animate-fadeIn nav-link main-navigation-link"
9
-                {% if treeItem.children|length > 0 %}
10
-                    data-flyout-menu-trigger="{{ category.id }}"
11
-                {% endif %}
12
-             title="{{ name }}">
13
-            <div class="main-navigation-link-text">
14
-                <span itemprop="name">{{ name }}</span>
15
-            </div>
16
-        </div>
17
-    {% else %}
18
-        <a class="animate-fadeIn nav-link main-navigation-link{% if category.id == page.header.navigation.active.id or category.id in activePath %} active{% endif %}"
19
-           href="{{ category_url(category) }}"
20
-           itemprop="url"
21
-           {% if treeItem.children|length > 0 %}data-flyout-menu-trigger="{{ category.id }}"{% endif %}
22
-                {% if category_linknewtab(category) %}target="_blank"{% endif %}
23
-           title="{{ name }}">
24
-            <div class="main-navigation-link-text">
25
-                <span itemprop="name">{{ name }}</span>
26
-            </div>
27
-        </a>
28
-    {% endif %}
29
-{% endblock %}
30 0
\ No newline at end of file