zhongshujie
4 天以前 90675cb210f5a2afc4766e6fd091776a14397d48
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<template>
  <div class="home-box">
    <div class="logo">
      <img src="../assets/images/logo.png" alt="" />
    </div>
    <div class="main">
      <div class="title">欢迎来到陕图高新馆区</div>
      <div class="function-btn">
        <img class="function-icon" src="../assets/images/image.png" alt="" />
        <div class="function-content-box">
          <div class="function-title">我是你专属的AI智能图书检索助手</div>
          <el-button :color="screenWidth > 375 ? '#6e3d3c' : '#af8c56'" style="padding: 8px 20px"
            :size="screenWidth > 375 ? 'large' : ''" round @click="handleChat">
            <span class="btn-text">AI找书</span>
            <img style="margin-left: 5px" src="../assets/images/zuo.png" alt="" />
          </el-button>
        </div>
      </div>
    </div>
 
  </div>
</template>
 
<script setup lang="ts">
import { ref } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
 
const screenWidth = ref(window.innerWidth)
 
const handleChat = () => {
  router.push('/start')
}
</script>
 
<style scoped lang="less">
@media screen and (max-width: 750px) {
  .home-box {
    width: 100%;
    height: 100%;
    background-image: url('@/assets/images/beijing1.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    position: relative;
 
    .logo {
      position: absolute;
      height: 32px;
      width: 120px;
      bottom: 0;
      left: 0;
      right: 0;
      height: auto;
      margin: auto;
      margin-bottom: 10px;
 
      img {
        width: 100%;
      }
    }
 
    .main{
      height: calc(100% - 100px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
     
    }
 
    .title {
      width: 45px;
      height: auto;
      margin: auto;
      text-align: center;
      font-size: 45px;
      font-family: 'FZZHAOM';
      font-weight: 400;
      color: #fff;
      line-height: 38px;
    }
 
    .function-btn {
      margin: auto;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
 
      .function-icon {
        width: 75px;
        margin-right: 10px;
      }
 
      .function-content-box {
        .function-title {
          margin-bottom: 15px;
          font-size: 16px;
          font-weight: 700;
          color: #764418;
        }
 
        .btn-text {
          color: #fff;
        }
      }
    }
  }
}
 
@media screen and (min-width: 750px) {
  .home-box {
    width: 100%;
    height: 100%;
    background-image: url('@/assets/images/beijing1.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
 
    .logo {
      width: 1200px;
      min-width: 1200px;
      margin-bottom: 60px;
    }
 
    .title {
      width: 100%;
      text-align: center;
      font-size: 100px;
      font-family: 'FZZHAOM';
      font-weight: 400;
      color: #fff;
      letter-spacing: 5px;
      min-width: 1200px;
    }
 
    .function-btn {
      width: 100%;
      min-width: 1200px;
      display: flex;
      justify-content: center;
      align-items: center;
 
      .function-icon {
        width: 170px;
        height: 170px;
        margin-right: 50px;
      }
 
      .function-content-box {
        height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        margin-left: 5px;
 
        .function-title {
          font-size: 35px;
          color: #77471f;
        }
 
        .btn-text {
          margin-right: 5px;
          font-size: 18px;
          font-weight: 700px;
        }
      }
    }
  }
}
</style>