• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16import { Style } from '@ohos/common'
17
18@Preview
19@Component
20export default struct IndexEnd {
21  build() {
22    Column() {
23      Row() {
24        Image($r('app.media.icon_china_weather'))
25          .width(16)
26          .height(16)
27          .objectFit(ImageFit.Contain)
28          .opacity(0.6)
29        Text($r('app.string.china_weather'))
30          .fontColor('#99FFFFFF')
31          .fontSize(12)
32      }
33
34      Text($r('app.string.weather_version'))
35        .fontColor('#99FFFFFF')
36        .fontSize(12)
37        .margin({ top: 8 })
38      Text($r('app.string.weather_statement'))
39        .fontColor('#FFFFFF')
40        .fontSize(12)
41        .margin({ top: 4 })
42      Text($r('app.string.weather_copyright'))
43        .fontColor('#99FFFFFF')
44        .fontSize(12)
45        .margin({ top: 4 })
46    }
47    .width('100%')
48    .padding({ top: 40, bottom: 50 })
49  }
50}