From 952c2301486e1a038fba70d5737a4cc3f331a172 Mon Sep 17 00:00:00 2001
From: Dawn1Ocean <1785590531@qq.com>
Date: Wed, 20 Mar 2024 01:45:22 +0800
Subject: [PATCH] add about page structure
---
src/pages/user/about/about.tsx | 59 ++++++++++++++++++++++++++++++++--
src/plain-text/AboutPage.ts | 45 ++++++++++++++++++++++++--
2 files changed, 99 insertions(+), 5 deletions(-)
diff --git a/src/pages/user/about/about.tsx b/src/pages/user/about/about.tsx
index 81b9fba..390f20a 100644
--- a/src/pages/user/about/about.tsx
+++ b/src/pages/user/about/about.tsx
@@ -1,5 +1,5 @@
import { Component, ReactNode } from 'react';
-import { View } from '@tarojs/components';
+import { Image, View } from '@tarojs/components';
import Taro from '@tarojs/taro';
import pt from '@/plain-text';
import './about.scss';
@@ -11,6 +11,61 @@ export default class AboutPage extends Component {
});
}
render(): ReactNode {
- return ;
+ return (
+
+
+
+
+
+
+
+ {pt.get().aboutPage.dean.nickname}
+
+
+ {pt.get().aboutPage.dean.username}
+
+
+ {pt.get().aboutPage.dean.status}
+
+
+ {pt.get().aboutPage.dean.note}
+
+
+
+
+
+
+
+
+
+ {pt.get().aboutPage.fracher.nickname}
+
+
+ {pt.get().aboutPage.fracher.username}
+
+
+ {pt.get().aboutPage.fracher.status}
+
+
+ {pt.get().aboutPage.fracher.note}
+
+
+
+
+ );
}
}
diff --git a/src/plain-text/AboutPage.ts b/src/plain-text/AboutPage.ts
index 2fa0651..191adcc 100644
--- a/src/plain-text/AboutPage.ts
+++ b/src/plain-text/AboutPage.ts
@@ -1,5 +1,44 @@
-export interface AboutPageText {}
+export interface AboutPageText {
+ dean: {
+ nickname: string;
+ username: string;
+ status: string;
+ note: string;
+ };
+ fracher: {
+ nickname: string;
+ username: string;
+ status: string;
+ note: string;
+ };
+}
-export const aboutPageZhCn: AboutPageText = {};
+export const aboutPageZhCn: AboutPageText = {
+ dean: {
+ nickname: '晓洋',
+ username: '@ Dawn_Ocean',
+ status: 'Eta & Tea 总设计',
+ note: '摸鱼与开发叠加态',
+ },
+ fracher: {
+ nickname: '宇航员',
+ username: '@ FrozenArcher',
+ status: 'Ate 总设计, Eta 合作贡献者',
+ note: '6~',
+ },
+};
-export const aboutPageEnUs: AboutPageText = {};
+export const aboutPageEnUs: AboutPageText = {
+ dean: {
+ nickname: 'Dean Ma',
+ username: '@ Dawn_Ocean',
+ status: "Eta & Tea's General Designer",
+ note: 'Struggling between developing & laziness',
+ },
+ fracher: {
+ nickname: 'Fracher',
+ username: '@ FrozenArcher',
+ status: "Ate's General Designer, Eta's Contributor",
+ note: '6~',
+ },
+};