Skip to content

Commit 9e816f1

Browse files
authored
Merge pull request realstoman#22 from realstoman/ui-updates
Refactoring
2 parents fdb6631 + 56cc3d1 commit 9e816f1

25 files changed

+82
-16978
lines changed

package-lock.json

Lines changed: 19 additions & 16915 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
<script>
2727
import feather from 'feather-icons';
28-
import AppHeader from './components/AppHeader';
29-
import AppFooter from './components/AppFooter';
28+
import AppHeader from './components/shared/AppHeader';
29+
import AppFooter from './components/shared/AppFooter';
3030
3131
export default {
3232
components: {
File renamed without changes.

src/components/ProjectsFilter.vue renamed to src/components/projects/ProjectsFilter.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default {
4040
select: {
4141
type: String,
4242
default: 'projects',
43+
required: true,
4344
},
4445
selectOptions: {
4546
type: Array,

src/components/ProjectsGrid.vue renamed to src/components/projects/ProjectsGrid.vue

Lines changed: 6 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@
44
<!-- Projects grid title -->
55
<div class="text-center">
66
<p
7-
class="text-2xl sm:text-5xl font-semibold mb-3 text-ternary-dark dark:text-ternary-light"
7+
class="text-2xl sm:text-5xl font-semibold mb-2 text-ternary-dark dark:text-ternary-light"
88
>
99
{{ projectsHeading }}
1010
</p>
11-
<!-- Note: This description is commented, if you want to, you can uncomment this -->
12-
<!-- <p class="text-md sm:text-xl text-gray-500 dark:text-ternary-light">
13-
{{ projectsDescription }}
14-
</p> -->
1511
</div>
1612

1713
<!-- Filter and search projects -->
18-
<div class="mt-10 sm:mt-16">
14+
<div class="mt-10 sm:mt-10">
1915
<h3
2016
class="
2117
text-center text-secondary-dark
@@ -102,54 +98,16 @@
10298
import feather from 'feather-icons';
10399
import ProjectsFilter from './ProjectsFilter.vue';
104100
import ProjectSingle from './ProjectSingle.vue';
101+
import projects from '../../data/projects';
105102
106103
export default {
107104
components: { ProjectSingle, ProjectsFilter },
108105
data: () => {
109106
return {
107+
projects,
110108
projectsHeading: 'Projects Portfolio',
111-
projectsDescription:
112-
'Some of the projects I have successfully completed',
113109
selectedProject: '',
114110
searchProject: '',
115-
projects: [
116-
{
117-
id: 1,
118-
title: 'Google Health Platform',
119-
category: 'Web Application',
120-
img: require('@/assets/images/web-project-2.jpg'),
121-
},
122-
{
123-
id: 2,
124-
title: 'Phoenix Digital Agency',
125-
category: 'Mobile Application',
126-
img: require('@/assets/images/mobile-project-2.jpg'),
127-
},
128-
{
129-
id: 3,
130-
title: 'Project Management UI',
131-
category: 'UI/UX Design',
132-
img: require('@/assets/images/ui-project-1.jpg'),
133-
},
134-
{
135-
id: 4,
136-
title: 'Cloud Storage Platform',
137-
category: 'UI/UX Design',
138-
img: require('@/assets/images/ui-project-2.jpg'),
139-
},
140-
{
141-
id: 5,
142-
title: 'React Social App',
143-
category: 'Mobile Application',
144-
img: require('@/assets/images/mobile-project-1.jpg'),
145-
},
146-
{
147-
id: 6,
148-
title: 'Apple Design System',
149-
category: 'Web Application',
150-
img: require('@/assets/images/web-project-1.jpg'),
151-
},
152-
],
153111
};
154112
},
155113
computed: {
@@ -166,10 +124,11 @@ export default {
166124
methods: {
167125
// Filter projects by category
168126
filterProjectsByCategory() {
169-
return this.projects.filter((item) => {
127+
return this.projects.map((item) => {
170128
let category =
171129
item.category.charAt(0).toUpperCase() +
172130
item.category.slice(1);
131+
console.log(category);
173132
return category.includes(this.selectedProject);
174133
});
175134
},
File renamed without changes.
File renamed without changes.

src/components/AppHeader.vue renamed to src/components/shared/AppHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@
9898
</template>
9999

100100
<script>
101-
import ThemeSwitcher from './ThemeSwitcher';
102-
import HireMeModal from './HireMeModal.vue';
101+
import ThemeSwitcher from '../ThemeSwitcher';
102+
import HireMeModal from '../HireMeModal.vue';
103103
import feather from 'feather-icons';
104104
import AppHeaderLinks from './AppHeaderLinks.vue';
105105

src/data/projects.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
const projects = [
2+
{
3+
id: 1,
4+
title: 'Google Health Platform',
5+
category: 'Web Application',
6+
img: require('@/assets/images/web-project-2.jpg'),
7+
},
8+
{
9+
id: 2,
10+
title: 'Phoenix Digital Agency',
11+
category: 'Mobile Application',
12+
img: require('@/assets/images/mobile-project-2.jpg'),
13+
},
14+
{
15+
id: 3,
16+
title: 'Project Management UI',
17+
category: 'UI/UX Design',
18+
img: require('@/assets/images/ui-project-1.jpg'),
19+
},
20+
{
21+
id: 4,
22+
title: 'Cloud Storage Platform',
23+
category: 'UI/UX Design',
24+
img: require('@/assets/images/ui-project-2.jpg'),
25+
},
26+
{
27+
id: 5,
28+
title: 'React Social App',
29+
category: 'Mobile Application',
30+
img: require('@/assets/images/mobile-project-1.jpg'),
31+
},
32+
{
33+
id: 6,
34+
title: 'Apple Design System',
35+
category: 'Web Application',
36+
img: require('@/assets/images/web-project-1.jpg'),
37+
},
38+
];
39+
40+
export default projects;

src/views/About.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
</template>
1717

1818
<script>
19-
import AboutMe from '@/components/AboutMe';
20-
import AboutCounter from '@/components/AboutCounter';
21-
import AboutClients from '@/components/AboutClients';
19+
import AboutMe from '@/components/about/AboutMe';
20+
import AboutCounter from '@/components/about/AboutCounter';
21+
import AboutClients from '@/components/about/AboutClients';
2222
import feather from 'feather-icons';
2323
2424
export default {

src/views/Contact.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
<script>
1414
import feather from 'feather-icons';
15-
import ContactForm from '@/components/ContactForm.vue';
16-
import ContactDetails from '@/components/ContactDetails.vue';
15+
import ContactForm from '@/components/contact/ContactForm.vue';
16+
import ContactDetails from '@/components/contact/ContactDetails.vue';
1717
1818
export default {
1919
components: {

src/views/Home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
</template>
2020

2121
<script>
22-
import AppBanner from '@/components/AppBanner';
23-
import ProjectsGrid from '../components/ProjectsGrid.vue';
22+
import AppBanner from '@/components/shared/AppBanner';
23+
import ProjectsGrid from '../components/projects/ProjectsGrid.vue';
2424
2525
export default {
2626
name: 'Home',

src/views/Projects.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
import ProjectsGrid from '../components/ProjectsGrid.vue';
9+
import ProjectsGrid from '../components/projects/ProjectsGrid.vue';
1010
1111
export default {
1212
name: 'Projects',

src/views/SingleProject.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
<script>
1818
import feather from 'feather-icons';
19-
import ProjectHeader from '../components/ProjectHeader.vue';
20-
import ProjectGallery from '../components/ProjectGallery.vue';
21-
import ProjectInfo from '../components/ProjectInfo.vue';
22-
import ProjectRelatedProjects from '../components/ProjectRelatedProjects.vue';
19+
import ProjectHeader from '../components/projects/ProjectHeader.vue';
20+
import ProjectGallery from '../components/projects/ProjectGallery.vue';
21+
import ProjectInfo from '../components/projects/ProjectInfo.vue';
22+
import ProjectRelatedProjects from '../components/projects/ProjectRelatedProjects.vue';
2323
2424
export default {
2525
name: 'Projects',

0 commit comments

Comments
 (0)