1/* 2 * Copyright (c) 2023 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 16@Entry 17@Component 18struct Default { 19 build() { 20 Column() { 21 Row() { 22 Text($r('app.string.standard_default_title')) 23 .fontSize(24) 24 .fontWeight(FontWeight.Bold) 25 .textAlign(TextAlign.Start) 26 .margin({ top: 12, bottom: 11, right: 24, left: 24 }) 27 } 28 .width('100%') 29 .height(56) 30 .justifyContent(FlexAlign.Start) 31 32 Image($r('app.media.pic_empty')) 33 .width(120) 34 .height(120) 35 .margin({ top: 224 }) 36 37 Text($r('app.string.no_content')) 38 .fontSize(14) 39 .margin({ top: 8, bottom: 317, right: 152, left: 152 }) 40 .fontColor($r('app.color.text_color')) 41 .opacity(0.4) 42 } 43 .width('100%') 44 .height('100%') 45 .backgroundColor($r('app.color.backGrounding')) 46 } 47}