import router from '@ohos.router';

@Entry
@Component
struct Index {
  build() {
    Column() {
      Text('Welcome to ClassMG')
        .fontSize(24)
        .fontWeight(FontWeight.Bold)
        .margin({ bottom: 20 })
      
      Text('This is the default index page')
        .fontSize(16)
        .margin({ bottom: 40 })
      
      Button('Go to Login')
        .onClick(() => {
          router.pushUrl({ url: 'pages/login' });
        })
    }
    .width('100%')
    .height('100%')
    .justifyContent(FlexAlign.Center)
    .alignItems(HorizontalAlign.Center)
  }
}

export default function DefaultIndex() {
  return;
} 