welcome.blade.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!doctype html>
  2. <html lang="{{ app()->getLocale() }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Laravel</title>
  8. <!-- Fonts -->
  9. <link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
  10. <!-- Styles -->
  11. <style>
  12. html, body {
  13. background-color: #fff;
  14. color: #636b6f;
  15. font-family: 'Raleway', sans-serif;
  16. font-weight: 100;
  17. height: 100vh;
  18. margin: 0;
  19. }
  20. .full-height {
  21. height: 100vh;
  22. }
  23. .flex-center {
  24. align-items: center;
  25. display: flex;
  26. justify-content: center;
  27. }
  28. .position-ref {
  29. position: relative;
  30. }
  31. .top-right {
  32. position: absolute;
  33. right: 10px;
  34. top: 18px;
  35. }
  36. .content {
  37. text-align: center;
  38. }
  39. .title {
  40. font-size: 84px;
  41. }
  42. .links > a {
  43. color: #636b6f;
  44. padding: 0 25px;
  45. font-size: 12px;
  46. font-weight: 600;
  47. letter-spacing: .1rem;
  48. text-decoration: none;
  49. text-transform: uppercase;
  50. }
  51. .m-b-md {
  52. margin-bottom: 30px;
  53. }
  54. </style>
  55. </head>
  56. <body>
  57. <div class="flex-center position-ref full-height">
  58. @if (Route::has('login'))
  59. <div class="top-right links">
  60. @auth
  61. <a href="{{ url('/home') }}">Home</a>
  62. @else
  63. <a href="{{ route('login') }}">Login</a>
  64. <a href="{{ route('register') }}">Register</a>
  65. @endauth
  66. </div>
  67. @endif
  68. <div class="content">
  69. <div class="title m-b-md">
  70. Laravel
  71. </div>
  72. <div class="links">
  73. <ul>
  74. @foreach ($tasks as $task)
  75. {{ $task->title }}
  76. @endforeach
  77. </ul>
  78. </div>
  79. </div>
  80. </div>
  81. </body>
  82. </html>