diff --git a/public/css/admin.css b/public/css/admin.css new file mode 100644 index 0000000..27ad724 --- /dev/null +++ b/public/css/admin.css @@ -0,0 +1,37 @@ + a +, body +, nav +, input +, form +{ + display: flex; + gap: 0.5rem +} + +body +{ + margin:0; + padding:0; +} + +nav +{ + flex-direction: column; + width: 10rem; + padding: 1rem; +} + +main +{ + padding: 1rem 0; +} + +input[type='search'] +{ + width: 100%; +} + +form +{ + flex-direction: column; +} \ No newline at end of file diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php new file mode 100644 index 0000000..740b855 --- /dev/null +++ b/resources/views/dashboard.blade.php @@ -0,0 +1,9 @@ + + +
    +@foreach($articles as $article) +
  1. {{ $article['title'] ?? $article['slug'] }} +@endforeach +
+ +
diff --git a/resources/views/edit.blade.php b/resources/views/edit.blade.php new file mode 100644 index 0000000..f920ab3 --- /dev/null +++ b/resources/views/edit.blade.php @@ -0,0 +1,16 @@ + + +
+ @csrf + + + + + + + +
diff --git a/resources/views/list.blade.php b/resources/views/list.blade.php new file mode 100644 index 0000000..3884b54 --- /dev/null +++ b/resources/views/list.blade.php @@ -0,0 +1,14 @@ + +
+ + + +
+
diff --git a/resources/views/new.blade.php b/resources/views/new.blade.php new file mode 100644 index 0000000..090ab42 --- /dev/null +++ b/resources/views/new.blade.php @@ -0,0 +1,12 @@ + + +
+ @csrf + id + title + slug + + +
+ +