Bootstrap 5 로그인 양식 페이지 예
view
How to install & setup bootstrap 5
Bootstrap 5 로그인 양식 페이지
1) 부트스트랩 5에서 간단한 반응형 로그인.
로그인.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bootstrap 5 Login form Page</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="vh-100 d-flex justify-content-center align-items-center">
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-12 col-md-8 col-lg-6">
<div class="card bg-white">
<div class="card-body p-5">
<form class="mb-3 mt-md-4">
<h2 class="fw-bold mb-2 text-uppercase ">Brand</h2>
<p class=" mb-5">Please enter your login and password!</p>
<div class="mb-3">
<label for="email" class="form-label ">Email address</label>
<input type="email" class="form-control" id="email" placeholder="[email protected]">
</div>
<div class="mb-3">
<label for="password" class="form-label ">Password</label>
<input type="password" class="form-control" id="password" placeholder="*******">
</div>
<p class="small"><a class="text-primary" href="forget-password.html">Forgot password?</a></p>
<div class="d-grid">
<button class="btn btn-outline-dark" type="submit">Login</button>
</div>
</form>
<div>
<p class="mb-0 text-center">Don't have an account? <a href="signup.html" class="text-primary fw-bold">Sign
Up</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
2) 테두리 클래스를 사용하여 Bootstrap 5 괜찮은 모양의 로그인.
로그인.html
<div class="vh-100 d-flex justify-content-center align-items-center">
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-12 col-md-8 col-lg-6">
<div class="border border-3 border-primary"></div>
<div class="card bg-white">
<div class="card-body p-5">
<form class="mb-3 mt-md-4">
<h2 class="fw-bold mb-2 text-uppercase ">Brand</h2>
<p class=" mb-5">Please enter your login and password!</p>
<div class="mb-3">
<label for="email" class="form-label ">Email address</label>
<input type="email" class="form-control" id="email" placeholder="[email protected]">
</div>
<div class="mb-3">
<label for="password" class="form-label ">Password</label>
<input type="password" class="form-control" id="password" placeholder="*******">
</div>
<p class="small"><a class="text-primary" href="forget-password.html">Forgot password?</a></p>
<div class="d-grid">
<button class="btn btn-outline-dark" type="submit">Login</button>
</div>
</form>
<div>
<p class="mb-0 text-center">Don't have an account? <a href="signup.html"
class="text-primary fw-bold">Sign
Up</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
3) 테두리 및 그림자 클래스를 사용하여 Bootstrap 5 로그인.
로그인.html
<div class="vh-100 d-flex justify-content-center align-items-center">
<div class="container">
<div class="row d-flex justify-content-center">
<div class="col-12 col-md-8 col-lg-6">
<div class="border border-3 border-primary"></div>
<div class="card bg-white shadow-lg">
<div class="card-body p-5">
<form class="mb-3 mt-md-4">
<h2 class="fw-bold mb-2 text-uppercase ">Brand</h2>
<p class=" mb-5">Please enter your login and password!</p>
<div class="mb-3">
<label for="email" class="form-label ">Email address</label>
<input type="email" class="form-control" id="email" placeholder="[email protected]">
</div>
<div class="mb-3">
<label for="password" class="form-label ">Password</label>
<input type="password" class="form-control" id="password" placeholder="*******">
</div>
<p class="small"><a class="text-primary" href="forget-password.html">Forgot password?</a></p>
<div class="d-grid">
<button class="btn btn-outline-dark" type="submit">Login</button>
</div>
</form>
<div>
<p class="mb-0 text-center">Don't have an account? <a href="signup.html"
class="text-primary fw-bold">Sign
Up</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Reference
이 문제에 관하여(Bootstrap 5 로그인 양식 페이지 예), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/frontendshape/bootstrap-5-login-form-page-example-l7o텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)