Skip to content
Snippets Groups Projects
AppHeader.vue 1.42 KiB
Newer Older
  • Learn to ignore specific revisions
  • Zhengbo Wang's avatar
    Zhengbo Wang committed
    <template>
      <header>
        <div class="overlay">
          <h1>Switch Room</h1>
          <h3>Reasons for Choosing US</h3>
          <p>
            Wanna to pay for hotel for traveling? Switch Room provide the local
            rooms for you. No need to pay rental. You can switch your living home
            with other people who want to travel to your place.
          </p>
          <br />
    
    zhengbo's avatar
    zhengbo committed
          <router-link to="/login">
            <button>READ MORE</button>
          </router-link>
    
    Zhengbo Wang's avatar
    Zhengbo Wang committed
        </div>
      </header>
    </template>
    
    <script lang="ts"></script>
    
    <style scoped>
    * {
      padding: 0;
      margin: 0;
      box-sizing: border-box;
    }
    body {
      height: 900px;
    }
    header {
      background: url("@/assets/mainPage/headerPhoto.jpeg");
      text-align: center;
      width: 100%;
      height: auto;
      background-size: cover;
      background-attachment: fixed;
      position: relative;
      overflow: hidden;
      border-radius: 0 0 85% 85% / 30%;
    }
    header .overlay {
      width: 100%;
      height: 100%;
      padding: 50px;
      color: #fff;
      text-shadow: 1px 1px 1px #333;
      background-image: linear-gradient(135deg, #b3d1ff 10%, #fd5e086b 100%);
    }
    
    h1 {
      font-family: "Dancing Script", cursive;
      font-size: 80px;
      margin-bottom: 30px;
    }
    
    h3,
    p {
      font-family: "Open Sans", sans-serif;
      margin-bottom: 30px;
    }
    
    button {
      border: none;
      outline: none;
      padding: 10px 20px;
      border-radius: 50px;
      color: #333;
      background: #fff;
      margin-bottom: 50px;
      box-shadow: 0 3px 20px 0 #0000003b;
    }
    button:hover {
      cursor: pointer;
    }
    </style>