From b00fa61f042f90aaee4d522bc4beb108480ad916 Mon Sep 17 00:00:00 2001
From: Nick Kosarev
Date: Mon, 26 Aug 2024 18:04:42 +0000
Subject: [PATCH] chore: characters page
---
apps/website/app/app.vue | 1 +
.../website/app/assets/img/icons/coin/128.png | Bin 0 -> 691 bytes
.../website/app/assets/img/icons/coin/256.png | Bin 0 -> 1276 bytes
apps/website/app/assets/img/icons/coin/32.png | Bin 0 -> 340 bytes
apps/website/app/assets/img/icons/coin/64.png | Bin 0 -> 475 bytes
apps/website/app/components/MainFooter.vue | 103 +++++++
apps/website/app/components/MenuDesktop.vue | 20 +-
.../website/app/components/MenuSmartphone.vue | 12 +-
apps/website/app/pages/about.vue | 16 -
apps/website/app/pages/character.vue | 290 ++++++++++++++++++
apps/website/app/pages/index.vue | 5 +-
.../website/server/api/character/index.get.ts | 7 +-
apps/website/server/api/profile/index.get.ts | 5 +-
.../api/profile/userName/[userName].get.ts | 7 +-
14 files changed, 417 insertions(+), 49 deletions(-)
create mode 100644 apps/website/app/assets/img/icons/coin/128.png
create mode 100644 apps/website/app/assets/img/icons/coin/256.png
create mode 100644 apps/website/app/assets/img/icons/coin/32.png
create mode 100644 apps/website/app/assets/img/icons/coin/64.png
create mode 100644 apps/website/app/components/MainFooter.vue
delete mode 100644 apps/website/app/pages/about.vue
create mode 100644 apps/website/app/pages/character.vue
diff --git a/apps/website/app/app.vue b/apps/website/app/app.vue
index 54064721..4da13139 100644
--- a/apps/website/app/app.vue
+++ b/apps/website/app/app.vue
@@ -3,6 +3,7 @@
+
diff --git a/apps/website/app/assets/img/icons/coin/128.png b/apps/website/app/assets/img/icons/coin/128.png
new file mode 100644
index 0000000000000000000000000000000000000000..ef44ac0d1ce5573e9a6473d68a3a8ecec4314f2d
GIT binary patch
literal 691
zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSjKx9jP7LeL$-HD>V9ND$aSW-L
z^Y)IR7jvM9!$rxh-FxS@PH;M%?>Lp_F%+;dq$3ko?bQu}s{7(gc3M`ysBY20bk7&L
z1>a=;8l1dqKdE-#|9$S5o;L}ybIpeF0T07D
z1_H#T|NImF?)m-VKkFutzR&Id{{8PzM-6vLh8X$UgBd$-OBKB*u3awO&7!3E2*1lWQN8+o6pEjo6j0S$^JoIXC`<
ztA6uk^VL6_Z!cf`b^o3k!&&oxWnH}5=*r2^LL}-v=ag^u`SYLle)-;K-{tN5&wc*?
z>GAi)Un95AulrkVvj5v}mNyIvK18FO-QPa{IbZ)HZHry*b9eQ{KeygjPhe+AWFi{f
zUTptg!ZzXU^Pl(k|J?B6*BKkz>P;_xW$*Vtz{hZig=n;meR_EJyyxX|^Hs0D7v8|!
zV8BQ$+Hm&^zrXaI)8{6m!wd#u(TyK=4O^psSN`cf
zyXpDO>HmJt+(?o$j=pD(_+9zs_2!E|9^Kd9|K)xD+xh=*k>mv89Sc!;Bk!g7j9ve}
zl$rehTzixiXnUw&`av1Z^9rWv}e`-G6jzkkn{pWE|HKW^{8`S+HbBrOrN@BeRBb>Q&7e~Cu_zkWV^@z;hWFKfBp|NE70
zQvd5sh4swsB*n)+coZrD2i`ThDoHc|gipB7(SNm6)A-)A@23e2+++kuA6
f-$at%{xjU?pLj-OAp@{{V_@)f^>bP0l+XkKC6K|c
literal 0
HcmV?d00001
diff --git a/apps/website/app/assets/img/icons/coin/32.png b/apps/website/app/assets/img/icons/coin/32.png
new file mode 100644
index 0000000000000000000000000000000000000000..3da0c5abfc30caa1b7e90c8ffe6268f183fc1618
GIT binary patch
literal 340
zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^T9MsHTqpO{AME$%==ff)uIy+Pn?D9`?FFVmB#n$$phi8X#(gA0N!=VQA
zSGQ#c9&M^9^koBrwppIpk`fXI&Pg9y81&}fxBlLt(>%53Nx+XCPDu}(8SXxR@=HQo
zK}3jIj_E^DL&W^UH7uV!|9+cWarN*SSAI?j2^+-*?gyU=Z4WE&`E;b|pg7Zxnk^SN
zLgm;lT%9PT1k|>e@4!rMv3+~a9RPw0FJ1y^2aCSKr^QYQ2b>eGFiK=H?0wU=l=X|n
zF;%~;PKyVM4HuP?!k#Ydblosv*WOQ3%*=-qvIG}$2Ux2V{FGs1i|07NuvF3U#B&3K
h3TFnkw%Yd+44ZheK6aK@odyOIgQu&X%Q~loCIA{HhF$;w
literal 0
HcmV?d00001
diff --git a/apps/website/app/assets/img/icons/coin/64.png b/apps/website/app/assets/img/icons/coin/64.png
new file mode 100644
index 0000000000000000000000000000000000000000..ebfe6273a349fa3ebb8a56959ad561671cf4ba60
GIT binary patch
literal 475
zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D%zr+T_LhE&XX
zJA0!Sv!g)U_nx`m%EX+wbUzCvHp%i6?c0{IdCtyx!rHV%=#TW
zbC#zuFIyT?wZ>MlhII+!76vI(eWTBhS8slJCFj7`if%;}y}
zKIiV;i+%0AH_Cqk)R5$R!c!uQ?X>^S%)P5@awyyZTr?P!E0WxsXw_!`75{f^F)@Pm#T!dnSNgJmWmq|LyY<&hAlxD*QaxdY5{Iu|8)!
rV
+
+
+
+
+
+
diff --git a/apps/website/app/components/MenuDesktop.vue b/apps/website/app/components/MenuDesktop.vue
index db2d0b6c..0a0d4c85 100644
--- a/apps/website/app/components/MenuDesktop.vue
+++ b/apps/website/app/components/MenuDesktop.vue
@@ -6,11 +6,6 @@
Главная
-
-
- About
-
-
Персонажи
@@ -31,12 +26,11 @@
Купон
-
+
+
+ Мой профиль
+
+
@@ -47,6 +41,10 @@
+
+
diff --git a/apps/website/app/pages/character.vue b/apps/website/app/pages/character.vue
new file mode 100644
index 00000000..2e7081d4
--- /dev/null
+++ b/apps/website/app/pages/character.vue
@@ -0,0 +1,290 @@
+
+
+ Игровые персонажи
+ Игроки "прокачивают" персонажей, путем написания постов. Это могут быть истории или новая информация о характере и судьбе.
+
+
+
+
+
+
+
+ {{ profile?.coins }}
+
+
+ {{ pluralizationRu(profile?.coins ?? 0, [
+ 'Монета',
+ 'Монеты',
+ 'Монет',
+ ]) }}
+
+
+
+
+ Войди на сайт
+
+
+
+
+
Купить монеты
+
+
+
+
+ Коллекция персонажей 2024
+
+
+
+
+
+ Персонажи, требующие доработки
+
+
+
+
+
+
+
+
diff --git a/apps/website/app/pages/index.vue b/apps/website/app/pages/index.vue
index 237d5f71..483550f0 100644
--- a/apps/website/app/pages/index.vue
+++ b/apps/website/app/pages/index.vue
@@ -17,7 +17,7 @@
За все время {{ pluralizationRu(profileCount, ['создан', 'создано', 'создано']) }}
{{ profileCount }} {{ pluralizationRu(profileCount, ['профиль', 'профиля', 'профилей']) }}.
Присоединяйся
- на активном стриме!
+ на активном стриме!
@@ -34,7 +34,8 @@ useHead({
],
})
-const profileCount = 1
+const { data } = await useFetch('/api/profile')
+const profileCount = data.value?.count ?? 0