From e0435c3c1ef6b30c742a70a11e6ed84c13f1b361 Mon Sep 17 00:00:00 2001 From: Johndiddles Date: Tue, 17 Dec 2024 21:32:38 +0100 Subject: [PATCH 1/7] add user profile page --- pages/community/Profile/index.vue | 169 ++++++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 pages/community/Profile/index.vue diff --git a/pages/community/Profile/index.vue b/pages/community/Profile/index.vue new file mode 100644 index 0000000..f01346f --- /dev/null +++ b/pages/community/Profile/index.vue @@ -0,0 +1,169 @@ + + + + + From 3487c108fd1190fa0640d3c63a50b2b5d00efa79 Mon Sep 17 00:00:00 2001 From: Johndiddles Date: Wed, 18 Dec 2024 09:52:40 +0100 Subject: [PATCH 2/7] add edit user personal information and socials modals --- components/profile/EditModalToggler.vue | 31 +++++ .../profile/EditPersonalInformationModal.vue | 110 +++++++++++++++++ components/profile/EditSocialsModal.vue | 115 ++++++++++++++++++ components/profile/InputField.vue | 54 ++++++++ pages/community/Profile/index.vue | 77 ++++-------- 5 files changed, 332 insertions(+), 55 deletions(-) create mode 100644 components/profile/EditModalToggler.vue create mode 100644 components/profile/EditPersonalInformationModal.vue create mode 100644 components/profile/EditSocialsModal.vue create mode 100644 components/profile/InputField.vue diff --git a/components/profile/EditModalToggler.vue b/components/profile/EditModalToggler.vue new file mode 100644 index 0000000..2e3db39 --- /dev/null +++ b/components/profile/EditModalToggler.vue @@ -0,0 +1,31 @@ + + + diff --git a/components/profile/EditPersonalInformationModal.vue b/components/profile/EditPersonalInformationModal.vue new file mode 100644 index 0000000..a681dd4 --- /dev/null +++ b/components/profile/EditPersonalInformationModal.vue @@ -0,0 +1,110 @@ + + + diff --git a/components/profile/EditSocialsModal.vue b/components/profile/EditSocialsModal.vue new file mode 100644 index 0000000..641a28d --- /dev/null +++ b/components/profile/EditSocialsModal.vue @@ -0,0 +1,115 @@ + + + diff --git a/components/profile/InputField.vue b/components/profile/InputField.vue new file mode 100644 index 0000000..5ce5346 --- /dev/null +++ b/components/profile/InputField.vue @@ -0,0 +1,54 @@ + + diff --git a/pages/community/Profile/index.vue b/pages/community/Profile/index.vue index f01346f..161b592 100644 --- a/pages/community/Profile/index.vue +++ b/pages/community/Profile/index.vue @@ -26,32 +26,11 @@

Personal Information

-
- -
+ +
@@ -85,48 +64,34 @@ class="d-flex justify-content-between align-items-center mb-3 border-bottom pb-3" >

Socials

-
- -
+

Twitter

-

{{ user.twitterUrl }}

+

+ {{ user.socials.twitterUrl }} +

LinkedIn

-

{{ user.linkedinUrl }}

+

+ {{ user.socials.linkedinUrl }} +

Github

-

{{ user.githubUrl }}

+

+ {{ user.socials.githubUrl }} +

Behance

-

{{ user.behanceUrl }}

+

+ {{ user.socials.behanceUrl }} +

@@ -145,10 +110,12 @@ const user = { id: 1, location: "Lagos, Nigeria", avatar, - twitterUrl: "https://x.com/alexandraSeraph", - githubUrl: "https://github.com/alexandraSeraph", - linkedinUrl: "https://linkedin.com/in/alexandraSeraph", - behanceUrl: "", + socials: { + twitterUrl: "https://x.com/alexandraSeraph", + githubUrl: "https://github.com/alexandraSeraph", + linkedinUrl: "https://linkedin.com/in/alexandraSeraph", + behanceUrl: "", + }, }; From b4bd0e6929cbf31713b526678aac818b19685c59 Mon Sep 17 00:00:00 2001 From: Johndiddles Date: Wed, 18 Dec 2024 12:24:19 +0100 Subject: [PATCH 3/7] refactor: refactor the user profile ui breaking the UI into smaller easily maintainable components --- .../profile/EditPersonalInformationModal.vue | 1 - components/profile/SingleInfoItem.vue | 17 +++ components/profile/SingleInfoSection.vue | 45 ++++++ pages/community/Profile/index.vue | 130 ++++++++---------- 4 files changed, 120 insertions(+), 73 deletions(-) create mode 100644 components/profile/SingleInfoItem.vue create mode 100644 components/profile/SingleInfoSection.vue diff --git a/components/profile/EditPersonalInformationModal.vue b/components/profile/EditPersonalInformationModal.vue index a681dd4..d228123 100644 --- a/components/profile/EditPersonalInformationModal.vue +++ b/components/profile/EditPersonalInformationModal.vue @@ -106,5 +106,4 @@ const props = defineProps({ user: Object, }); const userInfo = ref(props.user); -console.log({ userInfo }); diff --git a/components/profile/SingleInfoItem.vue b/components/profile/SingleInfoItem.vue new file mode 100644 index 0000000..1ce9a5f --- /dev/null +++ b/components/profile/SingleInfoItem.vue @@ -0,0 +1,17 @@ + + + diff --git a/components/profile/SingleInfoSection.vue b/components/profile/SingleInfoSection.vue new file mode 100644 index 0000000..89644e4 --- /dev/null +++ b/components/profile/SingleInfoSection.vue @@ -0,0 +1,45 @@ + + + diff --git a/pages/community/Profile/index.vue b/pages/community/Profile/index.vue index 161b592..e00a1af 100644 --- a/pages/community/Profile/index.vue +++ b/pages/community/Profile/index.vue @@ -24,83 +24,69 @@
-
-
-

