1
0
Fork 0
party-rank-server/resources/views/login.blade.php

43 lines
1.4 KiB
PHP

@extends('layout')
@section('title')
登录
@endsection
@section('style')
<style>
.form-login {
max-width: 330px;
padding: 1rem;
}
.form-login input[name="username"] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-login input[name="password"] {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
</style>
@endsection
@section('content')
<div class="d-flex align-items-center py-4 bg-body-tertiary">
<div class="form-login w-100 m-auto">
<form action="{{ url('/login') }}" method="post">
{{ csrf_field() }}
<div class="form-floating">
<input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名" value="{{ old('username') }}" required>
<label for="username">用户名</label>
</div>
<div class="form-floating">
<input type="password" class="form-control" id="password" name="password" placeholder="请输入密码" required>
<label for="password">密码</label>
</div>
<button type="submit" class="btn btn-primary w-100 py-2">登录</button>
</form>
</div>
</div>
@endsection