19b256929Sopenharmony_ci/*
29b256929Sopenharmony_ci * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
39b256929Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
49b256929Sopenharmony_ci * you may not use this file except in compliance with the License.
59b256929Sopenharmony_ci * You may obtain a copy of the License at
69b256929Sopenharmony_ci *
79b256929Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
89b256929Sopenharmony_ci *
99b256929Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
109b256929Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
119b256929Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
129b256929Sopenharmony_ci * See the License for the specific language governing permissions and
139b256929Sopenharmony_ci * limitations under the License.
149b256929Sopenharmony_ci */
159b256929Sopenharmony_ci
169b256929Sopenharmony_ci@Entry
179b256929Sopenharmony_ci@Component
189b256929Sopenharmony_cistruct Index {
199b256929Sopenharmony_ci  @State message: string = 'Hello World'
209b256929Sopenharmony_ci
219b256929Sopenharmony_ci  build() {
229b256929Sopenharmony_ci    Row() {
239b256929Sopenharmony_ci      Column() {
249b256929Sopenharmony_ci        Text(this.message)
259b256929Sopenharmony_ci          .fontSize(50)
269b256929Sopenharmony_ci          .fontWeight(FontWeight.Bold)
279b256929Sopenharmony_ci      }
289b256929Sopenharmony_ci      .width('100%')
299b256929Sopenharmony_ci    }
309b256929Sopenharmony_ci    .height('100%')
319b256929Sopenharmony_ci  }
329b256929Sopenharmony_ci}