Personal Information

- - -
- -
-
-
-

First Name

-

{{ user.firstName }}

-
-
-

Last Name

-

{{ user.lastName }}

-
-
-

Email

-

{{ user.email }}

-
-
-

Phone Number

-

{{ user.phone }}

-
-
-

User Role

-

{{ user.role }}

-
-
-
-
- -
-
-

Socials

- -
- -
-
-
-

Twitter

-

- {{ user.socials.twitterUrl }} -

-
-
-

LinkedIn

-

- {{ user.socials.linkedinUrl }} -

-
-
-

Github

-

- {{ user.socials.githubUrl }} -

-
-
-

Behance

-

- {{ user.socials.behanceUrl }} -

-
-
-
-
+ + diff --git a/components/form/Pagination.vue b/components/form/Pagination.vue new file mode 100644 index 0000000..563d1f4 --- /dev/null +++ b/components/form/Pagination.vue @@ -0,0 +1,47 @@ + + + diff --git a/components/registerCompany/AddBackendStackForm.vue b/components/registerCompany/AddBackendStackForm.vue new file mode 100644 index 0000000..e69de29 diff --git a/components/registerCompany/AddFrontendStackForm.vue b/components/registerCompany/AddFrontendStackForm.vue new file mode 100644 index 0000000..e69de29 diff --git a/components/registerCompany/RegisterCompanyForm.vue b/components/registerCompany/RegisterCompanyForm.vue new file mode 100644 index 0000000..e69de29 diff --git a/pages/community/RegisterCompany/index.vue b/pages/community/RegisterCompany/index.vue new file mode 100644 index 0000000..d99bdff --- /dev/null +++ b/pages/community/RegisterCompany/index.vue @@ -0,0 +1,162 @@ + + + + From b93c74b023a72843b392c6c345ca32ec61da72c8 Mon Sep 17 00:00:00 2001 From: Johndiddles Date: Mon, 30 Dec 2024 06:57:12 +0100 Subject: [PATCH 6/7] add add-company and add-company-stack forms to the multistep form --- components/form/InputField.vue | 56 ++++- components/form/MultiSelect.vue | 204 ++++++++++++++++++ .../registerCompany/AddBackendStackForm.vue | 0 .../registerCompany/AddFrontendStackForm.vue | 0 components/registerCompany/AddStackForm.vue | 56 +++++ components/registerCompany/Form.vue | 58 +++++ .../registerCompany/RegisterCompanyForm.vue | 0 pages/community/RegisterCompany/index.vue | 148 ++++--------- 8 files changed, 407 insertions(+), 115 deletions(-) create mode 100644 components/form/MultiSelect.vue delete mode 100644 components/registerCompany/AddBackendStackForm.vue delete mode 100644 components/registerCompany/AddFrontendStackForm.vue create mode 100644 components/registerCompany/AddStackForm.vue create mode 100644 components/registerCompany/Form.vue delete mode 100644 components/registerCompany/RegisterCompanyForm.vue diff --git a/components/form/InputField.vue b/components/form/InputField.vue index b666714..4530889 100644 --- a/components/form/InputField.vue +++ b/components/form/InputField.vue @@ -4,22 +4,53 @@ :for="id" >{{ label }} + + + + + + +

{{ error }}

diff --git a/components/form/MultiSelect.vue b/components/form/MultiSelect.vue new file mode 100644 index 0000000..cf8f2fa --- /dev/null +++ b/components/form/MultiSelect.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/components/registerCompany/AddBackendStackForm.vue b/components/registerCompany/AddBackendStackForm.vue deleted file mode 100644 index e69de29..0000000 diff --git a/components/registerCompany/AddFrontendStackForm.vue b/components/registerCompany/AddFrontendStackForm.vue deleted file mode 100644 index e69de29..0000000 diff --git a/components/registerCompany/AddStackForm.vue b/components/registerCompany/AddStackForm.vue new file mode 100644 index 0000000..0078355 --- /dev/null +++ b/components/registerCompany/AddStackForm.vue @@ -0,0 +1,56 @@ + + + diff --git a/components/registerCompany/Form.vue b/components/registerCompany/Form.vue new file mode 100644 index 0000000..669acd7 --- /dev/null +++ b/components/registerCompany/Form.vue @@ -0,0 +1,58 @@ + + + diff --git a/components/registerCompany/RegisterCompanyForm.vue b/components/registerCompany/RegisterCompanyForm.vue deleted file mode 100644 index e69de29..0000000 diff --git a/pages/community/RegisterCompany/index.vue b/pages/community/RegisterCompany/index.vue index d99bdff..a434899 100644 --- a/pages/community/RegisterCompany/index.vue +++ b/pages/community/RegisterCompany/index.vue @@ -1,126 +1,48 @@ -