<!--
 * @Author: wjc
 * @Date: 2019-08-22 19:41:20
 * @LastEditors: wjc
 * @LastEditTime: 2024-07-03 11:27:15
 * @Description: 
-->
<template>
  <view class="content">
    <image class="logo" src="/static/logo.png"></image>
    <view class="text-area">
      <text class="title">{{ title }}</text>
    </view>
    <view :class="`i-custom-${icon}`" class="wh-32px text-32px"></view>
    <view>
      <view>svg icon</view>
      <MIcon :name="icon" :size="16"></MIcon>
    </view>
    <u-button type="primary" text="确定"></u-button>
    <u-button @click="onTest">前往 Auth 页面</u-button>
  </view>
</template>

<script setup lang="ts">
  const title = ref('自定义图标')
  const icon = ref('anl')

  const onTest = () => {
    uni.navigateTo({
      url: '/pages/test/index',
    })
  }
</script>

<style lang="scss">
  .content {
    display: flex;
    flex-direction: column;
    grid-gap: 8px;
    align-items: center;
    justify-content: center;
  }

  .logo {
    width: 200rpx;
    height: 200rpx;
    margin-top: 200rpx;
    margin-right: auto;
    margin-bottom: 50rpx;
    margin-left: auto;
  }

  .title {
    font-size: 36rpx;
    color: #8f8f94;
  }
</style>
