home.blade.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. @extends('master')
  2. @section('title', 'Homepage')
  3. @section('content')
  4. <!-- почему-то не смогла подключить <link href="/css/app.css" rel="stylesheet">, простите :,( -->
  5. <style type="text/css">
  6. a.button15 {
  7. display: inline-block;
  8. font-family: arial,sans-serif;
  9. font-size: 11px;
  10. font-weight: bold;
  11. color: rgb(68,68,68);
  12. text-decoration: none;
  13. user-select: none;
  14. padding: .2em 1.2em;
  15. outline: none;
  16. border: 1px solid rgba(0,0,0,.1);
  17. border-radius: 2px;
  18. background: rgb(245,245,245) linear-gradient(#f4f4f4, #f1f1f1);
  19. transition: all .218s ease 0s;
  20. }
  21. a.button15:hover {
  22. color: rgb(24,24,24);
  23. border: 1px solid rgb(198,198,198);
  24. background: #f7f7f7 linear-gradient(#f7f7f7, #f1f1f1);
  25. box-shadow: 0 1px 2px rgba(0,0,0,.1);
  26. }
  27. a.button15:active {
  28. color: rgb(51,51,51);
  29. border: 1px solid rgb(204,204,204);
  30. background: rgb(238,238,238) linear-gradient(rgb(238,238,238), rgb(224,224,224));
  31. box-shadow: 0 1px 2px rgba(0,0,0,.1) inset;
  32. }
  33. </style>
  34. <main role="main">
  35. <section class="jumbotron text-center">
  36. <div class="container">
  37. <h1 class="jumbotron-heading">TASKS BOARD</h1>
  38. <p class="lead text-muted">It can be used for visual task management and workflow coordination in event companies, marketing and interactive agencies or sales departments. </p>
  39. <p>
  40. <form action="/create" method="post">
  41. <!-- <a href="#" class="btn btn-primary my-2">Main call to action</a>
  42. <a href="#" class="btn btn-secondary my-2">Secondary action</a> -->
  43. <link href="\css\style.css" rel="stylesheet">
  44. <input type="text" name="title" placeholder="Title">
  45. <input type="text" name="content" placeholder="Content">
  46. </p>
  47. {{ csrf_field() }}
  48. <input type="submit" value="Add" style="button15"/>
  49. <!-- <button type="submit">Submit</button> -->
  50. </form>
  51. </div>
  52. </section>
  53. <center>
  54. @foreach($tasks as $task)
  55. @if ($errors->any())
  56. <div class="alert alert-danger">
  57. <ul>
  58. @foreach ($errors->all() as $error)
  59. <li>{{ $error }}</li>
  60. @endforeach
  61. </ul>
  62. </div><br />
  63. @endif
  64. <div class="album py-5 bg-light">
  65. <!-- <div class="container"> -->
  66. <div class="col-md-4">
  67. <div class="card mb-4 box-shadow">
  68. <!-- <img class="card-img-top" data-src="holder.js/100px225?theme=thumb&bg=55595c&fg=eceeef&text=Thumbnail" alt="Card image cap"> -->
  69. <strong>{{$task->title}}</strong>
  70. <div class="card-body">
  71. <!-- <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p> -->
  72. {{$task->content}}
  73. <div class="d-flex justify-content-between align-items-center">
  74. <button type="button" class="btn btn-sm btn-outline-secondary"> <a href="/task/{{$task->id}}">View</a></button>
  75. <small class="text-muted">{{$task->created_at->diffForHumans()}}</small>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. @endforeach
  82. </center>
  83. </main>
  84. @endsection