Remove Livewire
Seems like overkill for this stage of things. It's also not clear to me how to use Livewire for only a subset of interactive functionality on the page.
This commit is contained in:
parent
5961e52797
commit
0b1fe6d491
@ -17,6 +17,19 @@ body {
|
|||||||
@import 'components/bookmark';
|
@import 'components/bookmark';
|
||||||
@import 'components/pagination';
|
@import 'components/pagination';
|
||||||
|
|
||||||
|
a {
|
||||||
|
&,
|
||||||
|
&:active,
|
||||||
|
&:visited {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #88f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: #FFF3B0;
|
color: #FFF3B0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -16,6 +16,18 @@
|
|||||||
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
a {
|
||||||
|
&,
|
||||||
|
&:active,
|
||||||
|
&:visited {
|
||||||
|
color: #9E2A2B;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&-title {
|
&-title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 1ex;
|
padding: 1ex;
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
<p>
|
||||||
|
<a href="{{ action('BookmarkController@index') }}">← Back</a>
|
||||||
|
</p>
|
||||||
<x-bookmark :bookmark="$bookmark" />
|
<x-bookmark :bookmark="$bookmark" />
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
<div class="bookmark">
|
<div class="bookmark">
|
||||||
<p class="bookmark-title">{{ $bookmark->title }}</p>
|
<p class="bookmark-title">
|
||||||
|
{{ $bookmark->title }}
|
||||||
|
@action('index')
|
||||||
|
<a href="/bookmarks/{{ $bookmark->id }}">#</a>
|
||||||
|
@endaction
|
||||||
|
</p>
|
||||||
<p class="bookmark-href"><a href="{{ $bookmark->href }}">{{ $bookmark->href }}</a></p>
|
<p class="bookmark-href"><a href="{{ $bookmark->href }}">{{ $bookmark->href }}</a></p>
|
||||||
@if (!empty($bookmark->description))
|
@if (!empty($bookmark->description))
|
||||||
<div class="bookmark-description">
|
<div class="bookmark-description">
|
||||||
|
@ -3,5 +3,9 @@
|
|||||||
use App\Http\Controllers\BookmarkController;
|
use App\Http\Controllers\BookmarkController;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
Route::get('/', [BookmarkController::class, 'index']);
|
Route::get(
|
||||||
Route::resource('bookmarks', BookmarkController::class)->except(['index']);
|
'/', function () {
|
||||||
|
return redirect()->action([BookmarkController::class, 'index']);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
Route::resource('bookmarks', BookmarkController::class);
|
||||||
|
Loading…
Reference in New Issue
Block a user