Skip to content

Commit e03723f

Browse files
MolibDenchik42Alentev Denis
andauthored
UserID add (#337)
## Изменения Добавлен id пользователя в Профиль ## Check-List <!-- После сохранения у следующих полей появятся галочки, которые нужно проставить мышкой --> - [x] Вы проверили свой код перед отправкой запроса? - [x] Вы написали тесты к реализованным функциям? - [x] Вы не забыли применить форматирование `black` и `isort` для _Back-End_ или `Prettier` для _Front-End_? Co-authored-by: Alentev Denis <alente.dv20@physics.msu.ru>
1 parent 77c82ce commit e03723f

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/views/profile/ProfileView.vue

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ onMounted(async () => {
126126
<span class="user-name">
127127
{{ fullName }}
128128
</span>
129+
<span v-if="profileStore.id" class="user-id"> id: {{ profileStore.id }}</span>
130+
129131
<section v-if="profileStore.id !== null" class="section">
130132
<h2>Достижения</h2>
131133
<AchievementsSlider :user-id="profileStore.id" />
@@ -223,7 +225,7 @@ onMounted(async () => {
223225
}
224226
225227
.user-name {
226-
margin-bottom: 32px;
228+
margin-bottom: 8px;
227229
text-align: center;
228230
display: inline-block;
229231
align-self: center;
@@ -235,6 +237,16 @@ onMounted(async () => {
235237
letter-spacing: 0.1px;
236238
}
237239
240+
.user-id {
241+
margin-bottom: 32px;
242+
text-align: center;
243+
align-self: center;
244+
color: var(--m-3-sys-light-outline, #79747e);
245+
font-size: 20px;
246+
font-weight: 500;
247+
letter-spacing: 0.5px;
248+
}
249+
238250
.info {
239251
margin-bottom: 30px;
240252
margin-top: 50px;

0 commit comments

Comments
 (0)