From ea7f3c9c9ca72ee6efa9c345506ea9c92cdf1691 Mon Sep 17 00:00:00 2001 From: horus Date: Sun, 19 Apr 2020 18:28:17 +0200 Subject: Add footer with about page. --- app/Http/Controllers/IndexController.php | 5 +++ public/css/app.css | 24 ++++++++++++ resources/sass/_navbar.scss | 4 ++ resources/sass/_utility.scss | 16 +++++++- resources/views/about.blade.php | 54 ++++++++++++++++++++++++++ resources/views/index.blade.php | 3 ++ resources/views/layouts/app.blade.php | 5 ++- resources/views/layouts/footer-style.blade.php | 14 +++++++ resources/views/layouts/footer.blade.php | 16 ++++++++ resources/views/list.blade.php | 46 +++++++++++++--------- resources/views/topicindex.blade.php | 5 +++ resources/views/topicpopular.blade.php | 5 +++ routes/web.php | 2 +- 13 files changed, 176 insertions(+), 23 deletions(-) create mode 100644 resources/views/about.blade.php create mode 100644 resources/views/layouts/footer-style.blade.php create mode 100644 resources/views/layouts/footer.blade.php diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php index bb1d301..9f21bbb 100644 --- a/app/Http/Controllers/IndexController.php +++ b/app/Http/Controllers/IndexController.php @@ -17,6 +17,11 @@ class IndexController extends Controller return view('index'); } + public function about() + { + return view('about'); + } + public function topic( $topic ) { $articles = new Category; diff --git a/public/css/app.css b/public/css/app.css index b32dc56..aa0b69e 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -10931,6 +10931,10 @@ body { } } +.nav-link:hover { + text-decoration: underline !important; +} + .text-lg { font-size: 1.125rem; } @@ -10943,3 +10947,23 @@ hr { margin-top: inherit; } +.mt-20 { + margin-top: 20px; +} + +.mt-30 { + margin-top: 30px; +} + +.mt-35 { + margin-top: 35px; +} + +.mt-40 { + margin-top: 40px; +} + +.mt-50 { + margin-top: 50px; +} + diff --git a/resources/sass/_navbar.scss b/resources/sass/_navbar.scss index 1542944..4645fa5 100644 --- a/resources/sass/_navbar.scss +++ b/resources/sass/_navbar.scss @@ -14,3 +14,7 @@ margin-left: 0.5rem; } } + +.nav-link:hover { + text-decoration: underline !important; +} diff --git a/resources/sass/_utility.scss b/resources/sass/_utility.scss index e84fcd0..bcc163d 100644 --- a/resources/sass/_utility.scss +++ b/resources/sass/_utility.scss @@ -8,4 +8,18 @@ hr { height: 1px; margin-top: inherit; } - +.mt-20 { + margin-top: 20px; +} +.mt-30 { + margin-top: 30px; +} +.mt-35 { + margin-top: 35px; +} +.mt-40 { + margin-top: 40px; +} +.mt-50 { + margin-top: 50px; +} diff --git a/resources/views/about.blade.php b/resources/views/about.blade.php new file mode 100644 index 0000000..143fe55 --- /dev/null +++ b/resources/views/about.blade.php @@ -0,0 +1,54 @@ +@extends('layouts.app') + +@section('styles') +html { + height: 100%; +} +.hn { + display: inline-block; + font-size: inherit; + height: 1em; + overflow: visible; + vertical-align: -.125em; + fill: #ff6600; +} + +@endsection + +@section('content') +
+ {{ env('APP_NAME') }} is a resource of curious, obscure, inspiring, interesting and sometimes even scary insights. Dive deep in the worlds knowlegde. We focus on "anything that gratifies one's intellectual curiosity." Or to speak more clearly: Reading Wikipedia was my hobby, so I automated it.
+
+
+ Enter {{ env('APP_NAME') }}. This is a collection of curated Wikipedia articles, sourced primarily (for now) from {!! file_get_contents(public_path() . "/img/y-combinator.svg") !!} Hacker News. For structured consuming most of them are further categorized in topics. For starting, I recommend reading the most popular articles or browse by topics.
+
+ Not ready to explore?
Then learn more.
+