Skip to content

Commit

Permalink
Refactor project categories and roles display
Browse files Browse the repository at this point in the history
  • Loading branch information
arbisyarifudin committed Mar 14, 2024
1 parent 14bb0e7 commit 47a6fd5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/ContactDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const submitMessage = async () => {
if (docRef.id) {
hitSApi(docRef.id, form.value)
// hitSApi(docRef.id, form.value)
form.value.name = ''
form.value.email = ''
Expand Down
24 changes: 20 additions & 4 deletions pages/work/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@
<div class="work-item__year">{{ project.year }}</div>
</div>
<div v-if="project.subtitle" class="mb-2" style="margin-top: -10px">{{ project.subtitle }}</div>
<div class="d-flex justify-content-between align-items-center">
<div class="work-item__category">{{ project.categories.map(v => v).join(', ') }}</div>
<div class="d-flex justify-content-between align-items-center" v-if="project.categories?.length">
<div class="work-item__category"><span>Category:</span> {{ project.categories.map(v => v).join(', ') }}</div>
<div class="work-item__more" v-if="project.slug">
<router-link :to="`/work/${project.slug}`"><i class="bi bi-arrow-right"></i> View
Project</router-link>
</div>
</div>
<div class="d-flex justify-content-between align-items-center mt-2" v-if="project.roles?.length">
<div class="work-item__category"><span>Role:</span> {{ project.roles.map(v => v).join(', ') }}</div>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -76,24 +79,29 @@ const projects = ref([
subtitle: 'All-in-one CRM system',
year: '2022 - 2024',
categories: ['Custom Development', 'Web Apps', 'CRM'],
roles: ['Fullstack Developer'],
image: '/projects/satuin.id.webp',
slug: null,
siteLink: 'https://satuin.id'
},
{
id: 2,
title: 'Satuin.id - Mobile App',
title: 'Satuin Connect',
subtitle: 'Satuin.id in Mobile App',
year: '2022 - 2023',
categories: ['Mobile Development', 'CRM', 'Chat System'],
roles: ['Fullstack Developer'],
image: '/projects/satuin.id-mobile.webp',
slug: null
slug: null,
siteLink: 'https://play.google.com/store/apps/details?id=com.onero.satuin&pcampaignid=web_share'
},
{
id: 2,
title: 'JB Radio',
subtitle: 'Jogja Belajar Radio',
year: 2023,
categories: ['Web Development', 'Website', 'Media', 'Education'],
roles: ['Frontend Developer'],
image: '/projects/jbradio.jpg',
slug: null,
siteLink: 'https://jbradio.jogjabelajar.org'
Expand All @@ -104,6 +112,7 @@ const projects = ref([
subtitle: 'Jogja Belajar TV',
year: 2022,
categories: ['Web Development', 'Website', 'Media', 'Education'],
roles: ['Frontend Developer'],
image: '/projects/jbtv.jpg',
slug: null,
siteLink: 'https://jbtv.jogjabelajar.org'
Expand All @@ -114,6 +123,7 @@ const projects = ref([
subtitle: 'Private Mentor & Tryout System',
year: '2021 - 2022',
categories: ['Custom Development', 'Company Profile', 'Web Apps', 'LMS'],
roles: ['Fullstack Developer'],
image: '/projects/ujiaja.png',
slug: null,
siteLink: 'https://jbtv.jogjabelajar.org'
Expand Down Expand Up @@ -169,6 +179,12 @@ const projects = ref([
.work-item__category {
font-size: 12px;
color: #aaa;
span {
font-weight: 500;
margin-right: 5px;
color: #fff;
}
}
.work-item__more {
Expand Down

0 comments on commit 47a6fd5

Please sign in to comment.