• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024 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 { router } from '@kit.ArkUI';
17
18@Entry
19@Component
20struct ReturnMainPage {
21  @State inputTxt: string = '';
22
23  build() {
24    Column() {
25      Column() {
26        Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
27          Image($r('app.media.arrow'))
28            .height(44)
29            .width(44)
30            .onClick(() => {
31              router.back();
32            })
33          Text($r('app.string.scenarioization'))
34            .fontWeight(500)
35            .fontFamily('HarmonyHeiTi-Medium')
36            .fontSize(22)
37            .margin({ left: '2.4%' })
38        }.margin({ top: '2.8%', left: '4.9%' })
39
40        Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) {
41          Image($r('app.media.style'))
42            .height('448px')
43            .width('448px')
44        }.margin({ top: '19.8%' })
45      }.height('70%')
46
47      Column() {
48        Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) {
49          Column() {
50            Row() {
51              Button($r('app.string.returnMainPage'))
52                .type(ButtonType.Normal)
53                .borderRadius(25)
54                .fontColor($r('app.color.cancelBtnColor'))
55                .backgroundColor($r('app.color.mainInterface'))
56                .fontSize(16)
57                .fontWeight(400)
58                .height('20.8%')
59                .width('38.2%')
60                .onClick(() => {
61                  router.back();
62                })
63            }
64          }
65        }.margin({ bottom: '44px' })
66      }
67      .height('30%')
68      .justifyContent(FlexAlign.End)
69    }
70    .backgroundColor($r('app.color.pageBackColor')).height('100%')
71  }
72}