feat: add bg image

This commit is contained in:
Zichao Lin 2024-08-22 23:17:12 +08:00
parent 29c82d721d
commit 5c0acdc32e
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB
2 changed files with 9 additions and 2 deletions

BIN
img/bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

@ -1,6 +1,10 @@
body {
font-family: Microsoft YaHei;
background-color: #f2f2f2;
/* background-color: #f2f2f2; */
background-image: url("img/bg.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
@ -9,13 +13,16 @@ body {
}
.container {
z-index: 1;
background-color: rgba(255, 255, 255, 0.6);
border-radius: 15px;
text-align: center;
padding: 20px;
}
.card {
width: 300px;
background-color: #ffffff;
background-color: rgba(255, 255, 255, 0.6);
border-radius: 15px;
padding: 20px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);