Commit 64e28c2c authored by Le Dinh Trung's avatar Le Dinh Trung

Merge branch 'feature/bootstrap' into 'dev'

Update form register, login with Bootstrap

See merge request !2
parents f831209f cf8879e7
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.bunny.net/css2?family=Nunito:wght@400;600;700&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" >
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<!-- Styles -->
<style>
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
</style>
<style>
body {
font-family: 'Nunito', sans-serif;
height: 100vh;
}
</style>
</head>
<body>
<div class="container">
<div class="row d-flex justify-content-center align-items-center vh-100">
<div class="col-md-4 border border-2 rounded p-3">
<form method="POST" action="/login">
<legend class = "text-center">Đăng nhập</legend>
<div class="form-group mb-3">
<label class="form-label">Số điện thoại (*)</label>
<input type="text" placeholder="" require class="form-control" name="phone">
</div>
<div class="form-group mb-3">
<label class="form-label">Mật khẩu (*)</label>
<input type="password" placeholder="" require class="form-control" name="password">
</div>
<div class="form-group">
<input type="hidden" name="_token" value="<?php echo csrf_token() ?>">
</div>
<div class="form-group d-flex justify-content-center">
<button class="btn btn-success">Đăng nhập</button>
</div>
</form>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.bunny.net/css2?family=Nunito:wght@400;600;700&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet" >
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<!-- Styles -->
<style>
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
</style>
<style>
body {
font-family: 'Nunito', sans-serif;
}
</style>
</head>
<body>
<div class="container">
<div class="row d-flex justify-content-center align-items-center vh-100">
<div class="col-md-4 border border-2 rounded p-3">
<form method="POST" action="/register">
@csrf
<legend class = "text-center">Đăng kí</legend>
<div class="form-group mb-3">
<label class="form-label">Số điện thoại (*)</label>
<input type="text" placeholder="" require class="form-control" name="phone">
</div>
<div class="form-group mb-3">
<label class="form-label">Họ Tên (*)</label>
<input type="text" placeholder="" require class="form-control" name="name">
</div>
<div class="form-group mb-3">
<label class="form-label">Mật khẩu (*)</label>
<input type="password" placeholder="" require class="form-control" name="password">
</div>
<div class="form-group">
<input type="checkbox" name="register">
<label>Đăng kí cửa hàng</label>
</div>
<div class="form-group mb-3">
<input type="checkbox" name="rule">
<label>Tôi đồng ý với điều khoản sử dụng</label>
</div>
<div class="form-group mb-3">
<input type="hidden" name="_token" value="<?php echo csrf_token() ?>">
</div>
<div class="form-group d-flex justify-content-center">
<button class="btn btn-success">Đăng kí</button>
</div>
</form>
</div>
</div>
</div>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment