Browse Source

Remove footer as it was empty and not consistent

Arkadiusz Ryś 1 year ago
parent
commit
adf70b7670
2 changed files with 16 additions and 15 deletions
  1. 4 3
      src/main/resources/static/style.css
  2. 12 12
      src/main/resources/templates/base.html

+ 4 - 3
src/main/resources/static/style.css

@@ -44,8 +44,10 @@ body {
   height: 100dvh;
   display: grid;
   grid-template-columns: 1fr;
-  grid-template-rows: minmax(50px, 1fr) 25fr minmax(50px, 1fr);
-  grid-template-areas: "header" "main" "footer";
+  /*grid-template-rows: minmax(50px, 1fr) 25fr minmax(50px, 1fr);*/
+  grid-template-rows: minmax(50px, 1fr) 25fr;
+  /*grid-template-areas: "header" "main" "footer";*/
+  grid-template-areas: "header" "main";
   color: var(--color-content-text);
 }
 
@@ -91,7 +93,6 @@ footer {
 
 footer section {
   justify-self: center;
-  max-width: var(--mw);
   width: 100%;
   background-color: var(--color-content-background);
 }

+ 12 - 12
src/main/resources/templates/base.html

@@ -52,18 +52,18 @@
   </nav>
 </header>
 <main th:replace="${main}"></main>
-<footer>
-  <section>
-    <nav class="breadcrumb pl-5 pr-5" aria-label="breadcrumbs">
-      <ul>
-        <li th:each="entry : ${breadcrumbs}" th:classappend="${entry.isCurrent} ? 'is-active' : ''">
-          <a th:href="${entry.href}" th:unless="${entry.isCurrent}" th:text="${entry.label}"></a>
-          <span th:if="${entry.isCurrent}" th:text="${entry.label}"></span>
-        </li>
-      </ul>
-    </nav>
-  </section>
-</footer>
+<!--<footer>-->
+<!--  <section>-->
+<!--    <nav class="breadcrumb pl-5 pr-5" aria-label="breadcrumbs">-->
+<!--      <ul>-->
+<!--        <li th:each="entry : ${breadcrumbs}" th:classappend="${entry.isCurrent} ? 'is-active' : ''">-->
+<!--          <a th:href="${entry.href}" th:unless="${entry.isCurrent}" th:text="${entry.label}"></a>-->
+<!--          <span th:if="${entry.isCurrent}" th:text="${entry.label}"></span>-->
+<!--        </li>-->
+<!--      </ul>-->
+<!--    </nav>-->
+<!--  </section>-->
+<!--</footer>-->
 <script src="../static/main.js" th:src="@{/main.js}"></script>
 </body>
 </html>