diff --git a/app/Http/Controllers/TopicsController.php b/app/Http/Controllers/TopicsController.php new file mode 100644 index 0000000..f33e585 --- /dev/null +++ b/app/Http/Controllers/TopicsController.php @@ -0,0 +1,22 @@ + $topic->load('articles') + ]); + } +} diff --git a/public/css/styles.css b/public/css/styles.css new file mode 100644 index 0000000..6d6bbf4 --- /dev/null +++ b/public/css/styles.css @@ -0,0 +1,26 @@ +@font-face { + font-family: "mvtyper"; + src: url("/fonts/mvtyper.ttf"); +} + +@font-face { + font-family: "Mvaamu"; + src: url("/fonts/mv-aammu-fk.ttf"); +} + +@font-face { + font-family: "MvWaheed"; + src: url("/fonts/mv_waheed.otf"); +} + +.MvAamu { + font-family: "Mvaamu"; +} + +.MvTyper { + font-family: "mvtyper"; +} + +.MvWaheed { + font-family: "MvWaheed"; +} diff --git a/public/js/app.js b/public/js/app.js index 2b37010..7926bf2 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -20071,7 +20071,7 @@ var render = function() { "a", { staticClass: "block w-full lg:flex mb-10 shadow rounded-lg", - attrs: { href: "" } + attrs: { href: "/article/" + story.id } }, [ _c( diff --git a/resources/js/components/RecentStories.vue b/resources/js/components/RecentStories.vue index bf0f968..0bbef8c 100644 --- a/resources/js/components/RecentStories.vue +++ b/resources/js/components/RecentStories.vue @@ -13,7 +13,7 @@
-

{{$article->title}}

diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 2203a58..a6d6984 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -6,33 +6,7 @@ - + diff --git a/resources/views/topics/show.blade.php b/resources/views/topics/show.blade.php new file mode 100644 index 0000000..4dfe6d2 --- /dev/null +++ b/resources/views/topics/show.blade.php @@ -0,0 +1,59 @@ +@extends('layouts.app') + +@section('content') +
+@endsection \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 1a4294a..16562cc 100644 --- a/routes/web.php +++ b/routes/web.php @@ -4,6 +4,8 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; use App\Article; use App\Http\Controllers\ArticlesController; +use App\Http\Controllers\TopicsController; + /* |-------------------------------------------------------------------------- | Web Routes @@ -20,6 +22,7 @@ Route::get('/', function(){ }); Route::get('/article/{article:id}', [ArticlesController::class,'show'])->name('articles.show'); +Route::get('/topic/{topic:slug}', [TopicsController::class,'show'])->name('topics.show'); Route::get('/ogimage', function(Request $request) {