2.8

<template>
  <div id="userLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <a-space>
          <img src="../assets/logo.jpg" alt="" class="logo" />
          <div class="title">Ren OJ</div>
        </a-space>
      </a-layout-header>

      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <a href="https://github.com/wenotb" class="footer-link">
          WenOtb的Github
        </a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped>
#userLayout {
  text-align: center;
  /* background: url("https://n.sinaimg.cn/sinakd20117/0/w2048h1152/20240109/0ff5-3efedec97e8d7f0606a9f955a99300e0.jpg"); */
}
#userLayout .header {
  margin-top: 16px;
}
#userLayout .logo {
  width: 68px;
  margin-right: 16px;
}
#userLayout .title {
  font-size: 24px;
}
#userLayout .content {
  margin-bottom: 16px;
  padding: 16px;
}
#userLayout .footer {
  padding: 16px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}
.footer-link {
  font-size: 18px;
  color: #bbbbbbe6;
}
</style>
posted @ 2025-02-08 21:44  Hbro  阅读(7)  评论(0)    收藏  举报