-
Профиль пользователя {{ loggedUserName }}
+
Профиль пользователя {{ loggedUserName }}
{{ profileData.username }}
{{ profileData.email }}
Имя: {{ profileData.name }}
@@ -72,13 +66,12 @@ onMounted(async() => {
\ No newline at end of file
diff --git a/src/views/LandingPages/Profile/AllProfiles.vue b/src/views/LandingPages/Profile/AllProfiles.vue
index 3b370ad..cc9970d 100644
--- a/src/views/LandingPages/Profile/AllProfiles.vue
+++ b/src/views/LandingPages/Profile/AllProfiles.vue
@@ -36,9 +36,10 @@ onMounted(() => {
@@ -87,10 +88,13 @@ onMounted(() => {
}
.result-header {
color: #fff;
- background-color: #333;
+ background-color:#3d9132;
padding: 10px;
text-align: center;
- margin-top: 20px;
+ margin-top: 25px;
+ margin-left: 10%;
+ width: 80%;
+border-radius: 15px;
}
.result-grid {
@@ -102,12 +106,36 @@ onMounted(() => {
.result-card {
display: flex;
flex-direction: column;
- background-color: rgba(255, 255, 255, 0.5);
+ background-color: #3d913248;
padding: 10px;
margin: 10px;
border-radius: 10px;
width: calc(100% / 3 - 20px);
box-sizing: border-box;
+ box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
+ align-items: center;
+}
+.profile-name{
+ padding-bottom: 15px;
+}
+h3{
+ color:rgb(87, 87, 87);
+}
+a{
+ background-color: #3d9132;
+ border-radius: 10px;
+ text-align: center;
+ color: rgb(255, 255, 255);
+ font-weight: 500;
+ width: 50%;
+ margin-bottom: 10px;
+}
+a:hover{
+ background-color: #6ac55e;
+ color: rgb(61, 61, 61);
+}
+p{
+ font-weight: 500;
}
@media screen and (max-width: 992px) {
diff --git a/src/views/LandingPages/Profile/Profile.vue b/src/views/LandingPages/Profile/Profile.vue
index e9f648a..0ae6379 100644
--- a/src/views/LandingPages/Profile/Profile.vue
+++ b/src/views/LandingPages/Profile/Profile.vue
@@ -16,11 +16,24 @@ onMounted(async() => {
const getProfile = async () => {
const profileDataRecieved = await axios.get(`http://somebodyhire.me/api/profile/${profileId.value}/`);
- profileData.value = profileDataRecieved.data;
+ profileData.value = processProfileData(profileDataRecieved.data);
};
-
-
+const processProfileData = (data) => {
+ return {
+ ...data,
+ name: data.name || '🤷 No Name Provided',
+ location: data.location || '🌍 No Location Provided',
+ short_intro: data.short_intro || '📝 No Short Intro Provided',
+ bio: data.bio || '📘 No Bio Provided',
+ profile_image: data.profile_image || '📷 No Image Provided',
+ social_github: data.social_github || '👨💻 No Github Provided',
+ social_twitter: data.social_twitter || '🐦 No Twitter Provided',
+ social_vk: data.social_vk || '🔵 No VK Provided',
+ social_youtube: data.social_youtube || '▶️ No YouTube Provided',
+ social_website: data.social_website || '🌐 No Website Provided',
+ };
+};
@@ -29,7 +42,7 @@ const getProfile = async () => {
-
{{ project.title }} with ID {{ project.id }}
+
{{ project.title }} with ID {{ project.id }}
{{ project.description }}
Страница проекта
@@ -86,10 +86,13 @@ onMounted(() => {
}
.result-header {
color: #fff;
- background-color: #333;
+ background-color:#3d9132;
padding: 10px;
text-align: center;
- margin-top: 20px;
+ margin-top: 25px;
+ margin-left: 10%;
+ width: 80%;
+border-radius: 15px;
}
.result-grid {
@@ -101,12 +104,37 @@ onMounted(() => {
.result-card {
display: flex;
flex-direction: column;
- background-color: rgba(255, 255, 255, 0.5);
+ background-color: #3d913248;
padding: 10px;
margin: 10px;
border-radius: 10px;
width: calc(100% / 3 - 20px);
box-sizing: border-box;
+ box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
+ align-items: center;
+}
+.project-title{
+ padding-bottom: 25px;
+}
+
+h3{
+ color:rgb(87, 87, 87);
+}
+a{
+ background-color: #3d9132;
+ border-radius: 10px;
+ text-align: center;
+ color: rgb(255, 255, 255);
+ font-weight: 500;
+ width: 50%;
+ margin-bottom: 10px;
+}
+a:hover{
+ background-color: #6ac55e;
+ color: rgb(61, 61, 61);
+}
+p{
+ font-weight: 500;
}
@media screen and (max-width: 992px) {
diff --git a/src/views/Presentation/Sections/PresentationSearch.vue b/src/views/Presentation/Sections/PresentationSearch.vue
index f958c15..0313bfc 100644
--- a/src/views/Presentation/Sections/PresentationSearch.vue
+++ b/src/views/Presentation/Sections/PresentationSearch.vue
@@ -149,12 +149,18 @@ const search = async () => {
.result-card {
width: calc(100% / 2 - 20px);
}
+ .searchButton{
+ width: 20%;
+ }
}
@media screen and (max-width: 600px) {
.result-card {
width: 100%;
}
+ .searchButton{
+ width: 20%;
+ }
}