Advertisement
auliaguss

Untitled

Apr 6th, 2020
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.58 KB | None | 0 0
  1. <style>
  2.     body{
  3.         margin: 0;
  4.         padding: 0;
  5.         font-family: comic sans ms;
  6.         background: bisque;
  7.     }
  8.     .kotak{
  9.         background:white;
  10.         border-radius: 10px;
  11.         width: 400px;
  12.         padding: 20px;
  13.         position: absolute;
  14.         top:50%;
  15.         left: 50%;
  16.         transform: translate(-50%, -50%);
  17.         text-align: center;
  18.     }
  19.     .kotak h1{
  20.         color:deepskyblue;
  21.         text-transform: uppercase;
  22.         font-weight: 800;
  23.         text-align: center;
  24.     }
  25.     .kotak input[type="text"], .kotak input[type="password"]{
  26.         margin: 10px;
  27.         text-align: center;
  28.         border: 2px solid gray;
  29.         border-top:none;
  30.         border-right:none;
  31.         border-left:none;
  32.         padding: 7px 5px;
  33.         font-family: Comic Sans MS;
  34.         width: 200px;
  35.         color: crimson;
  36.         transition: 0.5s;
  37.         outline: none;
  38.     }
  39.     .kotak input[type="text"]:focus, .kotak input[type="password"]:focus{
  40.         border-color: rgba(0, 214, 214, 0.829);
  41.     }
  42.     .kotak input[type="submit"]{
  43.         margin: 10px;
  44.         text-align: center;
  45.         border: 2px none crimson;
  46.         font-family: Comic Sans MS;
  47.         padding: 7px 5px;
  48.         width: 100px;
  49.         border-radius: 3px;
  50.         transition: .6s;
  51.         cursor: pointer;
  52.         background:deepskyblue;
  53.     }
  54.     .kotak input[type="submit"]:hover{
  55.         background: crimson;
  56.     }
  57.     </style>
  58. @if(session('error'))
  59. <div class="alert alert-error" role="alert">
  60.   {{session('error')}}
  61. </div>
  62. @endif
  63. @if(count($errors)>0)
  64. <div class="alert alert-danger" role="alert">
  65.     <strong>!!!Perhatian!!!</strong><br>
  66.     <ul>
  67.         @foreach($errors->all() as $error)
  68.             <li>{{$error}}</li>
  69.         @endforeach
  70.     </ul>
  71. </div>
  72. @endif
  73. <center>
  74. <form action="{{ url('kelas') }}" method="post">
  75. @csrf
  76. <table class="kotak">
  77.     <tr>
  78.         <td colspan="2"><h1>Form Siswa</h1></td>
  79.     </tr>
  80.     <tr>
  81.         <td>Nama </td>
  82.         <td><input type="text" name="nama"/></td>
  83.     </tr>
  84.     <tr>
  85.         <td>Kelas </td>
  86.         <td><input type="text" name="kelas"/></td>
  87.     </tr>
  88.     <tr>
  89.         <td>Jurusan </td>
  90.         <td><input type="text" name="jurusan"/></td>
  91.     </tr>
  92.     <tr>
  93.         <td>Lokasi Ruangan </td>
  94.         <td><input type="text" name="lokasi_ruangan"/></td>
  95.     </tr>
  96.     <tr>
  97.         <td>Nama Wali Kelas </td>
  98.         <td><input type="text" name="nama_wali_kelas"/></td>
  99.     </tr>
  100.     <tr>
  101.         <td colspan="2"><input type="submit" value="Simpan"/></td>
  102.     </tr>
  103. </table>
  104. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement