<template>
  <view class="content">
    <Header>
      <template #title>ACC <span style="padding:0 12rpx;">|</span>连接钱包</template>
    </Header>
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />
    <image class="logo" src="/static/logo.png" />

    <view class="text-area">
      <text class="title">{{ title }}</text>
    </view>
  </view>
</template>

<script setup>
import { ref, onMounted } from "vue";
import Header from '@/components/Header'
const title = ref("Hello");
const address = ref('');
import {getWalletAddress} from "@/utils/utils";
onMounted(async () => {
  const addr = await getWalletAddress();
  if (addr) {
    console.log(addr)
    address.value = `${addr.slice(0, 4)}...${addr.slice(-4)}`;
  } else {
    address.value = '未连接钱包';
  }
});
</script>

<style lang="scss" scoped>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
}

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

.text-area {
  display: flex;
  justify-content: center;
}

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