Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
85fb532
Инициализация Vue на странице профиля
semen1032 Jul 11, 2020
d6f394a
Добавлены аватар и социальные сети
semen1032 Jul 12, 2020
bfd7270
Добавлен блок рейтинга
semen1032 Jul 13, 2020
aa925c4
Добавлены компоненты imgText и ProfileDrafts
semen1032 Jul 29, 2020
6244e60
В компоненте Profile описан компонент черновиков
semen1032 Jul 29, 2020
00c3a3c
Исправлены отступы в компоненте соцсетей
semen1032 Jul 29, 2020
cb4944e
Написан компонент ролей пользователя в профиле
semen1032 Jul 30, 2020
2b61f46
Добавлены компонент ролей, информация о пользователе
semen1032 Jul 30, 2020
f875791
Написан компонент ProfilePersonal
semen1032 Jul 30, 2020
2d7b5c8
В профиль встроен компонент ProfilePersonal, исправлены мелкие косяки
semen1032 Jul 30, 2020
709ac72
Добавлено описание некоторых компонентов, связанных с профилем
semen1032 Aug 2, 2020
19a2c73
Написан компонент ProfileStatistics
semen1032 Aug 2, 2020
f0afb9e
Компонент ProfileStatistics внедрен в компонент Profile
semen1032 Aug 2, 2020
1b2e967
Написана логика переключения между профилями
semen1032 Aug 3, 2020
681736e
Добавлен компонент SeteratorButton
semen1032 Aug 4, 2020
a09ea1c
В профиль модератора добавлена кнопка 'Модерировать'
semen1032 Aug 4, 2020
74d98ec
Доработан профиль модератора, мелкие фиксы
semen1032 Aug 5, 2020
b82ce4a
Фикс отступов компонента SocialIcons
semen1032 Aug 5, 2020
bb415be
Фиксы неймингов
semen1032 Aug 5, 2020
f10e3b7
Доработан компонент ProfileRoles
semen1032 Aug 5, 2020
6d094ad
Добавлен профиль Жюри, доработан алгоритм переключения ролей
semen1032 Aug 5, 2020
1418d3a
Добавлен профиль организатора
semen1032 Aug 6, 2020
9b0dec1
Фикс нейминга организатора
semen1032 Aug 6, 2020
1dcd489
Сделано изменение аватара пользователя
semen1032 Aug 12, 2020
0423858
Добавлено редактирование профиля
semen1032 Aug 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Seterator/Views/Profile/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ViewData["Title"] = $"{Model.Name ?? Model.Login}";
}

<div id="profile-component"></div>
<div class="profile profile_display_grid container">
<div class="profile__leftSide">
<div class="avatar avatar_theme_dark">
Expand Down
41 changes: 41 additions & 0 deletions Seterator/wwwroot/components/Other/ImgText.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Компонент представляет собой средство для
// отображения иконки рядом с текстом
// Параметры:
// img - ссылка на изображение
// text - отображаемый текст
// imgColor - цвет иконки


<template>
<div class="imgTextq" :style="{ fill: imgColor }">
<div class="imgTextq__img">
<img class="imgSvg" :src="img">
</div>
<span class="imgTextq__text">{{text}}</span>
</div>
</template>

<script>
export default {
props: [
'img',
'text',
'imgColor'
]
}
</script>

<style scoped>
.imgTextq {
display: grid;
grid-template-columns: 12px 1fr;
}

.imgTextq__img {
width: 12px;
}

.imgTextq__text {
margin-left: 5px;
}
</style>
72 changes: 72 additions & 0 deletions Seterator/wwwroot/components/Other/SeteratorButton.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<template>
<a class="seteratorButton"
:href="propHref"
:class="'seteratorButton_color_' + propColor"
>
{{ propText }}
</a>
</template>

<script>
export default {
props: {
propHref: {
type: String
},
propText: {
type: String
},
propColor: {
type: String
}
}
}
</script>

<style scoped>
.seteratorButton {
display: block;
margin: 0;
padding: 15px;
width: 100%;

font-weight: 600;
text-align: center;
border: 2px solid transparent;
border-radius: 40px;

cursor: pointer;
}

.seteratorButton_color_white {
background-color: rgb(255,255,255);
color: rgb(0, 0, 0);
border: 2px solid rgb(0, 0, 0);
box-sizing: border-box;
}

.seteratorButton_color_white:hover {
background-color: rgb(0, 0, 0);
color: rgb(255,255,255) !important;
}

.seteratorButton_color_orange {
background-color: rgb(255, 82, 25);
color: rgb(255,255,255) !important;
}

.seteratorButton_color_orange:hover,
.seteratorButton_color_orangeShadow:hover {
background-color: rgb(204, 66, 20);
color: rgb(255,255,255);
}

.seteratorButton_color_orangeShadow {
background-color: rgb(255, 82, 25);
color: rgb(255,255,255) !important;

-webkit-box-shadow: 0px 36px 68px -13px rgba(255,82,25,1);
-moz-box-shadow: 0px 36px 68px -13px rgba(255,82,25,1);
box-shadow: 0px 36px 68px -13px rgba(255,82,25,1);
}
</style>
56 changes: 56 additions & 0 deletions Seterator/wwwroot/components/Other/SocialIcons.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<template>
<ul class="socialIcons__wrap">
<li class="socialIcons__icon" v-for="socialIcon in socialIcons" :key="socialIcon.name">
<a :href="socialIcon.href" target="_blank" :style="{ fill: color }"><img class="aqua imgSvg" :src="pickImage(socialIcon.name)"></a>
</li>
</ul>
</template>

<script>
export default {
props: [
'socialIcons',
'color'
],
methods: {
pickImage(name) {
switch (name) {
case 'vk':
return '/img/Social icons/Orange/vk.svg';
break;
case 'telegram':
return '/img/Social icons/Orange/telegram.svg';
break;
case 'facebook':
return '/img/Social icons/Orange/facebook.svg';
break;
case 'twitter':
return '/img/Social icons/Orange/twitter.svg';
break;
default:
return '/img/icons/web.svg';
break;
}
}
}
}
</script>

<style scoped>
.socialIcons__wrap {
margin: 30px 10px 0 10px;
padding: 0;
display: flex;
flex-wrap: nowrap;
justify-content: space-evenly;
}

.socialIcons__icon {
list-style: none;
width: 20px;
}

.socialIcons__icon:hover {
opacity: 50%;
}
</style>
Loading