feat: add bg image
This commit is contained in:
parent
29c82d721d
commit
5c0acdc32e
BIN
img/bg.jpg
Normal file
BIN
img/bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 MiB |
11
styles.css
11
styles.css
@ -1,6 +1,10 @@
|
|||||||
body {
|
body {
|
||||||
font-family: Microsoft YaHei;
|
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;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -9,13 +13,16 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
z-index: 1;
|
||||||
|
background-color: rgba(255, 255, 255, 0.6);
|
||||||
|
border-radius: 15px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
background-color: #ffffff;
|
background-color: rgba(255, 255, 255, 0.6);
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user