-
Профиль пользователя {{ loggedUserName }}
+
Профиль пользователя {{ loggedUserName }}
{{ profileData.username }}
{{ profileData.email }}
Имя: {{ profileData.name }}
@@ -71,13 +65,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%;
+ }
}
From 46fcf68f246be72fcd393747543456eb1a005f11 Mon Sep 17 00:00:00 2001
From: irchen4 <81490453+irchen4@users.noreply.github.com>
Date: Mon, 22 May 2023 21:43:38 +0300
Subject: [PATCH 2/3] =?UTF-8?q?=D0=BD=D0=B0=D0=B2=D0=B1=D0=B0=D1=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/examples/navbars/NavbarDefault.vue | 43 ++++++++++++++++++--------
1 file changed, 30 insertions(+), 13 deletions(-)
diff --git a/src/examples/navbars/NavbarDefault.vue b/src/examples/navbars/NavbarDefault.vue
index 38403b5..e0c616c 100644
--- a/src/examples/navbars/NavbarDefault.vue
+++ b/src/examples/navbars/NavbarDefault.vue
@@ -170,15 +170,15 @@ watch(
data-bs-toggle="dropdown"
aria-expanded="false"
>
-
+ >
Пользователи
-
+ />