homePage.scss 2.89 KB
.HomePage {
  width: 100%;
  height: 100%;
  background-image: url("@/assets/images/bg.jpg"); /* 替换为你的图片路径 */
  background-size: cover; /* 背景图片覆盖整个元素 */
  background-position: center; /* 背景图片居中 */
  background-repeat: no-repeat; /* 不重复背景图片 */
}
.content {
    margin-top: 56px;
    position: relative;
    .navs {
      position: absolute;
      left: 0;
      box-sizing: border-box;
      width: 122px;
      height: 80vh;
      background-color: rgba(228, 231, 237, 0.23);
      border-radius: 0px 10px 10px 0px;
      padding: 25px;
      border-right: unset;
      .el-menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #fff;
        margin-bottom: 15px;
        &.is-active {
          border-radius: 5px;
          background-color: #67c23a;
        }
        &:hover {
          background-color: #dfdada56;
        }
        i {
          font-size: 30px;
          color: #fff;
        }
        span {
          color: #fff;
          line-height: 36px;
        }
      }
    }
    .table-box {
      position: absolute;
      right: 122px;
      width: calc(100% - 122px - 122px - 26px - 26px);
      margin: 0 26px;
      .search {
        border-radius: 10px;
        background-color: rgba(244, 244, 245, 0.38);
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px;
        .ipt-box {
          display: flex;
          flex-direction: row;
          align-items: center;
          .el-input {
            width: 300px;
            :deep(.el-input__inner) {
              border-radius: 4px 0 0 4px;
            }
          }
          .el-button {
            height: 40px;
            background: rgb(164, 173, 179);
            color: #fff;
            border-radius: 0 4px 4px 0;
            margin-right: 10px;
            border: unset;
          }
        }
      }
      .info {
        margin-top: 14px;
        border-radius: 10px;
        height: calc(100vh - 195px);
      }
    }
    .news {
      position: absolute;
      right: 0;
      box-sizing: border-box;
      width: 122px;
      height: 200px;
      background-color: rgba(228, 231, 237, 0.23);
      border-radius: 10px 0px 0px 10px;
      padding: 20px;
      .news-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #fff;
        cursor: pointer;
        margin-bottom: 8px;
        .icon-item {
          position: relative;
          width: 40px;
          height: 40px;
          text-align: center;
          line-height: 40px;
          font-size: 40px;
          margin: 8px;
          .red-spot {
            position: absolute;
            right: -6px;
            top: -6px;
            width: 12px;
            height: 12px;
            background-color: red;
            border-radius: 50%;
          }
        }
      }
    }
  }