import { View } from '@tarojs/components';
import { useLoad } from '@tarojs/taro';
import logoSrc from '/assets/icons/logo.png';

import styles from './index.module.less';

export default function HeaderBar() {

  useLoad(() => {
    console.log('Page loaded.')
  });

  return (
    <View className={styles.container}>
      <View className={styles.row}>
        <View className={styles.title}>
          Hi Weaith
        </View>
        <View className={styles.subtitle}>
          欢迎您来到融易诚
        </View>
      </View>
      <View className={styles.row2}>
        <View className={styles.item}>
          <img src={logoSrc} className={styles.logo} alt='logo' />
          <View className={styles.title}>
            融易诚
          </View>
        </View>
      </View>
    </View>
  )
}
