帮我写一个用bootstrap做的二次元静态软件登录页面,内容要丰富,要有多种选项
时间: 2024-03-17 08:40:37 浏览: 128
Bootstrap编写一个同时适用于PC、平板、手机的登陆页面
当然可以,以下是一个使用 Bootstrap 5 做的二次元静态软件登录页面示例代码:
```html
<!DOCTYPE html>
<html>
<head>
<title>Anime Software Login</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css" integrity="sha512-+6YJ6w/8+0H5WDzC+uA4O7xv1z+6l3D5yK5EhB6Lsbv3zIjJuj5Kf8QhfT4c2zj0GJ9j4P9ZdGf3Cq3+9xgGw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Custom CSS -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container-fluid p-0">
<div class="row">
<div class="col-lg-7 d-none d-lg-block bg-login-image"></div>
<div class="col-lg-5 bg-white">
<div class="p-5">
<div class="text-center">
<h1 class="h4 text-gray-900 mb-4">Anime Software Login</h1>
</div>
<form>
<div class="form-group">
<input type="text" class="form-control form-control-user" id="username" placeholder="Username">
</div>
<div class="form-group">
<input type="password" class="form-control form-control-user" id="password" placeholder="Password">
</div>
<div class="form-group">
<div class="custom-control custom-checkbox small">
<input type="checkbox" class="custom-control-input" id="remember">
<label class="custom-control-label" for="remember">Remember Me</label>
</div>
</div>
<button type="submit" class="btn btn-primary btn-user btn-block">Login</button>
<hr>
<div class="text-center">
<a class="small" href="#">Forgot Password?</a>
</div>
<div class="text-center">
<a class="small" href="#">Create an Account!</a>
</div>
<div class="text-center mt-3">
<h6>Or login with:</h6>
<a href="#" class="btn btn-outline-primary btn-circle mx-1"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="btn btn-outline-danger btn-circle mx-1"><i class="fab fa-google"></i></a>
<a href="#" class="btn btn-outline-success btn-circle mx-1"><i class="fab fa-twitter"></i></a>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/js/bootstrap.bundle.min.js" integrity="sha512-GtdL8XlX4oQvOQFpVwCgTntfNQz8RJxM+4TgTJ2l8nLqJG0YgJ/+7PpVc3WfN5WmHmRzJ3GJhj1sqO6Ov3+mxw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- Font Awesome -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/js/all.min.js" integrity="sha512-R0sQyWbiyQa9yVQD9cFzJQYx9I1XnJW2KpR0bXK4vYz5gM5jW5Oa7gOemfLopJQ6qVqYzQzI1RmZiQ+Qg1Z6zw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</body>
</html>
```
这个网页使用了 Bootstrap 5 的基本布局和表单组件,包括一个输入框和一个密码框,以及一个提交按钮和多种选项,如“记住我”复选框、忘记密码链接、注册链接和社交媒体登录按钮等。此外,我们还使用了 Font Awesome 图标库来添加图标,以增强页面的视觉效果。你可以根据需要进行修改和定制。
阅读全文