Skip to content

Commit 5165683

Browse files
committed
Add styling to links
1 parent 0bc6b45 commit 5165683

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

resources/views/index.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@section('content')
66
<nav class="mb-4">
77
<a href="{{ route('tasks.create')}}"
8-
class="font-medium text-gray-700 underline decoration-pink-500">Add Task</a>
8+
class="link">Add Task</a>
99
</nav>
1010
@forelse ($tasks as $task)
1111
<div>

resources/views/layouts/app.blade.php

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
.btn {
1212
@apply rounded-md px-2 py-1 text-center font-medium shadow-sm ring-1 ring-slate-700/10 hover:bg-slate-50 text-slate-700
1313
}
14+
.link {
15+
@apply font-medium text-gray-700 underline decoration-pink-500
16+
}
1417
</style>
1518
@yield('styles')
1619
</head>

resources/views/show.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@section('content')
66
<div class="mb-4">
77
<a href="{{ route('tasks.index')}}"
8-
class="font-medium text-gray-700 underline decoration-pink-500">← Go back to the task list!</a>
8+
class="link">← Go back to the task list!</a>
99
</div>
1010

1111
<p class="mb-4 text-slate-700">{{ $task->description }}</p>

0 commit comments

Comments
 (0)