Add (initial): futurewalker code

This commit is contained in:
2023-11-20 00:15:18 +08:00
parent f8602cb456
commit 9ce3e5c82a
166 changed files with 15941 additions and 1072 deletions

View File

@@ -1,7 +1,6 @@
<div class="p-4 mb-3 bg-white rounded-3 shadow-sm">
<h4 class="fst-italic">About EchoScoop</h4>
<aside class="p-4 mb-3 bg-black text-white rounded-3 shadow-sm">
<h4 class="font-family-roboto-condensed">About <span class="text-uppercase">FutureWalker</span></h4>
<p class="mb-0">
EchoScoop is a streamlined news platform delivering concise global updates. We keep our news to be bite-sized
within 1 to 5 minutes read. Our goal is to keep you promptly informed with each scoop.
FutureWalker is an innovative news platform specializing in cutting-edge technology and AI developments. We provide insightful coverage on the latest breakthroughs and trends, offering our audience a front-row seat to the advancements shaping our future. Stay informed and ahead with FutureWalker, your go-to source for tech news that matters.
</p>
</div>
</aside>

View File

@@ -1,14 +1,21 @@
<div class="row g-0 border-0 rounded-3 overflow-hidden flex-md-row mb-4 shadow-sm h-md-250 position-relative bg-white">
<div class="col p-4 d-flex flex-column position-static">
@if (isset($category) && $category->id != $post->category->id)
<div class="row g-3 border-0 overflow-hidden flex-md-row mb-4 h-md-250 position-relative bg-white">
<div class="col-12 col-lg-3 d-flex" style="height:100%;">
<div class="align-self-center">
<img class="img-fluid rounded-4 shadow" src="{{ $post->featured_image }}"
alt="{{ $post->title }}">
</div>
</div>
<div class="col-12 col-lg-9 d-flex flex-column position-static">
@if (isset($category) && $category->id != $post->category?->id)
<span class="d-inline-block mb-2 text-success-emphasis"><i>Under</i> <strong
class="ms-1">{{ $category->name }} <i class="bi bi-chevron-right small"></i>
{{ $post->category->name }}</strong></span>
class="ms-0">{{ $category?->name }} <i class="bi bi-chevron-right small"></i>
{{ $post->category?->name }}</strong></span>
@else
<span class="d-inline-block mb-2 text-success-emphasis"><i>Under</i> <strong
class="ms-1">{{ $post->category->name }}</strong></span>
@endif
<h3 class="mb-1 h4">{{ $post->title }}</h3>
<h2 class="mb-1 h4 font-family-roboto-condensed">{{ $post->title }}</h2>
<div class="mb-3 text-body-secondary">
@if (!is_empty($post->published_at))
@@ -20,8 +27,9 @@ class="ms-1">{{ $post->category->name }}</strong></span>
{{ markdown_min_read($post->body) }}
</div>
<p class="mb-3">{{ $post->excerpt }}</p>
<a href="{{ route('front.post', ['slug' => $post->slug, 'category_slug' => $post->category->slug]) }}"
<p class="mb-3 small">{{ str_first_sentence($post->bites) }}</p>
<a href="{{ route('front.post', ['slug' => $post->slug, 'category_slug' => $post->category?->slug]) }}"
class="icon-link gap-1 icon-link-hover stretched-link">
Continue reading...
<svg class="bi">

View File

@@ -0,0 +1,9 @@
<aside>
<form class="d-flex mb-3" action="{{ route('front.search')}}" method="POST">
@csrf
<input name="query" class="form-control me-2" type="search" placeholder="Search for AI news..." aria-label="Search">
<button class="btn btn-outline-primary" type="submit">
<i class="bi bi-search"></i>
</button>
</form>
</aside>

View File

@@ -0,0 +1,22 @@
@include('front.partials.about')
@include('front.partials.search')
{{--
<aside class="text-center">
<h3 class="font-family-roboto-condensed h4 text-uppercase">Never miss a news</h3>
<div class="d-flex flex-row justify-content-center">
<a href="https://www.facebook.com/futurewalker" target="_blank" class="mx-1 btn btn-link mb-2">
<i class="bi bi-facebook"></i>
</a>
{{-- <a href="https://twitter.com/futurewalker" target="_blank" class="mx-1 btn btn-link mb-2">
<i class="bi bi-twitter"></i>
</a> --}}
{{-- <a href="https://www.youtube.com/user/hackaday" target="_blank" class="mx-1 btn btn-link mb-2">
<i class="bi bi-youtube"></i>
</a>
<a href="https://hackaday.com/blog/feed/" target="_blank" class="mx-1 btn btn-link mb-2">
<i class="bi bi-rss"></i>
</a>
</div>
</aside>
--}}