summaryrefslogtreecommitdiff
path: root/resources/views/layouts
diff options
context:
space:
mode:
authorhorus2020-04-19 18:28:17 +0200
committerhorus2020-04-19 18:28:17 +0200
commitea7f3c9c9ca72ee6efa9c345506ea9c92cdf1691 (patch)
treee4f31cad2fa3bab448ebd604841e7a4e57ab8bba /resources/views/layouts
parentbf823c5063b5ad863e7e7cc313fb1406ddd14a98 (diff)
downloadcurious-ea7f3c9c9ca72ee6efa9c345506ea9c92cdf1691.tar.gz
Add footer with about page.
Diffstat (limited to 'resources/views/layouts')
-rw-r--r--resources/views/layouts/app.blade.php5
-rw-r--r--resources/views/layouts/footer-style.blade.php14
-rw-r--r--resources/views/layouts/footer.blade.php16
3 files changed, 33 insertions, 2 deletions
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index 0a3cc90..05b7d38 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -44,7 +44,7 @@
@endif
</head>
-<body>
+<body class="d-flex flex-column h-100">
<div id="app">
<nav class="navbar navbar-expand-md navbar-dark shadow-sm">
<div class="container">
@@ -112,9 +112,10 @@
</div>
</nav>
- <main class="py-4">
+ <main class="">
@yield('content')
</main>
+ @yield('footer')
</div>
</body>
</html>
diff --git a/resources/views/layouts/footer-style.blade.php b/resources/views/layouts/footer-style.blade.php
new file mode 100644
index 0000000..e1f715e
--- /dev/null
+++ b/resources/views/layouts/footer-style.blade.php
@@ -0,0 +1,14 @@
+html {
+ position: relative;
+ min-height: 100%;
+}
+body {
+ margin-bottom: 120px;
+}
+.footer {
+ position: absolute;
+ bottom: 50;
+ width: 100%;
+ height: 70px;
+}
+
diff --git a/resources/views/layouts/footer.blade.php b/resources/views/layouts/footer.blade.php
new file mode 100644
index 0000000..c672d45
--- /dev/null
+++ b/resources/views/layouts/footer.blade.php
@@ -0,0 +1,16 @@
+<div class="container mt-35">
+ <hr>
+</div>
+
+<div class="mt-20"></div>
+
+<footer class="footer">
+ <div class="container">
+ <h3 class="text-white">
+ Helpful Links
+ </h3>
+ <strong>
+ <a href="{{ route('about') }}">Learn more about {{ env('APP_NAME') }}</a>
+ </strong>
+ </div>
+</footer>