Skip to content

Commit 7c399f2

Browse files
blog ui
1 parent 5ee1b95 commit 7c399f2

38 files changed

+2200
-6
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Blog;
4+
5+
use App\Http\Controllers\Controller;
6+
use App\Models\Blog\Post;
7+
8+
class BlogController extends Controller
9+
{
10+
public function index()
11+
{
12+
$posts = Post::query()
13+
->where('published_at', '<=', now())
14+
->orderBy('published_at', 'desc')
15+
->paginate(10);
16+
17+
return view('blog.blog', [
18+
'posts' => $posts,
19+
]);
20+
}
21+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Blog;
4+
5+
use App\Http\Controllers\Controller;
6+
use Illuminate\Http\Request;
7+
8+
class CategoryController extends Controller
9+
{
10+
//
11+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Blog;
4+
5+
use App\Http\Controllers\Controller;
6+
use App\Models\Blog\Post;
7+
8+
class PostController extends Controller
9+
{
10+
public function show(Post $post)
11+
{
12+
return view('blog.blog-detail', [
13+
'post' => $post,
14+
]);
15+
}
16+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Blog;
4+
5+
use App\Http\Controllers\Controller;
6+
use Illuminate\Http\Request;
7+
8+
class TagController extends Controller
9+
{
10+
//
11+
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
"laravel-vite-plugin": "^1.2.0",
1313
"tailwindcss": "^4.0.0",
1414
"vite": "^6.2.4"
15+
},
16+
"dependencies": {
17+
"iconify-icon": "2.3.0"
1518
}
1619
}

pnpm-lock.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/logo.svg

Lines changed: 13 additions & 0 deletions
Loading

resources/css/app.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
@import 'tailwindcss';
1+
@import "./tailwind.css";
22

33
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
44
@source '../../storage/framework/views/*.php';
55
@source '../**/*.blade.php';
66
@source '../**/*.js';
77

8-
@theme {
8+
/* @theme {
99
--font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
1010
'Segoe UI Symbol', 'Noto Color Emoji';
11+
} */
12+
13+
/* To avoid layout shift, add this to your CSS: */
14+
iconify-icon {
15+
display: inline-block;
16+
width: 1em;
17+
height: 1em;
1118
}

resources/css/custom/_general.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*********************************/
2+
/* General */
3+
/*===============================*/
4+
.container {
5+
@apply w-full mx-auto px-3;
6+
}
7+
p {
8+
@apply leading-relaxed;
9+
}
10+
11+
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
12+
@apply leading-normal;
13+
}
14+
15+
::selection {
16+
@apply bg-indigo-600/90 text-white;
17+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*********************************/
2+
/* Contact */
3+
/*===============================*/
4+
5+
/* Validation */
6+
.error {
7+
@apply my-2 mx-0 hidden text-red-600;
8+
}
9+
10+
#ajaxsuccess {
11+
@apply text-base w-full hidden clear-both my-2 mx-0;
12+
}
13+
14+
.error_message,
15+
#success_page {
16+
@apply p-2.5 mb-5 text-center rounded-md;
17+
}
18+
19+
.error_message {
20+
@apply bg-red-600/5 text-red-600;
21+
}
22+
23+
.contact-loader {
24+
@apply hidden;
25+
}
26+
27+
#success_page {
28+
@apply bg-emerald-600/5 text-emerald-600;
29+
}

0 commit comments

Comments
 (0)